/* ============================================
   CALCUL CHARGE PL - STYLESHEET PRINCIPALE
   Design moderne, responsive et professionnel
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-outline-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 80px 0;
    background: white;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--secondary);
}

/* Steps */
.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.step {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.6;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

.auth-box {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
}

.auth-header p {
    color: var(--secondary);
}

.auth-form {
    margin-bottom: 2rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    margin-top: 2rem;
}

.auth-footer {
    text-align: center;
    color: var(--secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.auth-info ul {
    list-style: none;
    font-size: 1.125rem;
}

.auth-info li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.info-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background: #fef3c7;
    color: var(--warning);
    border: 1px solid #fde68a;
}

/* Dashboard */
.dashboard-container {
    padding: 40px 0;
    min-height: calc(100vh - 80px);
}

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

.dashboard-welcome h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    color: var(--secondary);
    font-size: 1.125rem;
}

/* Vehicle Cards */
.vehicle-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.vehicle-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border: 2px solid transparent;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.vehicle-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.vehicle-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.vehicle-card > p {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.vehicle-specs {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius);
}

.vehicle-specs li {
    padding: 0.5rem 0;
    color: var(--secondary);
    font-size: 0.875rem;
}

.vehicle-action {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

/* Calculateur */
.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.calculator-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.calculator-form {
    margin-bottom: 2rem;
}

.form-section {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Résultats */
.result-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.result-steps {
    display: grid;
    gap: 20px;
    margin-bottom: 2rem;
}

.result-step {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-weight: 500;
    color: var(--secondary);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.result-final {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.result-final-label {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-final-value {
    font-size: 3rem;
    font-weight: 800;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background: var(--light);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.charge-utile {
    color: var(--success);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-info {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .features, .how-it-works, .cta-section {
        padding: 40px 0;
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .vehicle-types {
        grid-template-columns: 1fr;
    }
}

/* Pricing / Abonnements */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 3px solid transparent;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.active {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-badge.popular {
    background: var(--primary);
}

.pricing-badge.premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.pricing-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pricing-price {
    margin: 2rem 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.price-period {
    font-size: 1rem;
    color: var(--secondary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

/* FAQ */
.faq-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--secondary);
    line-height: 1.6;
}

/* Subscription Management */
.subscription-info {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.subscription-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.subscription-status.active {
    background: #d1fae5;
    color: var(--success);
}

.subscription-status.cancelled {
    background: #fee2e2;
    color: var(--danger);
}
