:root {
  --primary-50:  #ecf8f3;
    --primary-100: #d4efe3;
    --primary-200: #a9dfc8;
    --primary-300: #7ccfad;
    --primary-400: #51bf93;
    --primary-500: #13855b;  /* Couleur de base */
    --primary-600: #106e4c;
    --primary-700: #0d583e;
    --primary-800: #0a4230;
    --primary-900: #062d21;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);


    --border-light: rgba(148, 163, 184, 0.1);
    --border-medium: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.navbar-2025 {
    background: linear-gradient(
        135deg,
        var(--primary-700) 0%,
        var(--primary-900) 100%
    );
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}



.navbar-brand-2025 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand-2025 svg {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    padding: 8px;
    border-radius: 14px;
    color: white;
}

.card-modern {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card-modern:hover::before {
    opacity: 1;
}

.btn-modern {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-modern::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-modern:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.badge-modern {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.badge-date {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
}

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

@media (max-width: 768px) {
    .appointments-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-modern {
    animation: fadeInUp var(--transition-slow) ease-out;
}

    .stats-header {
        background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
        border-radius: var(--radius-lg);
        padding: 2rem;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
    }



    .stats-header::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%);
        opacity: 0.1;
    }

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
    font-weight: 500;
    font-size: 0.875rem;
}

.action-btn:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.card-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-900);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

/* Focus states accessibles */
*:focus {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--border-light) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link {
    color: white!important;
}
