:root{
  /* Base UI (light) V 23012026*/
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#121826;
  --muted:#667085;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --radius: 14px;

  /* Brand StreetFlow (logo: cyan/blue -> violet + accent green) */
  --primary:#2563eb;      /* bleu (CTA, liens) */
  --primary-2:#1d4ed8;    /* hover bleu */
  --accent:#22d3ee;       /* cyan (effets, badges légers, focus) */
  --accent-2:#7c3aed;     /* violet (optionnel, surbrillance) */
  --brand-green:#22c55e;  /* vert (positive/ok, succès) */

  /* Status */
  --ok:#16a34a;
  --warn:#b45309;
  --skip:#475569;

  /* Surfaces */
  --header-bg: rgba(255,255,255,.92);
  --header-border: rgba(229,231,235,.9);

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(34,211,238,.22);

  /* Legacy (si tu l'utilises encore quelque part) */
  --brand-orange: #f57c00;
}


*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}

a{ color:var(--primary); text-decoration:none; }
a:hover{ color:var(--primary-2); text-decoration:underline; }

.container{ max-width:1200px; margin:0 auto; padding:16px; }

/* ================================
   HEADER – source unique
   ================================ */

.app-header{
  position:sticky;
  top:0;
  z-index:5000;
  background:var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--header-border);
}


.app-header .nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  flex-wrap:nowrap;
}

.app-header .brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  line-height:1.1;
}

.brand-logo{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
}

.brand-logo img{
  display:block;
  width:44px;
  height:44px;
  object-fit:contain;
}
@media (max-width: 900px){
  .brand-logo{ width:36px; height:36px; }
  .brand-logo img{ width:36px; height:36px; }
}


.brand-logo img{
  display:block;
  width:56px;
  height:56px;
  object-fit:contain;
}

.app-header .brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.app-header .title{
  font-weight:800;
  font-size:16px;
  white-space:nowrap;
}

.app-header .subtitle{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:70vw;
}

.app-header .campaign-name{
  color: var(--accent-2); /* violet */
  font-weight:800;
}


/* Nav links */
.nav-links{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Desktop / mobile switches */
.desktop-only{ display:flex; }
.mobile-only{ display:none; }

@media (max-width: 900px){
  .desktop-only{ display:none !important; }
  .mobile-only{ display:block !important; }

  .brand-logo{ width:36px; height:36px; }
  .brand-logo img{ width:24px; height:24px; }
  .app-header .subtitle{ max-width:58vw; }
}

/* Mobile dropdown */
.nav-mobile{ position:relative; }
.nav-mobile summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.nav-mobile summary::-webkit-details-marker{ display:none; }

.nav-mobile-panel{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:6000;
  width:min(92vw, 320px);
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:10px;
  display:grid;
  gap:8px;
}

/* ================================
   UI components
   ================================ */

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:10px;
  color:var(--text);
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
  cursor:pointer;
}

.btn:hover{ border-color:#d1d5db; text-decoration:none; }

.btn.primary{
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(124,58,237,.95));
  border-color: rgba(37,99,235,1);
  color:#fff;
}
.btn.primary:hover{
  filter: brightness(1.03);
  border-color: rgba(29,78,216,1);
}


.btn.danger{
  border-color: #ef4444;
  color: #b91c1c;
  background: #fff;
}
.btn.danger:hover{
  background: #fef2f2;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  background:#fff;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}

.grid{ display:grid; gap:12px; }
.grid.cols-4{ grid-template-columns:repeat(4, minmax(0,1fr)); }
.grid.cols-3{ grid-template-columns:repeat(3, minmax(0,1fr)); }

@media (max-width: 1024px){
  .grid.cols-4{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .grid.cols-3{ grid-template-columns:repeat(1, minmax(0,1fr)); }
}

.h1{ font-size:18px; font-weight:800; margin:0 0 8px 0; }
.small{ font-size:12px; color:var(--muted); }

/* Forms */
form.inline{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

input[type="text"],
input[type="search"],
input[type="number"],
select,
textarea{
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  outline:none;
  background:#fff;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(34,211,238,.55);
  box-shadow: var(--focus-ring);
}


/* Tables */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}

th,td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  font-size:14px;
  text-align:left;
  vertical-align:top;
}

thead th{
  background:#fafafa;
  color:#334155;
  font-weight:700;
}

tbody tr:hover td{ background:#fcfcff; }
tbody tr:last-child td{ border-bottom:0; }

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--border);
  background:#fff;
}
.badge.todo{ color:#1d4ed8; background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.18); }
.badge.progress{ color:var(--warn); background: rgba(180,83,9,.06); border-color: rgba(180,83,9,.18); }
.badge.done{ color:var(--ok); background: rgba(22,163,74,.06); border-color: rgba(22,163,74,.18); }
.badge.skipped{ color:var(--skip); background: rgba(71,85,105,.06); border-color: rgba(71,85,105,.18); }


