/* ===========================
   Thème sombre moderne
   =========================== */
:root {
  --bg: linear-gradient(135deg, #1a1a1a 0%, #2d1b13 50%, #1a1a1a 100%);
  --accent: linear-gradient(135deg, #ff8c00 0%, #e65100 50%, #cc4400 100%);
  --menu: linear-gradient(135deg, #0f0f0f 0%, #1a0f07 50%, #0f0f0f 100%);
  --text: #f5f5f5;
  --text-muted: #b0a89c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(255,140,0,0.15);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
  background: var(--menu);
  color: #fff;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav { display: flex; gap: 1rem; }
.nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.nav a:hover { background: rgba(255,140,0,0.2); }

.header-section { display: flex; align-items: center; gap: 1rem; }
.header-left strong {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
  font-weight: 700;
}
.user-block { display: flex; align-items: center; gap: 0.5rem; }
.user-name { font-size: 0.85rem; color: var(--text-muted); }

/* ===========================
   Filtres uniformes
   =========================== */
.inline-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inline-filters select,
.inline-filters input[type="text"] {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  min-width: 120px;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.inline-filters input[type="text"]::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.inline-filters select:hover,
.inline-filters input[type="text"]:hover {
  border-color: rgba(255,140,0,0.5);
  background: rgba(255,255,255,0.12);
}

.inline-filters select:focus,
.inline-filters input[type="text"]:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.25);
  background: rgba(255,255,255,0.15);
}

/* Style des options dans les menus */
option {
  color: var(--text);
  background-color: #1e1e1e;
}

/* ===========================
   Boutons et cartes
   =========================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255,140,0,0.3);
  transition: all 0.3s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,140,0,0.4);
}
.button.secondary {
  background: transparent;
  border: 2px solid rgba(255,140,0,0.5);
}
.card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,140,0,0.5);
}

/* ===========================
   Kanban centré & synchronisé
   =========================== */
.kanban-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.kanban-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%; /* ← UNIQUEMENT ÇA QUI CHANGE */
  margin: 0 auto;
}

.kanban-header,
.kanban-projects {
  width: 100%;
  max-width: 1600px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,140,0,0.4) transparent;
}

.kanban-header::-webkit-scrollbar,
.kanban-projects::-webkit-scrollbar { height: 8px; }
.kanban-header::-webkit-scrollbar-thumb,
.kanban-projects::-webkit-scrollbar-thumb {
  background: rgba(255,140,0,0.5);
  border-radius: 4px;
}

/* Titres de colonnes */
.kanban-header {
  background: rgba(0,0,0,0.3);
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  position: sticky;
  top: 70px;
  z-index: 10;
}

.kanban-col {
  flex: 0 0 260px;
  min-width: 260px;
  max-width: 260px;
}

.col-title-card {
  background: rgba(255,140,0,0.25);
  border: 1px solid rgba(255,140,0,0.5);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text);
  font-weight: 600;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(255,140,0,0.1);
  transition: all 0.3s;
}
.col-title-card:hover {
  background: rgba(255,140,0,0.35);
  transform: translateY(-2px);
}

/* Colonnes & cartes */
.kanban-projects {
  max-height: calc(100vh - 350px);
  overflow-y: auto;
}
.small { font-size: 0.85rem; color: var(--text-muted); }

/* ===========================
   Divers & responsive
   =========================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.links a {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  background: rgba(255,140,0,0.2);
  border: 1px solid rgba(255,140,0,0.4);
}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 0.6rem; }
  .kanban-header, .kanban-projects { max-width: 100%; }
}
/* ==========================================
   AMÉLIORATION VISIBILITÉ FILTRES + UTILISATEUR
   ========================================== */

/* ✅ Fonds des filtres plus noirs et visibles */
.inline-filters select,
.inline-filters input[type="text"] {
  background-color: rgba(0, 0, 0, 0.9); /* noir quasi pur */
  color: var(--text);
  border: 1px solid rgba(255,140,0,0.5);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  min-width: 130px;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ✅ Survol / focus plus expressifs */
.inline-filters select:hover,
.inline-filters input[type="text"]:hover {
  border-color: rgba(255,140,0,0.7);
  background-color: rgba(25, 25, 25, 1);
}

.inline-filters select:focus,
.inline-filters input[type="text"]:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.25);
  background-color: rgba(35, 35, 35, 1);
}

/* ✅ Options visibles dans le menu déroulant */
option {
  background-color: #000 !important;
  color: var(--text) !important;
}

/* ✅ Bloc utilisateur visible et cohérent */
.user-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.75); /* fond noir translucide */
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(255,140,0,0.15);
}

/* ✅ Typographie héritée du titre (mêmes variables)
   Ainsi le thème/user peut changer la police globale */
.user-block, 
.user-name, 
.user-block .button {
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
}

.user-block .button.secondary.small {
  border: 1px solid rgba(255,140,0,0.5);
  color: var(--text);
  background: transparent;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.user-block .button.secondary.small:hover {
  background: rgba(255,140,0,0.25);
  border-color: rgba(255,140,0,0.8);
}
///* ===========================
   80% TOUT + TITRES PROCHES
   ========================== */

.kanban-container {
  overflow-x: auto !important;
  padding: 1rem;
  padding-top: 20px;
  max-width: 80vw;
  margin: 0 auto;
}

.kanban-scroll {
  width: max-content !important;
  min-width: 80vw;
  max-width: 80vw;
}

.kanban-header {
  position: sticky !important;
  top: 70px !important;
  z-index: 50 !important;
  background: rgba(15,15,15,0.95) !important;
  margin-bottom: 1rem;
  max-width: 80vw !important; /* ← 80% largeur */
  margin-left: auto;
  margin-right: auto;
}

.kanban-projects {
  width: max-content !important;
  min-width: 80vw;
  max-width: 80vw !important; /* ← 80% largeur */
  height: calc(80vh - 100px) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .kanban-col, .column { flex: 0 0 80vw !important; max-width: 80vw !important; }
  .kanban-projects { height: calc(80vh - 80px) !important; }
  .header { justify-content: center !important; flex-wrap: wrap; padding: 0.8rem; }
}

/* Desktop large */
@media (min-width: 1400px) {
  .kanban-col, .column { flex: 0 0 20% !important; max-width: 280px !important; }
}

}
