/**
 * NextData Santé — Theme Terracotta bienveillant
 * Palette apaisante : Terracotta #C9593D, Sable #E8D4C0, Sauge #87A98F, Lavande #C8B3D6
 * Typographie humaniste, coins arrondis, ombres douces.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
    --primary: #C9593D;
    --primary-hover: #A34A30;
    --primary-soft: #E8B89A;
    --primary-transparent: rgba(201, 89, 61, 0.08);
    --primary-rgb: 201, 89, 61;

    --sand: #E8D4C0;
    --sand-light: #F4E8D8;
    --cream: #FAF5ED;
    --cream-deep: #F0E6D6;
    --sage: #87A98F;
    --sage-soft: #B9CFBD;
    --lavender: #C8B3D6;
    --lavender-soft: #E5D8EE;

    --text-dark: #3D2A1F;
    --text-body: #5C4A3E;
    --text-muted: #8B7355;
    --border-soft: rgba(61, 42, 31, 0.08);
    --card-shadow: 0 2px 12px rgba(61, 42, 31, 0.06);
    --card-shadow-hover: 0 6px 24px rgba(201, 89, 61, 0.12);

    /* Sidebar — override des variables de style.css pour le thème clair */
    --menu-bg: #FFFFFF;
    --menu-item-heading: #5C4A3E;
    --menu-item-heading-active: #FFFFFF;
    --menu-subdrop-active: #FFFFFF;
    --menu-item-border: rgba(61, 42, 31, 0.08);
    --menu-active-color: #C9593D;
    --submenu-active-color: #C9593D;
}

:root[data-sidebar],
:root[data-bs-theme="dark"],
:root[data-bs-theme="light"] {
    --menu-bg: #FFFFFF !important;
    --menu-item-heading: #5C4A3E !important;
    --menu-item-heading-active: #FFFFFF !important;
    --menu-subdrop-active: #FFFFFF !important;
    --menu-item-border: rgba(61, 42, 31, 0.08) !important;
    --menu-active-color: #C9593D !important;
    --submenu-active-color: #C9593D !important;
}

/* ── Base typography ─────────────────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: var(--cream) !important;
    color: var(--text-body) !important;
    font-weight: 400;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
.card-title, .page-title {
    font-family: 'DM Serif Display', Georgia, serif !important;
    color: var(--text-dark) !important;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.page-wrapper {
    background: var(--cream) !important;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar,
.sidebar .sidebar-inner,
.sidebar [data-simplebar] {
    background: #FFFFFF !important;
    border-right: 1px solid var(--border-soft) !important;
    box-shadow: 2px 0 12px rgba(61, 42, 31, 0.03);
}

/* Texte et icônes — fond blanc donc il FAUT des couleurs foncées explicites */
.sidebar .sidebar-menu ul li a,
.sidebar .sidebar-menu > ul > li > a,
.sidebar .sidebar-menu > ul > li.submenu ul li a {
    color: #5C4A3E !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.sidebar .sidebar-menu > ul > li > a {
    margin: 2px 0;
    padding: 10px 14px !important;
}

.sidebar .sidebar-menu ul li a span,
.sidebar .sidebar-menu ul li a i {
    color: #5C4A3E !important;
}

.sidebar .sidebar-menu ul li a:hover,
.sidebar .sidebar-menu ul li a:hover span,
.sidebar .sidebar-menu ul li a:hover i {
    background-color: rgba(201, 89, 61, 0.08) !important;
    color: #C9593D !important;
}

.sidebar .sidebar-menu li.active > a,
.sidebar .sidebar-menu li.active > a:hover,
.sidebar .sidebar-menu > ul > li > a.active {
    background: linear-gradient(135deg, #C9593D 0%, #D97056 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(201, 89, 61, 0.25);
    border-left: none !important;
}

.sidebar .sidebar-menu li.active > a span,
.sidebar .sidebar-menu li.active > a i,
.sidebar .sidebar-menu > ul > li > a.active span,
.sidebar .sidebar-menu > ul > li > a.active i {
    color: #FFFFFF !important;
}

.sidebar .sidebar-menu .menu-title,
.sidebar .sidebar-menu .menu-title span {
    color: #C9593D !important;
    text-transform: uppercase;
    font-size: 10px !important;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif !important;
}

.sidebar .menu-arrow,
.sidebar .sidebar-menu .menu-arrow {
    color: #8B7355 !important;
}

/* Badges dans sidebar (ex. compteur RDV) */
.sidebar .sidebar-menu .badge {
    color: #FFFFFF !important;
}

/* ── Header ──────────────────────────────────────────────────────── */
.header {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-soft) !important;
    box-shadow: 0 1px 0 rgba(61, 42, 31, 0.03);
}

.header .nav-link,
.header .dropdown-toggle,
.header .user-menu .nav-link,
#toggle_btn {
    color: var(--text-body) !important;
}

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

.top-nav-search .form-control {
    background: var(--cream) !important;
    border: 1px solid var(--border-soft) !important;
    color: var(--text-dark) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
}

.top-nav-search .form-control::placeholder {
    color: var(--text-muted) !important;
}

.top-nav-search .form-control:focus {
    border-color: var(--primary-soft) !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(201, 89, 61, 0.08) !important;
}

.top-nav-search .btn {
    color: var(--primary) !important;
}

/* ── Logo ────────────────────────────────────────────────────────── */
.header-left {
    background: #FFFFFF !important;
    border-right: 1px solid var(--border-soft) !important;
}

.header-left .logo {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
}

.header-left .logo span:first-child {
    color: var(--primary) !important;
    font-weight: 700;
    font-family: 'DM Serif Display', serif !important;
}

.header-left .logo span:last-child {
    color: var(--sage) !important;
    font-weight: 400;
    font-family: 'DM Serif Display', serif !important;
}

/* ── Dashboard cards (detail boxes) ──────────────────────────────── */
.detail-box1,
.detail-box2,
.detail-box3,
.detail-box4 {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: var(--card-shadow) !important;
    color: #FFFFFF !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-box1:hover,
.detail-box2:hover,
.detail-box3:hover,
.detail-box4:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover) !important;
}

.detail-box1 { background: linear-gradient(135deg, #C9593D 0%, #D97056 100%) !important; }
.detail-box2 { background: linear-gradient(135deg, #87A98F 0%, #A5C3AA 100%) !important; }
.detail-box3 { background: linear-gradient(135deg, #C8B3D6 0%, #A890BF 100%) !important; }
.detail-box4 { background: linear-gradient(135deg, #D89F5C 0%, #E8B879 100%) !important; }

/* ── Boutons ─────────────────────────────────────────────────────── */
.btn {
    border-radius: 10px !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--primary) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(201, 89, 61, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201, 89, 61, 0.35);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

.btn-secondary {
    background: var(--sand) !important;
    color: var(--text-dark) !important;
    border: none !important;
}

.btn-secondary:hover {
    background: var(--cream-deep) !important;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
    border-radius: 18px !important;
    border: 1px solid var(--border-soft) !important;
    box-shadow: var(--card-shadow) !important;
    background: #FFFFFF !important;
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: 0 4px 18px rgba(61, 42, 31, 0.08) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-soft) !important;
    padding: 18px 24px !important;
}

.card-body {
    padding: 22px 24px !important;
}

/* ── Tables ──────────────────────────────────────────────────────── */
.table thead th {
    background: var(--cream) !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-soft) !important;
    padding: 14px 16px !important;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: var(--cream) !important;
}

.table td, .table th {
    border-top: 1px solid var(--border-soft) !important;
    padding: 14px 16px !important;
    color: var(--text-body);
}

/* ── Badges / statuts ────────────────────────────────────────────── */
.bg-success-text, .badge-success,
.bg-success, .badge.bg-success {
    background-color: var(--sage) !important;
    color: #FFFFFF !important;
}

.bg-success-light {
    background-color: rgba(135, 169, 143, 0.15) !important;
    color: #5C7D62 !important;
}

.bg-warning-light {
    background-color: rgba(216, 159, 92, 0.15) !important;
    color: #A67838 !important;
}

.bg-danger-light {
    background-color: rgba(201, 89, 61, 0.15) !important;
    color: var(--primary-hover) !important;
}

.bg-info-light {
    background-color: rgba(200, 179, 214, 0.2) !important;
    color: #7A6091 !important;
}

.bg-orange-text {
    background-color: #D89F5C !important;
}

.badge {
    border-radius: 8px !important;
    font-weight: 500;
    padding: 5px 10px !important;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-control {
    border-radius: 10px !important;
    border: 1px solid var(--border-soft) !important;
    padding: 10px 14px !important;
    background: #FFFFFF !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-soft) !important;
    box-shadow: 0 0 0 3px rgba(201, 89, 61, 0.1) !important;
}

label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ── Pagination ──────────────────────────────────────────────────── */
.page-item .page-link {
    color: var(--text-body) !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: 8px !important;
    margin: 0 3px;
    padding: 8px 14px;
}

.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.page-item .page-link:hover {
    background: var(--primary-transparent) !important;
    color: var(--primary) !important;
    border-color: var(--primary-soft) !important;
}

/* ── Liens ───────────────────────────────────────────────────────── */
a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* ── Progress bars ───────────────────────────────────────────────── */
.progress {
    background: var(--cream-deep) !important;
    border-radius: 99px !important;
    height: 8px !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #D97056 100%) !important;
    border-radius: 99px !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 89, 61, 0.25) !important;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 89, 61, 0.45) !important;
}

::-webkit-scrollbar-track {
    background: var(--cream) !important;
}

/* ── Page login / account ────────────────────────────────────────── */
.account-page {
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 100%) !important;
}

.account-page .login-right {
    background: linear-gradient(135deg, var(--primary) 0%, #B8462A 70%, var(--sage) 130%) !important;
    border-radius: 24px 0 0 24px;
}

.account-page .login-right .login-header h3,
.account-page .login-right .login-header h3 a {
    color: #FFFFFF !important;
    font-family: 'DM Serif Display', serif !important;
}

/* ── Dropdowns ───────────────────────────────────────────────────── */
.dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid var(--border-soft) !important;
    box-shadow: 0 8px 28px rgba(61, 42, 31, 0.1) !important;
    padding: 8px !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: var(--text-body) !important;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: var(--primary-transparent) !important;
    color: var(--primary) !important;
}

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(61, 42, 31, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-soft) !important;
    padding: 20px 24px !important;
}

.modal-footer {
    border-top: 1px solid var(--border-soft) !important;
    padding: 16px 24px !important;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
    border-radius: 12px !important;
    border: none !important;
    padding: 14px 18px !important;
}

.alert-success { background: rgba(135, 169, 143, 0.15) !important; color: #5C7D62 !important; }
.alert-warning { background: rgba(216, 159, 92, 0.15) !important; color: #A67838 !important; }
.alert-danger  { background: rgba(201, 89, 61, 0.12) !important;  color: var(--primary-hover) !important; }
.alert-info    { background: rgba(200, 179, 214, 0.18) !important; color: #7A6091 !important; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--text-muted) !important;
}

.breadcrumb-item.active {
    color: var(--primary) !important;
}

/* ── Page title ──────────────────────────────────────────────────── */
.page-title {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.page-title-box {
    padding: 22px 0;
}

/* ── Notifications dropdown ──────────────────────────────────────── */
.notifications .topnav-dropdown-header,
.notifications .topnav-dropdown-footer {
    background: var(--cream) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-soft) !important;
}

/* ── User image frame ────────────────────────────────────────────── */
.user-img img,
.avatar-img {
    border: 2px solid var(--sand) !important;
}

/* ── Subtle decorative touches ──────────────────────────────────── */
.main-wrapper::before {
    content: "";
    position: fixed;
    top: -100px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(201, 89, 61, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── Hero welcome (index.html) ────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */
.welcome-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #F4E8D8 0%, #FAF5ED 55%, #E8D4C0 100%);
    border: 1px solid rgba(201, 89, 61, 0.08);
    box-shadow: 0 12px 40px rgba(61, 42, 31, 0.07);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 52px 56px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(201, 89, 61, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

.hero-title {
    font-family: 'DM Serif Display', Georgia, serif !important;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-actions .btn {
    padding: 12px 24px !important;
    font-size: 14px;
}

/* Artwork (orbs + icon) */
.hero-art {
    position: relative;
    width: 280px;
    height: 240px;
    flex-shrink: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.85;
    animation: hero-float 8s ease-in-out infinite;
}

.orb-1 {
    width: 160px;
    height: 160px;
    top: 10px;
    right: 20px;
    background: radial-gradient(circle at 30% 30%, #E8B89A 0%, #C9593D 85%);
    animation-delay: 0s;
}

.orb-2 {
    width: 110px;
    height: 110px;
    bottom: 20px;
    left: 10px;
    background: radial-gradient(circle at 40% 40%, #B9CFBD 0%, #87A98F 85%);
    animation-delay: -2s;
}

.orb-3 {
    width: 80px;
    height: 80px;
    top: 90px;
    left: 95px;
    background: radial-gradient(circle at 40% 40%, #E5D8EE 0%, #C8B3D6 85%);
    animation-delay: -4s;
}

.hero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.2rem;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(201, 89, 61, 0.3);
    z-index: 3;
    opacity: 0.95;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25%      { transform: translateY(-10px) translateX(4px); }
    50%      { transform: translateY(-6px) translateX(-6px); }
    75%      { transform: translateY(4px) translateX(-2px); }
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
        gap: 24px;
    }
    .hero-subtitle,
    .hero-text { max-width: 100%; }
    .hero-art {
        width: 220px;
        height: 180px;
    }
    .orb-1 { width: 130px; height: 130px; }
    .orb-2 { width: 90px; height: 90px; }
    .orb-3 { width: 60px; height: 60px; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── Dashboard complet — composants ciblés ────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */

/* Forcer lisibilité : text-white UNIQUEMENT sur fonds colorés (detail-box) */
.detail-box1 .text-white,
.detail-box2 .text-white,
.detail-box3 .text-white,
.detail-box4 .text-white {
    color: #FFFFFF !important;
}
/* Ailleurs, si .text-white est utilisé sur carte blanche, on force lisible */
.card .card-body .text-white:not(.detail-box1 *):not(.detail-box2 *):not(.detail-box3 *):not(.detail-box4 *) {
    color: var(--text-body) !important;
}

/* Utilitaires couleurs lisibles */
.text-muted-soft { color: var(--text-muted) !important; font-size: 13px; }
.stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}
.stat-value {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.1;
}
.stat-primary { color: var(--primary) !important; }
.stat-success { color: var(--sage) !important; }
.stat-warning { color: #A67838 !important; }

.stat-block {
    padding: 10px 18px 10px 0;
    border-right: 1px solid var(--border-soft);
}
.stat-block:last-child { border-right: none; }

/* Patient link (table des rendez-vous) */
.patient-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}
.patient-link:hover {
    color: var(--primary) !important;
}
.patient-link img {
    border: 2px solid var(--sand);
    margin-right: 10px;
}

/* ID rendez-vous */
.appt-id {
    font-family: 'Inter', monospace;
    font-size: 12px;
    background: var(--cream);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Actions icônes */
.btn-action {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    background: var(--cream) !important;
    color: var(--text-muted) !important;
    border: none !important;
    transition: all 0.2s ease;
}
.btn-action:hover {
    background: var(--primary-transparent) !important;
    color: var(--primary) !important;
}
.btn-action-danger:hover {
    background: rgba(201, 89, 61, 0.15) !important;
    color: var(--primary-hover) !important;
}

/* Bouton "Voir tout" discret */
.btn-link-soft {
    color: var(--primary) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.btn-link-soft:hover { text-decoration: underline; }

/* ── Liste pathologies ─────────────────────────────────────── */
.patho-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.patho-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-soft);
    gap: 14px;
    transition: background 0.15s ease;
}
.patho-item:last-child { border-bottom: none; }
.patho-item:hover { background: var(--cream); }

.patho-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.patho-icon-primary  { background: rgba(201, 89, 61, 0.12); color: var(--primary); }
.patho-icon-sage     { background: rgba(135, 169, 143, 0.15); color: #5C7D62; }
.patho-icon-lavender { background: rgba(200, 179, 214, 0.22); color: #7A6091; }
.patho-icon-sand     { background: rgba(216, 159, 92, 0.18); color: #A67838; }

.patho-name {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}
.patho-count {
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Liste équipe médicale ─────────────────────────────────── */
.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.team-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-soft);
    gap: 14px;
    transition: background 0.15s ease;
}
.team-item:last-child { border-bottom: none; }
.team-item:hover { background: var(--cream); }

.team-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--sand);
    object-fit: cover;
    flex-shrink: 0;
}
.team-info { flex: 1; min-width: 0; }
.team-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.3;
}
.team-spec {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Badges additionnels pour la sauge/lavande/sand */
.bg-sage-light    { background: rgba(135, 169, 143, 0.15) !important; color: #5C7D62 !important; }
.bg-lavender-light{ background: rgba(200, 179, 214, 0.22) !important; color: #7A6091 !important; }
.bg-sand-light    { background: rgba(216, 159, 92, 0.18) !important; color: #A67838 !important; }

/* ── Fil d'activité ─────────────────────────────────────────── */
.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.activity-feed::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: var(--border-soft);
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    position: relative;
}
.activity-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
}
.activity-dot-primary  { background: rgba(201, 89, 61, 0.15); color: var(--primary); }
.activity-dot-sage     { background: rgba(135, 169, 143, 0.18); color: #5C7D62; }
.activity-dot-lavender { background: rgba(200, 179, 214, 0.25); color: #7A6091; }
.activity-dot-warning  { background: rgba(216, 159, 92, 0.2); color: #A67838; }

.activity-body { flex: 1; min-width: 0; padding-top: 4px; }
.activity-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.3;
}
.activity-desc {
    font-size: 13px;
    color: var(--text-body);
    margin-top: 2px;
    line-height: 1.45;
}
.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 8px;
}

/* ── Corrections contraste — toutes cellules table par défaut ── */
.card .table td,
.card .table th {
    color: var(--text-body);
}
.card .table .text-success { color: var(--sage) !important; }
.card .table .text-warning { color: #A67838 !important; }
.card .table .text-danger  { color: var(--primary-hover) !important; }
.card .table .text-primary { color: var(--primary) !important; }

/* text-fade (utilisé ailleurs) */
.text-fade, .text-muted {
    color: var(--text-muted) !important;
}

/* Responsive stat-block */
@media (max-width: 575.98px) {
    .stat-block {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding: 10px 0;
        width: 100%;
    }
    .stat-block:last-child { border-bottom: none; }
}

/* dropdown-toggle secondary styling — garantir visibilité */
.btn-outline-primary.dropdown-toggle {
    background: #FFFFFF !important;
}
