/* ============================================================
   LUSO CRED – MAIN.CSS
   Thème enfant Botiga – Agence de prêt
   Version 1.0.0
   ============================================================ */

/* ============================================================
   1. VARIABLES CSS
   ============================================================ */
:root {
    /* Couleurs principales */
    --primary: #0A1E3C;
    --primary-dark: #06142D;
    --secondary: #1A365D;
    --accent: #C9A84C;
    --accent-hover: #B8962E;

    /* Textes */
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A5A;
    --text-muted: #7A7A8A;

    /* Fonds */
    --bg-primary: #F8F9FC;
    --bg-secondary: #F0F2F7;
    --bg-card: #FFFFFF;

    /* Bordures */
    --border-soft: #E2E4EA;
    --border-medium: #C8CAD2;

    /* Alertes */
    --success: #2E7D32;
    --error: #C62828;

    /* Typographie */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Espacements */
    --container-padding: 1rem;
    --container-max-width: 1280px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   3. CONTENEUR UTILITAIRE
   ============================================================ */
.luso-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

/* ============================================================
   4. BOUTONS
   ============================================================ */
.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-accent:active {
    transform: scale(0.98);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    border: 2px solid var(--border-soft);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 168, 76, 0.05);
}

/* ============================================================
   5. CARTES
   ============================================================ */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

/* ============================================================
   6. HEADER & NAVIGATION
   ============================================================ */
.luso-header {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}

.luso-topbar {
    background: var(--primary);
    padding: 6px 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.luso-nav-link {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.luso-nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.luso-nav-link:hover {
    background: var(--bg-secondary);
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.luso-footer {
    width: 100%;
    max-width: 100%;
    background: var(--primary);
    padding-top: 3rem;
    padding-bottom: 1rem;
    color: #cbd5e1;
}

.luso-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .luso-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .luso-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   8. SIMULATEUR (placeholder)
   ============================================================ */
.luso-simulator {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-soft);
    margin: 2rem 0;
}

/* ============================================================
   9. GRILLE PRODUITS / OFFRES
   ============================================================ */
.offre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.offre-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.offre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

.offre-card .taux {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================================
   10. FILTRES
   ============================================================ */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.filter-pill:hover:not(.active) {
    background: #e2e8f0;
}

/* ============================================================
   11. RESPONSIVE – HEADER
   ============================================================ */
@media (max-width: 1024px) {
    .luso-nav {
        display: none !important;
    }
    #luso-mobile-toggle {
        display: block !important;
    }
}

@media (min-width: 1025px) {
    #luso-mobile-toggle {
        display: none !important;
    }
    #luso-mobile-menu {
        display: none !important;
    }
}

/* ============================================================
   12. ANIMATIONS
   ============================================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   13. UTILITAIRES
   ============================================================ */
.text-accent {
    color: var(--accent);
}
.bg-primary {
    background: var(--primary);
}
.bg-accent {
    background: var(--accent);
}
.text-muted {
    color: var(--text-muted);
}
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }