/**
 * Assurances Thaïlande - Styles Additionnels
 * Complément à Tailwind CSS
 */

/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
    --color-primary: #1B365D;
    --color-gold: #D4A843;
    --color-white: #FFFFFF;
    --color-gray-light: #F8FAFC;
    --color-gray-medium: #94A3B8;
    --color-gray-dark: #475569;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Slide Up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Pulse Gold */
@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 168, 67, 0);
    }
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   QUIZ STYLES
   ========================================== */

.quiz-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 54, 93, 0.15);
    border-color: #D4A843;
}

.quiz-option.selected {
    border-color: #D4A843;
    background-color: rgba(212, 168, 67, 0.1);
}

.quiz-step {
    min-height: 300px;
}

.step-indicator {
    transition: all 0.3s ease;
}

.step-indicator.active {
    transform: scale(1.1);
}

/* ==========================================
   TABLEAU COMPARATIF
   ========================================== */

.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    background-color: #1B365D;
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.comparison-table th:first-child {
    border-top-left-radius: 8px;
}

.comparison-table th:last-child {
    border-top-right-radius: 8px;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.comparison-table tr:hover td {
    background-color: #F8FAFC;
}

.comparison-table .feature-check {
    color: #D4A843;
    font-size: 1.2rem;
}

.comparison-table .feature-cross {
    color: #94A3B8;
}

.comparison-table .insurer-logo {
    font-weight: 700;
    color: #1B365D;
}

/* Rang recommandé */
.recommended-badge {
    background: linear-gradient(135deg, #D4A843 0%, #E8C565 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   FORMULAIRE
   ========================================== */

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.form-label {
    font-weight: 500;
    color: #1B365D;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Select stylisé */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231B365D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

/* ==========================================
   CARTES DE SERVICES
   ========================================== */

.service-card {
    transition: all 0.4s ease;
    border: 1px solid #E2E8F0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 54, 93, 0.12);
    border-color: #D4A843;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1B365D 0%, #2C4A7C 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A843;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   BOUTONS
   ========================================== */

.btn-primary {
    background-color: #D4A843;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #C49A3B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 67, 0.4);
}

.btn-secondary {
    background-color: #1B365D;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #152A4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 54, 93, 0.3);
}

.btn-outline {
    border: 2px solid #1B365D;
    color: #1B365D;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #1B365D;
    color: white;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-gradient {
    background: linear-gradient(135deg, #1B365D 0%, #2C4A7C 50%, #1B365D 100%);
}

.hero-pattern {
    background-image: 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='%23D4A843' 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");
}

/* ==========================================
   WHATSAPP BUTTON
   ========================================== */

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer-link {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #D4A843;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #D4A843;
    transform: translateY(-3px);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.nav-link {
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1B365D;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #D4A843;
    border-radius: 1px;
}

/* ==========================================
   ALERTS / MESSAGES
   ========================================== */

.alert-success {
    background-color: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

/* ==========================================
   SECTION VISA GUIDE
   ========================================== */

.visa-card {
    border-left: 4px solid #D4A843;
    background-color: white;
    transition: all 0.3s ease;
}

.visa-card:hover {
    box-shadow: 0 10px 30px rgba(27, 54, 93, 0.1);
    transform: translateX(5px);
}

.visa-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #1B365D;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

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

.divider-gold {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #D4A843 0%, #E8C565 100%);
    border-radius: 2px;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */

@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 #D4A843;
    outline-offset: 2px;
}

/* Force gradient on all hero/CTA sections */
[style*="background-color: #1B365D"] {
    background-color: #1B365D !important;
    background-image: linear-gradient(135deg, #1B365D 0%, #234578 40%, #1B365D 80%, #0F2340 100%) !important;
    color: white !important;
}
