/**
 * ERADUX - Styles Principaux
 * Design moderne, élégant et inspirant
 */

:root {
    --gold: #D4AF37;
    --gold-light: #F4E4BA;
    --gold-dark: #B8960C;
    --navy: #1A1F36;
    --navy-light: #2D3348;
    --navy-dark: #0F1219;
    --emerald: #10B981;
    --ruby: #EF4444;
    --sapphire: #3B82F6;
    --amethyst: #8B5CF6;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
}

body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

/* NAVBAR */
.navbar { padding: 1rem 0; transition: all 0.3s ease; }
.navbar-transparent { background: transparent; position: absolute; width: 100%; z-index: 1000; }
.navbar-transparent .nav-link, .navbar-transparent .navbar-brand { color: var(--white) !important; }
.navbar-solid { background: var(--navy); box-shadow: var(--shadow-lg); }
.navbar.scrolled { background: var(--navy) !important; padding: 0.75rem 0; }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; }
.brand-icon { color: var(--gold); font-size: 1.25rem; }
.nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; padding: 0.5rem 1rem !important; transition: color 0.2s; }
.nav-link:hover { color: var(--gold) !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.dropdown-menu { background: var(--white); border: none; box-shadow: var(--shadow-lg); border-radius: 0.5rem; padding: 0.5rem; }
.dropdown-item { padding: 0.75rem 1rem; border-radius: 0.375rem; color: var(--gray-700); }
.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item i { color: var(--gold); }

/* BUTTONS */
.btn { font-weight: 500; padding: 0.625rem 1.5rem; border-radius: 0.5rem; transition: all 0.2s; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-dark); border: none; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-dark); transform: translateY(-2px); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.1rem; }
.btn-user { display: flex; align-items: center; gap: 0.5rem; background: transparent; border: none; color: var(--white); padding: 0.25rem; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* HERO */
.hero { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-light)); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: 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='%23D4AF37' fill-opacity='0.03'%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/svg%3E"); opacity: 0.5; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(212,175,55,0.15); border: 1px solid rgba(212,175,55,0.3); color: var(--gold); padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .highlight { color: var(--gold); }
.hero-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.75); max-width: 600px; margin-bottom: 2rem; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.hero-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.hero-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 2rem; color: var(--white); }
.hero-card-title { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.hero-card-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--gold); }
.hero-card-growth { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--emerald); font-size: 0.875rem; margin-top: 0.5rem; }

/* SECTIONS */
.section { padding: 6rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-gray { background: var(--gray-50); }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 3rem; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* PILLAR CARDS */
.pillar-card { background: var(--white); border-radius: 1rem; padding: 2rem; height: 100%; box-shadow: var(--shadow-lg); transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.pillar-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.pillar-icon { width: 60px; height: 60px; border-radius: 0.75rem; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.pillar-number { position: absolute; top: 1rem; right: 1.5rem; font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gray-100); }
.pillar-title { font-size: 1.25rem; margin-bottom: 1rem; }
.pillar-text { color: var(--gray-600); margin-bottom: 1.5rem; }
.pillar-link { color: var(--gold-dark); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.pillar-link:hover { color: var(--gold); }

/* CALCULATOR */
.calculator-preview { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); border-radius: 1rem; padding: 2rem; color: var(--white); }
.calculator-result { text-align: center; padding: 2rem; background: rgba(255,255,255,0.05); border-radius: 0.75rem; margin-top: 1.5rem; }
.calculator-result-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.calculator-result-value { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold); }
.calculator-result-note { font-size: 0.875rem; color: var(--emerald); margin-top: 0.5rem; }

/* QUOTE */
.quote-section { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); padding: 5rem 0; text-align: center; }
.quote-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--navy-dark); max-width: 900px; margin: 0 auto 1.5rem; line-height: 1.4; }
.quote-author { font-weight: 600; color: var(--navy); }

/* ARTICLE CARDS */
.article-card { background: var(--white); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); height: 100%; transition: transform 0.3s; }
.article-card:hover { transform: translateY(-5px); }
.article-card-image { height: 200px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; }
.article-card-image i { font-size: 3rem; color: var(--gold); }
.article-card-body { padding: 1.5rem; }
.article-card-category { display: inline-block; background: var(--gold-light); color: var(--gold-dark); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 2rem; margin-bottom: 1rem; }
.article-card-title { font-size: 1.125rem; margin-bottom: 0.75rem; }
.article-card-title a { color: var(--gray-800); text-decoration: none; }
.article-card-title a:hover { color: var(--gold-dark); }
.article-card-excerpt { color: var(--gray-600); font-size: 0.9375rem; margin-bottom: 1rem; }
.article-card-meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--gray-400); }

/* FORMS */
.form-control, .form-select { padding: 0.75rem 1rem; border: 2px solid var(--gray-200); border-radius: 0.5rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.form-label { font-weight: 500; color: var(--gray-700); margin-bottom: 0.5rem; }
.input-group-text { background: var(--gray-100); border: 2px solid var(--gray-200); border-right: none; color: var(--gray-500); }

/* AUTH PAGES */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); display: flex; align-items: center; padding: 2rem 0; }
.auth-container { background: var(--white); border-radius: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,0.25); overflow: hidden; max-width: 450px; margin: 0 auto; }
.auth-header { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); padding: 2rem; text-align: center; }
.auth-header .brand-icon { font-size: 2.5rem; color: var(--navy-dark); margin-bottom: 1rem; }
.auth-header h1 { font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 0.5rem; }
.auth-header p { color: var(--navy); opacity: 0.8; margin: 0; }
.auth-body { padding: 2rem; }
.auth-footer { text-align: center; padding: 1.5rem; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--gray-400); font-size: 0.875rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* FOOTER */
.site-footer { background: var(--navy-dark); color: var(--white); }
.footer-top { padding: 4rem 0; }
.footer-brand .brand-icon { font-size: 1.5rem; }
.footer-brand .brand-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; padding-left:5px; }
.footer-brand a { text-decoration: none; color:#fff; }
.footer-tagline { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { text-decoration: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-quote { font-style: italic; }

/* ALERTS */
.alert-flash { position: fixed; top: 80px; left: 0; right: 0; z-index: 1050; border-radius: 0; border: none; }

/* DASHBOARD */
.dashboard-header { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); padding: 3rem 0; margin-bottom: 2rem; }
.dashboard-welcome { color: var(--white); }
.dashboard-welcome h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.dashboard-welcome p { color: rgba(255,255,255,0.6); margin: 0; }
.stat-card { background: var(--white); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-lg); height: 100%; }
.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.stat-card-icon { width: 48px; height: 48px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-card-icon.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-dark); }
.stat-card-icon.emerald { background: linear-gradient(135deg, #D1FAE5, var(--emerald)); color: #065F46; }
.stat-card-icon.sapphire { background: linear-gradient(135deg, #DBEAFE, var(--sapphire)); color: #1E40AF; }
.stat-card-icon.amethyst { background: linear-gradient(135deg, #EDE9FE, var(--amethyst)); color: #5B21B6; }
.stat-card-label { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.stat-card-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--gray-800); }
.stat-card-change { font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.25rem; }
.stat-card-change.positive { color: var(--emerald); }
.stat-card-change.negative { color: var(--ruby); }

/* PROGRESS */
.progress-ring { width: 120px; height: 120px; }
.progress-ring-circle { transition: stroke-dashoffset 0.5s; transform: rotate(-90deg); transform-origin: 50% 50%; }

/* UTILITIES */
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.inactive{cursor: default; color: #ccc !important; text-decoration: none; pointer-events: none;}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .hero-stats { gap: 2rem; }
    .navbar-collapse { background: var(--navy); padding: 1rem; border-radius: 0.5rem; margin-top: 1rem; }
    .navbar-actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 767.98px) {
    .section { padding: 4rem 0; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}
