/* VisitCare.ch - Design moderne et professionnel */

:root {
    /* Palette moderne et sobre */
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --secondary: #64748B;
    --success: #10B981;
    --info: #06B6D4;
    --warning: #F59E0B;
    --danger: #EF4444;
    --light: #F8FAFC;
    --dark: #1E293B;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Typographie moderne */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espacements */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: white;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
}

/* Navigation moderne */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1030;
    position: relative;
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: var(--box-shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    color: var(--gray-600) !important;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--gray-50);
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1040;
    background-color: white;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid var(--gray-200);
}

/* Hero Section moderne */
.hero-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0.05;
    border-radius: 0 0 0 100px;
}

.min-h-screen {
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Cards modernes */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    background-color: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gray-300);
}

.card-header {
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 2rem;
}

/* Buttons modernes */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.875rem 2rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--box-shadow-md);
    color: white;
}

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

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

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

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    box-shadow: var(--box-shadow-md);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Forms modernes */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
    background-color: white;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* Alerts modernes */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    border-left-color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.alert-danger {
    border-left-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.alert-warning {
    border-left-color: var(--warning);
    background-color: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.alert-info {
    border-left-color: var(--info);
    background-color: rgba(6, 182, 212, 0.1);
    color: #155e75;
}

/* Sections et layout */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Stats */
.stats-section {
    background-color: var(--gray-50);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1rem;
}

/* Tables modernes */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: white;
}

.table thead th {
    background-color: var(--gray-50);
    border: none;
    font-weight: 600;
    padding: 1rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--gray-200);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--gray-50);
}

/* Badges modernes */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer moderne */
footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 2rem;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-500);
}

/* Utilities */
.text-muted {
    color: var(--gray-500) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.border-radius {
    border-radius: var(--border-radius);
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow {
    box-shadow: var(--box-shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
    }
}

/* Dashboard styles */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

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

.dashboard-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.dashboard-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.dashboard-stat .stat-label {
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animations douces */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .btn {
        display: none;
    }
}

/* Nouvelles sections */
.benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow-md);
    border: 1px solid var(--gray-100);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.9rem;
}

.process-section {
    padding: 5rem 0;
    background: white;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--box-shadow-lg);
}

.step-content h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--gray-600);
    margin: 0;
}

.testimonials-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-100);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    flex: 1;
}

.stars {
    color: #fbbf24;
}

.stars i {
    font-size: 1rem;
    margin-right: 2px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.author-location {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--gray-900);
    border-top: 1px solid var(--gray-200);
}

.cta-section h2 {
    color: var(--gray-900);
}

.cta-section .lead {
    color: var(--gray-600);
}

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

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cta-section .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

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

@media (max-width: 768px) {
    .benefit-item {
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Thème minimal */
.theme-minimal body { background-color: #fff; }
.theme-minimal .navbar { box-shadow: none; border-bottom: 1px solid var(--gray-100); }
.theme-minimal .card { box-shadow: none; border-color: var(--gray-200); }
.theme-minimal .card:hover { transform: none; box-shadow: none; border-color: var(--gray-300); }
.theme-minimal .hero-section { background: #fff; }
.theme-minimal .feature-card { border: 1px solid var(--gray-200); border-radius: var(--border-radius); }
.theme-minimal .btn-primary { box-shadow: none; }
.theme-minimal .section-title { letter-spacing: -0.02em; }
.theme-minimal .pill { border-color: var(--gray-200); box-shadow: none; }

.container-fluid {
    max-width: 1280px;
}