:root{--bg:#0f172a;--card:#111827;--muted:#4e5d71;--text:#e5e7eb;--accent:#8b5cf6;--ok:#0e863e;--warn:#f59e0b;--bad:#ef4444;}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;background:#0b1020;color:var(--text)}
.container {width:1280px;max-width:1280px;margin:0 auto;padding:20px}
.topbar{background:#0b1020;border-bottom:1px solid #1f2937;position:sticky;top:0;z-index:10}
.brand{font-weight:700;color:#fff;text-decoration:none;margin-right:20px}
nav a{color:#cbd5e1;margin-right:12px;text-decoration:none}
nav a:hover{color:#fff}
.card{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.07);border-radius:16px;padding:16px;margin:16px 0}
.btn{display:inline-block;background:var(--accent);color:#fff;border:none;padding:10px 14px;border-radius:10px;text-decoration:none;cursor:pointer}
.btn.secondary{background:#1f2937}
.btn.success{background:var(--ok)}
.btn.warn{background:var(--warn)}
.btn.danger{background:var(--bad)}
.input, textarea, select{width:100%;padding:10px;border-radius:10px;border:1px solid #1f2937;background:#0a0f1e;color:#e5e7eb}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:1fr 1fr}
.grid-3{grid-template-columns:repeat(3, 1fr)}
.kpi{display:flex;align-items:center;justify-content:space-between}
.kpi .value{font-size:24px;font-weight:700}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #1f2937;padding:10px;text-align:left}
/* main .flex { display: flex; gap: 12px; align-items: center; } */
.right{float:right}
.mt{margin-top:12px}.mb{margin-bottom:12px}
.center{text-align:center}
.chat{max-height:50vh;overflow:auto;background:#0a0f1e;border:1px solid #1f2937;border-radius:12px;padding:12px}
.msg{margin:8px 0}
.msg .who{font-weight:700}
.tag{background:#0b1020;border:1px solid #1f2937;padding:2px 6px;border-radius:8px;margin-right:6px}

.nav__dropdown {
  position: relative;
}
/* Améliorations pour la galerie et slider */
.offer-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

#solutionsMenu {
    left:25px;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 16px 0;
}

.gallery-slide {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-slide img,
.gallery-slide video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 16px 16px;
}

.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.profile-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.offer-card {
    position: relative;
    overflow: hidden;
}

.offer-card .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    object-fit: cover;
}

.requirements-list {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.requirements-list h4 {
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-item {
    display: flex;
    align-items: start;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.requirement-item i {
    color: var(--accent);
    margin-top: 2px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Upload zones */
.upload-zone {
    border: 2px dashed var(--muted);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Topbar modern ===== */
.topbar{
  --tb-bg: rgba(11,16,32,0.7);
  --tb-border: rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--tb-border);
  background: var(--tb-bg);
}
.topbar--elev{ box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.topbar__inner{ display:flex; align-items:center; gap:16px; padding-top:12px; padding-bottom:12px; }

/* Brand */
.brand{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.brand__logo{ width:32px; height:32px; border-radius:8px; filter: drop-shadow(0 2px 6px rgba(139,92,246,0.35)); }
.brand__wordmark{ height:24px; opacity:.95; }
.brand--row:hover .brand__wordmark{ opacity:1; }

/* Nav */
.nav{ display:flex; align-items:center; gap:12px; margin-left:8px; }
.nav__link{
  display:inline-flex; align-items:center; gap:6px;
  color:#cbd5e1; text-decoration:none; padding:8px 10px; border-radius:10px;
}
.nav__link:hover{ color:#fff; background: rgba(255,255,255,0.05); }
.nav__link.is-active{ color:#fff; background: rgba(139,92,246,0.18); border:1px solid rgba(139,92,246,0.35); }

/* Buttons */
.btn{ background:var(--accent); color:#fff; border-radius:10px; padding:8px 12px; }
.btn--small{ padding:6px 10px; font-size:14px; }

/* Actions cluster (right side) */
.header-actions{ margin-left:auto; display:flex; align-items:center; gap:10px; }

/* Search */
.search{ position:relative; width:260px; }
.search__input{
  width:100%; padding:8px 34px 8px 12px; border-radius:10px;
  border:1px solid #1f2937; background:#0a0f1e; color:#e5e7eb;
}
.search__input:focus{ outline:none; border-color:rgba(139,92,246,0.5); box-shadow:0 0 0 3px rgba(139,92,246,0.25); }
.search__btn{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  border:none; background:transparent; color:#94a3b8; cursor:pointer; font-weight:700;
}

/* Icon buttons */
.icon-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px; text-decoration:none; color:#cbd5e1;
  background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
}
.icon-btn:hover{ color:#fff; background:rgba(255,255,255,0.07); }
.icon-btn__icon{ font-size:16px; line-height:1; }
.badge-dot{
  position:absolute; top:6px; right:6px; width:8px; height:8px; border-radius:50%;
  background:var(--warn); box-shadow:0 0 0 2px #0b1020;
}

/* User menu */
.user{ position:relative; }
.user__btn{
  display:flex; align-items:center; gap:8px; background:transparent; border:1px solid rgba(255,255,255,0.07);
  border-radius:999px; padding:4px 8px; cursor:pointer; color:#e5e7eb;
  background: rgba(255,255,255,0.04);
}
.user__btn:hover{ background: rgba(255,255,255,0.07); }
.user__avatar{ width:28px; height:28px; border-radius:50%; object-fit:cover; border:1px solid rgba(255,255,255,0.3); }
.user__avatar.bg-purple-600{ background-color: #8b5cf6; }
.user__name{ max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; color:#cbd5e1; }
.user__chev{ opacity:.7; }

/* Dropdown */
.dropdown{
  position:absolute; right:0; top:calc(100% + 8px); min-width:220px; display:none;
  background:#0a0f1e; border:1px solid rgba(255,255,255,0.08); border-radius:12px; overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,0.35);
}
.dropdown__item{
  display:block; padding:10px 12px; color:#e5e7eb; text-decoration:none;
}
.dropdown__item:hover{ background:rgba(255,255,255,0.05); }
.dropdown__item--danger{ color:#fecaca; }
.dropdown__sep{ height:1px; background:#1f2937; }

/* Hamburger (mobile only) */
.hamburger{ display:none; background:transparent; border:none; width:40px; height:36px; border-radius:8px; }
.hamburger span{ display:block; height:2px; margin:7px 8px; background:#cbd5e1; }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(1){ transform:translateY(9px) rotate(45deg); transform-origin:8px 1px; }
.hamburger.is-open span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); transform-origin:8px 1px; }

/* Mobile drawer */
.mobile-drawer{ display:none; border-top:1px solid #1f2937; background:#0b1020; }
.mobile-nav{ display:flex; flex-direction:column; gap:8px; padding:12px 20px; }
.mobile-nav a{ color:#cbd5e1; text-decoration:none; padding:10px; border-radius:10px; background:rgba(255,255,255,0.04); }
.mobile-nav a:hover{ color:#fff; background:rgba(255,255,255,0.07); }
.mobile-nav .btn{ text-align:center; }
.mobile-nav .danger{ color:#fecaca; }

/* Responsive */
@media (max-width: 980px){
  .search{ display:none; }
  .nav{ display:none; }
  .hamburger{ display:inline-block; }
  .mobile-drawer.is-open{ display:block; }
}

/* ===== Footer (sans Tailwind) ===== */
.site-footer{
  background:#0b1020;
  color:#cbd5e1;
  padding:48px 0;
  margin-top:48px;
  border-top:1px solid #1f2937;
}
.footer-grid{
  display:grid;
  gap:24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px){
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  .footer-grid{ grid-template-columns: repeat(4, 1fr); }
}

.footer-col{ min-width:0; }
.footer-title{
  font-weight:600;
  color:#e5e7eb;
  margin-bottom:12px;
}
.footer-text{ color:#94a3b8; margin:12px 0 16px; }

.footer-list{ list-style:none; padding:0; margin:0; }
.footer-list li{ margin:8px 0; }
.footer-list a{
  color:#94a3b8; text-decoration:none; transition:color .2s ease;
}
.footer-list a:hover{ color:#ffffff; }

.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.footer-brand__logo{
  width:40px; height:40px; border-radius:10px;
  background:#8b5cf6; color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; letter-spacing:.5px; box-shadow:0 4px 16px rgba(139,92,246,.35);
}
.footer-brand__name{ font-weight:700; color:#fff; font-size:18px; }

.footer-social{ display:flex; gap:12px; margin-top:8px; }
.footer-social a{
  color:#94a3b8; text-decoration:none; font-size:18px;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border-radius:10px; transition:all .2s ease;
}
.footer-social a:hover{ color:#fff; background:rgba(255,255,255,0.09); }

.footer-bottom{
  margin-top:32px; padding-top:16px; text-align:center;
  border-top:1px solid #1f2937; color:#94a3b8;
}
/* Topbar thèmes */
.topbar--dark{ background:#0b1020; border-bottom:1px solid #1f2937; }
.topbar--light{ background:#0f172a; border-bottom:1px solid rgba(255,255,255,0.06); }
.topbar--transparent{
  background:transparent; border-bottom:0; position:absolute; inset:0 0 auto 0;
}
.topbar--transparent .nav__link{ color:#e5e7eb; }
.topbar--transparent .brand__wordmark{ opacity:1; }

/* Main plein écran (quand pas de .container) : rien à faire, juste ne pas mettre la classe */

/* Styles pour la page Commande (orders/view.php) */
.timeline { display: flex; align-items: center; justify-content: space-between; }
.timeline-step { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--muted); }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--muted); border: 2px solid var(--card); transition: all .3s ease; }
.timeline-content { margin-top: 8px; font-size: 12px; }
.timeline-line { flex-grow: 1; height: 2px; background: var(--muted); }
.timeline-step.current .timeline-dot { background: var(--accent); transform: scale(1.2); }
.timeline-step.current .timeline-content { color: var(--accent); font-weight: bold; }
.timeline-step.completed .timeline-dot { background: var(--ok); }
.timeline-step.completed .timeline-content { color: var(--ok); }
.timeline-line.completed { background: var(--ok); }
.actions-panel { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
.info-text { font-size: 12px; color: #94a3b8; text-align: right; }

/* Styles pour les onglets de soumission et l'affichage des liens */
.tabs-container .tabs { display: flex; border-bottom: 1px solid var(--muted); }
.tabs-container .tab { background: transparent; border: none; color: #9ca3b8; padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs-container .tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tabs-container .tab-panel { display: none; padding-top: 16px; }
.tabs-container .tab-panel.is-active { display: block; }
.requirement-text-content pre { white-space: pre-wrap; word-break: break-all; background: rgba(0,0,0,0.2); padding: 8px; border-radius: 6px; font-size: 14px; }
.requirement-text-content pre a { color: var(--accent); text-decoration: underline; }

/* ===== Style de Badge Unifié ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.1; /* Améliore l'alignement vertical */
}
/* Couleurs des badges */
.badge.warn { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.badge.ok { background: rgba(16, 185, 129, 0.2); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.badge.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.badge.bad { background: rgba(239, 68, 68, 0.2); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.badge.accent { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border-color: rgba(139, 92, 246, 0.3); }
.badge.muted { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border-color: rgba(100, 116, 139, 0.3); }

/* Styles pour le formulaire d'avis */
.review-form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rating-input { display: flex; align-items: center; gap: 16px; }
.rating-input .stars { display: flex; flex-direction: row-reverse; }
.rating-input input[type="radio"] { display: none; }
.rating-input label {
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  display: inline-block;
  padding: 2px;
  color: #6b7280;
}
.rating-input label::before {
  content: '★';
}
.rating-input input[type="radio"]:checked ~ label::before {
  color: #f59e0b;
}
.rating-input label:hover::before,
.rating-input label:hover ~ label::before {
  color: #f59e0b;
}
.info-text-ok { color: var(--ok); }
.other-review { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--muted); }
.other-review h4 { font-weight: 600; color: #cbd5e1; }
.other-review p { font-style: italic; color: #9ca3b8; background: rgba(0,0,0,0.2); padding: 8px; border-radius: 6px; }
.stars-display .fa-star { color: #6b7280; }
.stars-display .fa-star.filled { color: #f59e0b; }  

.package-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.btn i { margin-right: 8px; }

.custom-quote-link {
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.custom-quote-link a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.custom-quote-link a:hover strong {
    color: var(--accent);
    text-decoration: underline;
}
.unread-badge {
    background-color: var(--bad);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    line-height: 1;
}

/* Badge pour l'icône de l'enveloppe */
.unread-badge-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--bad);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    line-height: 1;
}

/* Dashboard */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.kpi-card {
    background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(79,70,229,0.05) 100%);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kpi-content .kpi-label {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.kpi-content .kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.kpi-content .kpi-meta {
    margin-top: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.kpi-meta.trend-up { color: #34d399; }
.kpi-meta.trend-down { color: #ef4444; }

.kpi-meta .trend-up i, .kpi-meta .trend-down i { margin-right: 4px; }

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-icon.accent-bg { background: rgba(139,92,246,0.2); color: #a78bfa; }
.kpi-icon.ok-bg { background: rgba(16,185,129,0.2); color: #34d399; }
.kpi-icon.warn-bg { background: rgba(245,158,11,0.2); color: #f59e0b; }
.kpi-icon.blue-bg { background: rgba(59,130,246,0.2); color: #60a5fa; }

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    border-radius: 3px;
}

.kpi-application-breakdown {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}
.kpi-application-breakdown div {
    height: 100%;
    transition: width 0.3s ease;
}
.breakdown-pending { background-color: #f59e0b; }
.breakdown-viewed { background-color: #3b82f6; }
.breakdown-shortlisted { background-color: #8b5cf6; }
.breakdown-accepted { background-color: #10b981; }
.breakdown-rejected { background-color: #ef4444; }

/* Styles pour la modale des avis (version propre) */
        .modal-backdrop {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none; /* Caché par défaut */
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
        }
        .modal-backdrop.is-open {
            display: flex; /* Affiché via la classe .is-open */
        }
        .modal-content {
            background: #1f2937; /* bg-gray-800 */
            padding: 2rem;
            border-radius: 1rem;
            max-width: 500px;
            width: 90%;
            position: relative;
            border: 1px solid #4b5563;
        }
        .modal-close-btn {
            position: absolute;
            top: 1rem; right: 1rem;
            background: none; border: none;
            color: #9ca3af;
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
        }
        .modal-close-btn:hover { color: white; }

.review-item-modal {
            border-bottom: 1px solid #374151;
            padding: 1rem 0;
        }
        .review-item-modal:last-child { border-bottom: none; padding-bottom: 0; }
        .review-item-modal:first-child { padding-top: 0; }
        
        .review-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        .review-header .stars .fa-star { color: #4b5563; }
        .review-header .stars .fa-star.filled { color: #fbbf24; }
        .review-header .date { font-size: 0.75rem; color: #6b7280; }
        
        .review-comment { color: #d1d5db; font-style: italic; }
        .review-author { text-align: right; font-size: 0.875rem; color: #9ca3af; margin-top: 0.5rem; }

  .wip-item {
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}
.wip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.wip-title {
    font-weight: 600;
    color: white;
}
.wip-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.status-badge-wip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}
.status-badge-wip.warn { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.status-badge-wip.ok { background: rgba(16, 185, 129, 0.2); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.status-badge-wip.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }

.progress-bar-wip {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill-wip {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.wip-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}
.wip-meta strong {
    color: var(--accent);
}

/* Prochaines Échéances Timeline */
.timeline-list {
    position: relative;
    padding-left: 10px; /* Espace pour la ligne et les points */
}
.timeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px; /* Centré sur le point de 10px */
    top: 5px;
    bottom: -5px;
    width: 2px;
    background: rgba(255,255,255,0.1);
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.timeline-dot.bad { background: var(--bad); }
.timeline-dot.accent { background: var(--accent); } /* Violet, comme demandé */
.timeline-dot.ok { background: var(--ok); }
.timeline-dot.muted { background: var(--muted); }
.timeline-content .title { color: white; font-weight: 500; margin-bottom: 4px; }
.timeline-content .context { font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.timeline-content .date { font-size: 12px; font-weight: 600; }
.timeline-content .date.bad { color: var(--bad); }
.timeline-content .date.accent { color: var(--accent); } /* Violet, comme demandé */
.timeline-content .date.ok { color: var(--ok); }
.timeline-content .date.muted { color: var(--muted); }

.performance-chart-container {
    height: 300px; /* Hauteur définie pour le graphique */
    position: relative;
}
.chart-toggle-buttons {
    display: flex;
    gap: 8px;
}
.chart-toggle-buttons button {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: #94a3b8;
    font-weight: 500;
}
.chart-toggle-buttons button.active {
    background-color: var(--accent);
    color: white;
}
.chart-toggle-buttons button:not(.active):hover {
    color: white;
}

.activity-list {
        display: grid;
        gap: 20px; /* Espace entre les éléments */
    }

    @media (min-width: 992px) {
        .activity-list {
            grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur les écrans larges */
        }
    }
.activity-card {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-left: 3px solid var(--muted);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.activity-card:last-child {
    border-bottom: none;
}
.activity-card:hover {
    background: rgba(255,255,255,0.04);
    border-left-color: var(--accent);
}
.activity-icon-container {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.activity-icon-container.order { background: var(--accent); }
.activity-icon-container.application { background: var(--warn); }
.activity-icon-container.message { background: var(--blue); }

.activity-card-content { flex-grow: 1; }
.activity-card-title { font-weight: 500; color: white; margin-bottom: 4px; }
.activity-card-meta { font-size: 12px; color: #94a3b8; }
.activity-card-time { font-size: 12px; color: #6b7280; text-align: right; }