/**
 * ROYAL GOLD - Styles Globaux Premium
 * Design Liquid Glass avec effets visuels sophistiqués
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs primaires */
    --primary-black: #0a0a0a;
    --primary-gold: #d4af37;
    --secondary-gold: #f4e4c1;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.12);
    
    /* Couleurs texte */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-light: #e0e0e0;
    --text-muted: #808080;
    
    /* Couleurs des plans */
    --free-color: #6c757d;
    --standard-color: #3b82f6;
    --premium-color: #8b5cf6;
    --vip-color: #ec4899;
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows - Liquid Glass Effect Premium */
    --shadow-sm: 0 8px 32px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 8px 32px rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 20px 60px rgba(212, 175, 55, 0.15);
    --shadow-xl: 0 25px 80px rgba(212, 175, 55, 0.2);
    --shadow-focus: 0 0 30px rgba(212, 175, 55, 0.4);
    --shadow-glow: 0 0 50px rgba(212, 175, 55, 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================================
   GLOBAL STYLES
   ===================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f1020 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Background animé dynamique */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 400px at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: floatBg 15s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-gold) 50%, var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
    color: var(--text-light);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-light);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* =====================================================================
   LIQUID GLASS DESIGN - CONTAINERS PREMIUM
   ===================================================================== */

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.glass-card.bordered {
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.1);
}

.glass-card.premium {
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 175, 55, 0.2);
}

.glass-card.premium:hover {
    box-shadow: var(--shadow-xl), 0 0 50px rgba(212, 175, 55, 0.3);
}

/* =====================================================================
   BUTTONS PREMIUM
   ===================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--primary-black);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-focus), 0 12px 40px rgba(212, 175, 55, 0.6);
}
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--secondary-gold);
    color: var(--secondary-gold);
}

.btn-glass {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--card-hover-bg);
    border-color: rgba(212, 175, 55, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 1rem;
}

/* =====================================================================
   INPUTS & FORMS
   ===================================================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-focus);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error.show {
    display: block;
}

input.error,
select.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

/* =====================================================================
   BADGES & LABELS
   ===================================================================== */

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: rgba(108, 117, 125, 0.2);
    color: #a0a0a0;
}

.badge-standard {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.badge-premium {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.badge-vip {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

.animate-in {
    animation: fadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-pulse {
    animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Nouvelles animations sophistiquées */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(212, 175, 55, 0.05);
    }
    50% { 
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.5), inset 0 0 30px rgba(212, 175, 55, 0.1);
    }
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-in {
    0% { 
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        transform: scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(212, 175, 55, 0.2) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

.animate-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

.animate-float {
    animation: float-up 0.8s ease-out;
}

.animate-bounce {
    animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================================
   UTILITIES
   ===================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
    display: flex;
    gap: var(--spacing-md);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
    
    .btn {
        width: 100%;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on focus on mobile */
    }
}

/* ═══════════════════════════════════════════════════════════════
   VALIDATION ET MESSAGES D'ERREUR
   ═══════════════════════════════════════════════════════════════ */

.form-errors {
    background-color: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: none;
    color: #ff5252;
    font-weight: 500;
}

.form-errors.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.form-errors ul {
    list-style-position: inside;
    margin: 0;
    padding: 0;
}

.form-errors li {
    margin-bottom: var(--spacing-xs);
    color: #ff5252;
    font-weight: 500;
}

.form-errors strong {
    color: #ff5252;
    font-weight: 600;
}

.error-message {
    color: #ff5252;
    font-size: 0.85rem;
    display: block;
    margin-top: var(--spacing-xs);
    min-height: 20px;
    animation: fadeIn 0.3s ease-out;
    font-weight: 500;
}

.error-message.hidden {
    display: none;
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group input.success,
.form-group select.success {
    border-color: #27ae60 !important;
    background-color: rgba(39, 174, 96, 0.05);
}

.success-message {
    color: #27ae60;
    font-size: 0.85rem;
    display: block;
    margin-top: var(--spacing-xs);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Status Badges */
.plan-badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.plan-badge.confirmed,
.plan-badge.Confirmed {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.plan-badge.pending,
.plan-badge.Pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.plan-badge.failed,
.plan-badge.Failed {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

