/*
Theme Name: PlusMoins
Description: Thème élégant pour plusmoins.com - Plus d'économies, moins de contraintes
Version: 1.0
Author: Votre Nom
Text Domain: plusmoins
*/

/* ===== VARIABLES COULEURS SOBRE ===== */
:root {
    /* Palette principale - Professionnelle */
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --accent-green: #059669;
    --accent-teal: #0d9488;
    --neutral-dark: #374151;
    --neutral-gray: #6b7280;
    --neutral-light: #f3f4f6;
    --neutral-white: #ffffff;
    
    /* Couleurs sémantiques */
    --savings-color: #dc2626;
    --pleasure-color: #7c3aed;
    --energy-color: #f59e0b;
    --travel-color: #0891b2;
    --insurance-color: #10b981;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--neutral-gray);
}

/* ===== LAYOUT ===== */
.site-header {
    background: var(--neutral-white);
    border-bottom: 1px solid var(--neutral-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--accent-green);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.current-menu-item {
    color: var(--primary-blue);
}

.header-actions .button {
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.header-actions .button:hover {
    background: var(--primary-dark);
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-footer {
    background: var(--neutral-dark);
    color: var(--neutral-white);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--neutral-white);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ===== DASHBOARD ===== */
.plusmoins-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-gray);
    margin-bottom: 2rem;
}

/* Carte Budget Plaisir */
.pleasure-budget-card {
    background: linear-gradient(135deg, var(--pleasure-color), #8b5cf6);
    color: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.pleasure-budget-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
}

.budget-amount {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1rem 0;
    position: relative;
}

.budget-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
}

/* Grille économies */
.savings-overview {
    margin: 3rem 0;
}

.section-title {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.savings-card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.savings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.savings-card.energy::before { background: var(--energy-color); }
.savings-card.insurance::before { background: var(--insurance-color); }
.savings-card.travel::before { background: var(--travel-color); }
.savings-card.subscriptions::before { background: var(--primary-blue); }

.savings-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.savings-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.savings-category {
    font-size: 1.1rem;
    color: var(--neutral-gray);
    margin-bottom: 0.5rem;
}

.savings-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.savings-card.energy .savings-amount { color: var(--energy-color); }
.savings-card.insurance .savings-amount { color: var(--insurance-color); }
.savings-card.travel .savings-amount { color: var(--travel-color); }
.savings-card.subscriptions .savings-amount { color: var(--primary-blue); }

.savings-description {
    color: var(--neutral-gray);
    font-size: 0.9rem;
}

/* Sections offres */
.offers-section {
    margin: 4rem 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Carte offre */
.offer-card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.offer-image {
    height: 200px;
    background: linear-gradient(135deg, var(--neutral-light), #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-gray);
    font-size: 4rem;
}

.offer-content {
    padding: 1.5rem;
}

.offer-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--neutral-light);
    color: var(--neutral-gray);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.offer-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--neutral-dark);
    line-height: 1.4;
}

.offer-description {
    color: var(--neutral-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-light);
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.offer-savings {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.offer-button {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-blue);
    color: var(--neutral-white);
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.offer-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Formulaire connexion */
.plusmoins-login-required {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--neutral-light);
    border-radius: 12px;
    margin: 2rem 0;
}

.plusmoins-login-required h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.plusmoins-login-required p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--neutral-light);
    color: var(--neutral-gray);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.success { background: #d1fae5; color: var(--accent-green); }
.badge.warning { background: #fef3c7; color: #d97706; }
.badge.info { background: #dbeafe; color: var(--primary-blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .plusmoins-dashboard {
        padding: 1rem;
    }
    
    .pleasure-budget-card {
        padding: 1.5rem;
    }
    
    .budget-amount {
        font-size: 2.5rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .savings-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-details {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .savings-card {
        padding: 1.5rem;
    }
}