/*
 * KMConciergerie.fr - Styles globaux
 * Version: 1.19
 */

/* Variables CSS #2563eb; */ 
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: white;
    border-bottom: 2px solid var(--light);
    font-weight: 700;
    padding: 1.25rem 1.5rem;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

#notification-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: super;
    line-height: 1;
}

.badge.bg-primary {
    background: var(--primary) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
    color: white !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: var(--secondary) !important;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: var(--success);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-info {
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    border-color: #2563eb !important;
    color: white !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

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

/* Alignement du bouton Admin dans la navbar */
.navbar-nav .nav-item .btn {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Dashboard styles */
.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--light);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.booking-item:hover {
    background: #e2e8f0;
}

/* List groups */
.list-group-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
}

.list-group-item:hover {
    background: var(--light);
}

/* Forms */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.1);
}

/* Text colors */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    padding: 50px 0 40px;
    text-align: center;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 12px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    animation: float 3s ease-in-out infinite;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
}

.btn-outline-primary {
    background: white;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
}

/* How it works section */
.how-it-works {
    padding: 40px 0;
    background: white;
}

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

.user-type-card {
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-type-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.user-type-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.user-type-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    gap: 0.6rem;
    color: var(--secondary);
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--success);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Features section */
.features-section {
    padding: 40px 0;
}

.feature-card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--secondary);
    line-height: 1.5;
    font-size: 0.925rem;
}

/* Landing Footer */
.landing-footer {
    background: white;
    padding: 30px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-text {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .user-type-card {
        margin-bottom: 1.5rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }
}
