/* ═══════════════════════════════════════════════════════════════════════════
   CALENDRIER — La Redneckerie · Inferno Dark v2.0
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --bg:        #000000;
  --surface:   #040406;
  --surface2:  #08080d;
  --border:    #14121a;
  --border2:   #1e1a26;

  --fire:      #e8291a;
  --fire2:     #ff3d2a;
  --fire3:     #ff6b55;
  --fire-glow: rgba(232,41,26,0.55);
  --fire-mid:  rgba(232,41,26,0.22);
  --fire-dim:  rgba(232,41,26,0.10);
  --fire-deep: rgba(232,41,26,0.05);

  --green:     #39ff14;
  --cyan:      #00e5ff;
  --text:      #ede8e3;
  --text-dim:  #4a4454;
  --text-off:  #1e1a26;
  --glow:      rgba(232,41,26,0.15);

  --instagram: #E1306C;
  --youtube:   #FF4444;
  --tiktok:    #69C9D0;
  --perso:     #00e5ff;

  --status-brouillon: #e8291a;
  --status-pret:      #39ff14;
  --status-publie:    #00e5ff;
  --status-annule:    #ff3d2a;

  /* legacy aliases */
  --amber:  #e8291a;
  --amber2: #ff3d2a;
  --amber3: #ff6b55;
  --red:    #ff3d2a;
}

/* ── Light theme ─────────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:        #f0eff8;
  --surface:   #ffffff;
  --surface2:  #f5f4fc;
  --border:    #e2e0f0;
  --border2:   #d0ceea;
  --fire:      #cc2010;
  --fire2:     #e8291a;
  --fire3:     #f96854;
  --fire-glow: rgba(204,32,16,0.20);
  --fire-mid:  rgba(204,32,16,0.10);
  --fire-dim:  rgba(204,32,16,0.06);
  --fire-deep: rgba(204,32,16,0.03);
  --green:     #16a34a;
  --cyan:      #0891b2;
  --text:      #18172a;
  --text-dim:  #6060a0;
  --text-off:  #b0aec8;
  --glow:      rgba(204,32,16,0.08);
  --amber:     #cc2010;
  --amber2:    #e8291a;
  --amber3:    #f96854;
  --red:       #e8291a;
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .28s ease, border-color .28s ease, color .22s ease !important;
}
.theme-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border2);
  background: var(--surface2); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .2s;
}
.theme-btn:hover { background: var(--surface); border-color: var(--fire); transform: scale(1.1); }

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Fire vignette — kept, no scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%,    rgba(232,41,26,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 45% 80% at 0%   50%,   rgba(232,41,26,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 45% 80% at 100% 50%,   rgba(232,41,26,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 90% 45% at 50% 100%,   rgba(232,41,26,0.07) 0%, transparent 65%);
  z-index: 9997;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fire); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--fire2); }

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes slideUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes slideInLeft { from{opacity:0;transform:translateX(-12px)} to{opacity:1;transform:none} }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:0.35} }
@keyframes fireLine  { 0%,100%{opacity:.7;box-shadow:0 0 10px rgba(232,41,26,.3)} 50%{opacity:1;box-shadow:0 0 22px rgba(232,41,26,.6)} }
@keyframes hellfire  { 0%,100%{box-shadow:0 0 8px var(--fire-dim)} 50%{box-shadow:0 0 24px var(--fire-mid)} }
@keyframes lava-fill { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes tabSlide  { from{width:0;opacity:0} to{width:100%;opacity:1} }
@keyframes pillIn    { from{opacity:0;transform:translateX(-4px)} to{opacity:1;transform:none} }
@keyframes cardIn    { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@keyframes glow-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(232,41,26,0)} 50%{box-shadow:0 0 16px 2px rgba(232,41,26,.2)} }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border2);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}
.app-header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(232,41,26,0.15) 10%,
    rgba(232,41,26,0.6) 35%, var(--fire) 50%,
    rgba(232,41,26,0.6) 65%, rgba(232,41,26,0.15) 90%, transparent 100%);
  box-shadow: 0 0 16px rgba(232,41,26,0.35);
  animation: fireLine 4s ease-in-out infinite;
}
.app-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(232,41,26,0.04) 0%, transparent 70%);
}

.back-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border2);
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.back-btn:hover {
  color: var(--fire3);
  border-color: rgba(232,41,26,0.5);
  box-shadow: 0 0 10px rgba(232,41,26,0.2);
}

.app-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.app-title-icon { font-size: 1.4rem; }
.app-title-main {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fire2);
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(232,41,26,0.55), 0 0 40px rgba(232,41,26,0.2);
}
.app-title-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.btn-search-trigger {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 6px;
  border: 1px solid var(--border2); background: var(--surface2);
  color: #7a7090; font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem; cursor: pointer; transition: all 0.15s;
}
.btn-search-trigger:hover { border-color: var(--fire3); color: var(--fire3); }
.kbd {
  padding: 1px 5px; border-radius: 3px;
  background: var(--border); color: #7a7090;
  font-size: 0.63rem; border: 1px solid var(--border2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-primary {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  background: var(--fire);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}
.btn-primary:hover {
  background: var(--fire2);
  box-shadow: 0 0 20px rgba(232,41,26,0.6), 0 0 6px rgba(232,41,26,0.4) inset;
  transform: translateY(-1px);
}
.btn-primary.btn-sm { font-size: 0.7rem; padding: 0.3rem 0.7rem; }

.btn-secondary {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  color: var(--fire3);
  border-color: rgba(232,41,26,0.4);
  box-shadow: 0 0 8px rgba(232,41,26,0.1);
}

.btn-danger {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  background: transparent;
  color: var(--fire2);
  border: 1px solid rgba(232,41,26,0.4);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover {
  background: rgba(232,41,26,0.12);
  box-shadow: 0 0 10px rgba(232,41,26,0.25);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-icon:hover {
  border-color: rgba(232,41,26,0.4);
  color: var(--fire3);
  box-shadow: 0 0 8px rgba(232,41,26,0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════════════════ */
.tabs-nav {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border2);
  padding: 0 1.5rem;
}

.tab-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.tab-btn:hover { color: var(--fire3); }
.tab-btn.active {
  color: var(--fire2);
  border-bottom-color: var(--fire);
  text-shadow: 0 0 12px rgba(232,41,26,0.5);
}

.tab-content { display: none !important; }
.tab-content.active { display: block !important; animation: fadeIn 0.2s ease; }

/* ═══════════════════════════════════════════════════════════════════════════
   FILTRES
   ═══════════════════════════════════════════════════════════════════════════ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border2);
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-off);
  letter-spacing: 0.05em;
  margin-right: 0.15rem;
}

.chip {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: rgba(232,41,26,0.4); color: var(--fire3); }

.chip--all.active,
.chip--all-status.active {
  background: rgba(232,41,26,0.12);
  border-color: var(--fire);
  color: var(--fire2);
}

.chip--instagram         { border-color: rgba(225,48,108,0.35); color: rgba(225,48,108,0.75); }
.chip--instagram:hover   { border-color: #E1306C; color: #E1306C; background: rgba(225,48,108,0.08); }
.chip--instagram.active  { background: rgba(225,48,108,0.18); border-color: #E1306C; color: #E1306C; }

.chip--youtube           { border-color: rgba(255,68,68,0.35); color: rgba(255,68,68,0.75); }
.chip--youtube:hover     { border-color: #FF4444; color: #FF4444; background: rgba(255,68,68,0.08); }
.chip--youtube.active    { background: rgba(255,68,68,0.18); border-color: #FF4444; color: #FF4444; }

.chip--tiktok            { border-color: rgba(105,201,208,0.35); color: rgba(105,201,208,0.75); }
.chip--tiktok:hover      { border-color: #69C9D0; color: #69C9D0; background: rgba(105,201,208,0.08); }
.chip--tiktok.active     { background: rgba(105,201,208,0.18); border-color: #69C9D0; color: #69C9D0; }

.chip--facebook          { border-color: rgba(24,119,242,0.35); color: rgba(24,119,242,0.8); }
.chip--facebook:hover    { border-color: #1877F2; color: #1877F2; background: rgba(24,119,242,0.08); }
.chip--facebook.active   { background: rgba(24,119,242,0.15); border-color: #1877F2; color: #1877F2; }

.chip--perso             { border-color: rgba(0,229,255,0.35); color: rgba(0,229,255,0.75); }
.chip--perso:hover       { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.08); }
.chip--perso.active      { background: rgba(0,229,255,0.12); border-color: var(--cyan); color: var(--cyan); }

.chip--patreon           { color: #f96854; border-color: rgba(249,104,84,0.35); }
.chip--patreon:hover,
.chip--patreon.active    { background: rgba(249,104,84,0.12); border-color: #f96854; color: #f96854; }

.chip--programme         { color: #39ff14; border-color: rgba(57,255,20,0.35); }
.chip--programme:hover,
.chip--programme.active  { background: rgba(57,255,20,0.12); border-color: #39ff14; color: #39ff14; }

.chip--en-cours          { color: #ff9500; border-color: rgba(255,149,0,0.35); }
.chip--en-cours:hover,
.chip--en-cours.active   { background: rgba(255,149,0,0.12); border-color: #ff9500; color: #ff9500; }

.chip--brouillon         { border-color: rgba(232,41,26,0.35); color: rgba(232,41,26,0.75); }
.chip--brouillon:hover,
.chip--brouillon.active  { background: rgba(232,41,26,0.12); border-color: var(--fire); color: var(--fire); }

.chip--pret              { border-color: rgba(57,255,20,0.35); color: rgba(57,255,20,0.75); }
.chip--pret:hover,
.chip--pret.active       { background: rgba(57,255,20,0.12); border-color: #39ff14; color: #39ff14; }

.chip--publie            { border-color: rgba(0,229,255,0.35); color: rgba(0,229,255,0.75); }
.chip--publie:hover,
.chip--publie.active     { background: rgba(0,229,255,0.12); border-color: var(--cyan); color: var(--cyan); }

.chip--annule            { border-color: rgba(232,41,26,0.25); color: rgba(232,41,26,0.5); }
.chip--annule:hover,
.chip--annule.active     { background: rgba(232,41,26,0.08); border-color: var(--fire); color: var(--fire3); }

/* ═══════════════════════════════════════════════════════════════════════════
   CALENDRIER MENSUEL
   ═══════════════════════════════════════════════════════════════════════════ */
#tab-calendar { padding: 1.25rem 1.5rem; }

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-nav-btn:hover {
  border-color: rgba(232,41,26,0.5);
  color: var(--fire3);
  box-shadow: 0 0 10px rgba(232,41,26,0.15);
}

.cal-month-label {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fire2);
  letter-spacing: 0.1em;
  flex: 1;
  text-shadow: 0 0 18px rgba(232,41,26,0.4);
}

.cal-today-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal-today-btn:hover {
  border-color: rgba(232,41,26,0.4);
  color: var(--fire3);
}

/* Grille calendrier — cellules séparées avec border-radius */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  border-radius: 6px;
  overflow: hidden;
}

.cal-weekday {
  background: var(--surface2);
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border2);
}

.cal-day {
  background: var(--surface);
  min-height: 96px;
  padding: 0.35rem;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: background 0.15s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  overflow: hidden;
}
.cal-day::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: transparent;
  transition: background 0.2s;
}
.cal-day:hover {
  background: var(--surface2);
  border-color: rgba(232,41,26,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 8px rgba(232,41,26,0.08);
  z-index: 2;
}
.cal-day:hover::before {
  background: linear-gradient(90deg, transparent, var(--fire) 50%, transparent);
}

.cal-day--other-month {
  background: rgba(4,4,6,0.6);
  opacity: 0.45;
}
.cal-day--other-month .cal-day-num { color: var(--text-off); }

.cal-day--today {
  background: rgba(232,41,26,0.07);
  border-color: rgba(232,41,26,0.3);
  animation: glow-pulse 3s ease-in-out infinite;
}
.cal-day--today .cal-day-num {
  background: var(--fire);
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  box-shadow: 0 0 10px rgba(232,41,26,0.5);
}

.cal-day--selected {
  background: rgba(232,41,26,0.10);
  border-color: rgba(232,41,26,0.5);
}

.cal-day-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Event pills */
.event-pill {
  font-size: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  cursor: pointer;
  line-height: 1.5;
  transition: opacity 0.15s, transform 0.15s;
  animation: pillIn 0.2s ease both;
}
.event-pill:hover { opacity: 0.75; transform: translateX(2px); }
.event-pill[draggable="true"] { cursor: grab; }
.event-pill[draggable="true"]:active { cursor: grabbing; }
.event-pill--dragging { opacity: 0.3; pointer-events: none; }

.cal-day--dragover {
  background: rgba(232,41,26,0.08) !important;
  border-color: rgba(232,41,26,0.5) !important;
  box-shadow: inset 0 0 12px rgba(232,41,26,0.12);
}

.event-pill--instagram { background: rgba(225,48,108,0.18); color: #f06090; border-left: 2px solid #E1306C; }
.event-pill--youtube   { background: rgba(255,68,68,0.18);  color: #ff7070; border-left: 2px solid #FF4444; }
.event-pill--tiktok    { background: rgba(105,201,208,0.18);color: #69C9D0; border-left: 2px solid #69C9D0; }
.event-pill--facebook  { background: rgba(24,119,242,0.15); color: #6aa4f7; border-left: 2px solid #1877F2; }
.event-pill--perso     { background: rgba(0,229,255,0.10); color: var(--cyan); border-left: 2px solid var(--cyan); }
.event-pill--ext       { background: rgba(0,229,255,0.07); color: rgba(0,229,255,0.7); border-left: 2px solid rgba(0,229,255,0.4); }
.event-pill--default   { background: rgba(232,41,26,0.14); color: var(--fire3); border-left: 2px solid var(--fire); }
.event-pill--patreon   { background: rgba(249,104,84,0.16);border-left: 2px solid #f96854; color: #f96854; }

.cal-day-more {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-dim);
  padding: 0 4px;
}

/* ── Panneau détail du jour ─────────────────────────────────────────────────── */
.day-detail {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.2s ease;
}
.day-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire) 40%, var(--fire2) 60%, transparent);
  box-shadow: 0 0 12px rgba(232,41,26,0.4);
}

.day-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border2);
}
.day-detail-header span {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--fire2);
  text-shadow: 0 0 12px rgba(232,41,26,0.4);
}
.day-detail-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
}
.day-detail-close:hover { color: var(--fire2); transform: rotate(90deg); }

.day-detail-events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-event-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  animation: cardIn 0.2s ease both;
  cursor: pointer;
}
.detail-event-card:hover {
  border-color: rgba(232,41,26,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 8px rgba(232,41,26,0.08);
  transform: translateX(3px);
}

.detail-event-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-event-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.detail-event-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

.detail-event-tags {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-off);
}

/* Quick action row on event detail cards */
.quick-actions {
  display: flex; gap: 4px; margin-top: 6px;
  padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.05);
}
.qa-btn {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; color: var(--text-dim); font-family: 'Share Tech Mono', monospace;
  font-size: 10px; padding: 2px 7px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.qa-btn:hover { background: rgba(232,41,26,0.12); border-color: rgba(232,41,26,0.35); color: var(--fire3); }
.qa-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.detail-event-card--instagram { border-left: 3px solid #E1306C; }
.detail-event-card--youtube   { border-left: 3px solid #FF4444; }
.detail-event-card--tiktok    { border-left: 3px solid #69C9D0; }
.detail-event-card--facebook  { border-left: 3px solid #1877F2; }
.detail-event-card--perso,
.detail-event-card--ext       { border-left: 3px solid var(--cyan); }
.detail-event-card--default   { border-left: 3px solid var(--fire); }
.detail-event-card--patreon   { border-left: 3px solid #f96854; }

/* Badge statut */
.status-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.status-badge--brouillon  { background: rgba(232,41,26,0.15); color: var(--fire2); border: 1px solid rgba(232,41,26,0.3); }
.status-badge--en-cours   { background: rgba(255,149,0,0.15); color: #ffb340; border: 1px solid rgba(255,149,0,0.35); }
.status-badge--pret       { background: rgba(57,255,20,0.1);  color: #39ff14; border: 1px solid rgba(57,255,20,0.3); }
.status-badge--programme  { background: rgba(57,255,20,0.12); color: #39ff14; border: 1px solid rgba(57,255,20,0.35); }
.status-badge--publie     { background: rgba(0,229,255,0.12); color: var(--cyan); border: 1px solid rgba(0,229,255,0.3); }
.status-badge--annule     { background: rgba(80,80,80,0.15);  color: #888; border: 1px solid rgba(120,120,120,0.3); }

/* ═══════════════════════════════════════════════════════════════════════════
   VUE SEMAINE
   ═══════════════════════════════════════════════════════════════════════════ */
#tab-semaine { padding: 0; }

.semaine-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px;
  flex-wrap: wrap;
}
.semaine-period-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: var(--fire2);
  flex: 1;
  text-align: center;
  text-shadow: 0 0 14px rgba(232,41,26,0.4);
}
.semaine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 0 20px 12px;
}
.semaine-stat-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.semaine-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,41,26,0.4), transparent);
}
.semaine-stat-card:hover {
  border-color: rgba(232,41,26,0.3);
  box-shadow: 0 0 12px rgba(232,41,26,0.1);
}
.semaine-stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fire2);
  text-shadow: 0 0 12px rgba(232,41,26,0.4);
}
.semaine-stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0.05em;
}
.semaine-list {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.semaine-day-block {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
  animation: cardIn 0.25s ease both;
}
.semaine-day-block:hover { border-color: rgba(232,41,26,0.2); }
.semaine-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--surface2);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border2);
}
.semaine-day-header--today {
  color: var(--fire3);
  border-bottom-color: rgba(232,41,26,0.3);
}
.semaine-day-header--today::before { content: '▶ '; }
.semaine-day-count { font-size: 0.62rem; color: var(--text-off); }
.semaine-day-empty {
  padding: 10px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-off);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OBJECTIFS DE LA SEMAINE
   ═══════════════════════════════════════════════════════════════════════════ */
.objectives-section {
  margin: 16px 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.objectives-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire) 40%, var(--fire3) 60%, transparent);
  box-shadow: 0 0 10px rgba(232,41,26,0.4);
}
.objectives-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
}
.objectives-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--fire3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.objectives-week-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-off);
}
.objectives-add-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
}
.objectives-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 3px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.objectives-input:focus {
  border-color: rgba(232,41,26,0.5);
  box-shadow: 0 0 8px rgba(232,41,26,0.12);
}
.objectives-input::placeholder { color: var(--text-off); }
.objectives-add-btn {
  background: rgba(232,41,26,0.1);
  border: 1px solid rgba(232,41,26,0.35);
  color: var(--fire3);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.objectives-add-btn:hover { background: rgba(232,41,26,0.2); box-shadow: 0 0 10px rgba(232,41,26,0.2); }
.objectives-list { list-style: none; padding: 4px 0; margin: 0; }
.objectives-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.objectives-item:last-child { border-bottom: none; }
.objectives-item:hover { background: rgba(232,41,26,0.04); }
.objectives-item.completed .objectives-item-text { text-decoration: line-through; color: var(--text-off); }
.objectives-checkbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border2);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.objectives-checkbox:hover { border-color: rgba(232,41,26,0.5); }
.objectives-item.completed .objectives-checkbox {
  background: rgba(57,255,20,0.18);
  border-color: var(--green);
  color: var(--green);
}
.objectives-item-text {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
}
.objectives-delete {
  background: none;
  border: none;
  color: var(--text-off);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.objectives-item:hover .objectives-delete { opacity: 1; }
.objectives-delete:hover { color: var(--fire2); }
.objectives-empty {
  padding: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-off);
  text-align: center;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RÉGLAGES
   ═══════════════════════════════════════════════════════════════════════════ */
#tab-settings {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
}

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
  animation: cardIn 0.25s ease both;
}
.settings-section:hover { border-color: rgba(232,41,26,0.2); }
.settings-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,41,26,0.3), transparent);
}

.settings-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fire3);
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border2);
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.settings-desc-small {
  font-size: 0.7rem;
  color: var(--text-off);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.5;
}

.ical-url-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
}
.ical-url-box code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  flex: 1;
  word-break: break-all;
}
.btn-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-copy:hover { border-color: rgba(232,41,26,0.4); color: var(--fire3); }

.telegram-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
  min-height: 1.2em;
}

/* ── Calendriers externes ───────────────────────────────────────────────────── */
.external-cals-list { display: flex; flex-direction: column; gap: 0.5rem; }

.ext-cal-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.ext-cal-card:hover { border-color: rgba(232,41,26,0.2); }

.ext-cal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ext-cal-info { flex: 1; min-width: 0; }
.ext-cal-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ext-cal-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-off);
  margin-top: 2px;
}
.ext-cal-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

.btn-sync {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sync:hover { background: rgba(0,229,255,0.08); border-color: var(--cyan); }

.btn-del-ext {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  background: transparent;
  color: var(--fire2);
  border: 1px solid rgba(232,41,26,0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-del-ext:hover { background: rgba(232,41,26,0.1); border-color: var(--fire2); }

.badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.badge--actif { background: rgba(57,255,20,0.12);  color: var(--green); border: 1px solid rgba(57,255,20,0.3); }
.badge--sync  { background: rgba(0,229,255,0.12);  color: var(--cyan);  border: 1px solid rgba(0,229,255,0.3); }
.badge--prive { background: rgba(232,41,26,0.12);  color: var(--fire3); border: 1px solid rgba(232,41,26,0.3); }

.add-ext-cal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border2);
}
.add-ext-cal-form .input-field { flex: 1; min-width: 160px; }
.input-color {
  width: 40px; height: 36px; padding: 2px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  background: var(--surface2);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMULAIRES / INPUTS
   ═══════════════════════════════════════════════════════════════════════════ */
.input-field {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.input-field:focus {
  border-color: rgba(232,41,26,0.5);
  box-shadow: 0 0 10px rgba(232,41,26,0.12);
}
.input-field::placeholder { color: var(--text-off); }

select.input-field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a4454'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;
}
select.input-field option { background: var(--surface); color: var(--text); }
textarea.input-field { resize: vertical; min-height: 72px; }

/* Form layout */
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.label-hint { color: var(--text-off); font-size: 0.62rem; }
.form-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--fire);
  cursor: pointer;
}

/* ===== PLATFORM CHECKBOXES ===== */
.platform-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.platform-cb {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  transition: all 0.15s;
  user-select: none;
}
.platform-cb input[type="checkbox"] { display: none; }
.platform-cb:has(input:checked) { opacity: 1; }
.platform-cb--instagram:has(input:checked) { background: rgba(225,48,108,0.15); border-color: #E1306C; color: #E1306C; }
.platform-cb--youtube:has(input:checked)   { background: rgba(255,68,68,0.15);  border-color: #FF4444; color: #FF4444; }
.platform-cb--tiktok:has(input:checked)    { background: rgba(105,201,208,0.15);border-color: #69C9D0; color: #69C9D0; }
.platform-cb--patreon:has(input:checked)   { background: rgba(249,104,84,0.15); border-color: #f96854; color: #f96854; }
.platform-cb--facebook:has(input:checked)  { background: rgba(24,119,242,0.15); border-color: #1877F2; color: #1877F2; }
.platform-cb:hover { border-color: rgba(232,41,26,0.4); color: var(--fire3); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(232,41,26,0.15), 0 0 0 1px rgba(232,41,26,0.1);
  animation: slideUp 0.2s ease;
  position: relative;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire) 30%, var(--fire2) 50%, var(--fire) 70%, transparent);
  box-shadow: 0 0 14px rgba(232,41,26,0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
  padding-top: 1.25rem;
}
.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fire2);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(232,41,26,0.4);
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: var(--fire2); transform: rotate(90deg); }

.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border2);
  flex-shrink: 0;
}
.modal-footer-right { display: flex; gap: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show,
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--success { background: rgba(57,255,20,0.12);  border: 1px solid var(--green); color: var(--green); }
.toast--error   { background: rgba(232,41,26,0.12);  border: 1px solid var(--fire2); color: var(--fire2); }
.toast--info    { background: rgba(232,41,26,0.1);   border: 1px solid var(--fire);  color: var(--fire3); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-header { padding: 0.6rem 1rem; flex-wrap: wrap; }
  .app-title-main { font-size: 0.88rem; }
  .tabs-nav { padding: 0 0.75rem; }
  .tab-btn  { padding: 0.6rem 0.75rem; font-size: 0.7rem; }
  .filters-bar { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  #tab-calendar  { padding: 0.75rem; }
  #tab-settings  { padding: 0.75rem; }
  .cal-day { min-height: 64px; }
  .event-pill { font-size: 0.56rem; }
  .form-row--2col { grid-template-columns: 1fr; }
  .modal { max-height: 95vh; }
  .modal-body { padding: 1rem; }
  .add-ext-cal-form { flex-direction: column; }
  .add-ext-cal-form .input-field { min-width: unset; width: 100%; }
  .ical-url-box { flex-direction: column; align-items: flex-start; }
  .ical-url-box code { font-size: 0.62rem; }
  .semaine-list { padding: 0 12px 16px; }
  .semaine-stats { padding: 0 12px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PIPELINE KANBAN
   ═══════════════════════════════════════════════════════════════════════════ */
#tab-pipeline { padding: 1.25rem 1.5rem; }

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.pipeline-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fire2);
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(232,41,26,0.4);
}

.pipeline-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: start;
}

.pipeline-col {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: border-color 0.2s;
}
.pipeline-col:hover { border-color: rgba(232,41,26,0.15); }

.pipeline-col-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
  border-top: 2px solid;
}
.pipeline-col-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  flex: 1;
}
.pipeline-col-count {
  font-family: 'Orbitron', monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

.pipeline-col-body {
  flex: 1;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 100px;
}

.pipeline-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  animation: cardIn 0.2s ease both;
}
.pipeline-card:hover {
  border-color: rgba(232,41,26,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 10px rgba(232,41,26,0.07);
}
.pipeline-card--overdue {
  border-color: rgba(232,41,26,0.4);
  background: rgba(232,41,26,0.04);
}

.pipeline-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.35;
}
.pipeline-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pipeline-card-type {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.56rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pipeline-card-grip {
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: grab;
  padding: 0 4px 0 0;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}
.pipeline-card-grip:active { cursor: grabbing; }
.pipeline-card-body { flex: 1; min-width: 0; }

.pipeline-card--dragging {
  opacity: 0.4;
  transform: scale(0.97);
  box-shadow: none;
}
.pipeline-col--dragover {
  border-color: rgba(232,41,26,0.6) !important;
  background: rgba(232,41,26,0.05);
  box-shadow: 0 0 18px rgba(232,41,26,0.15);
}

.pipeline-card-age {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  background: var(--surface);
  padding: 1px 4px;
  border-radius: 3px;
}
.pipeline-card-age.overdue { color: var(--fire3); background: rgba(232,41,26,0.08); }

.detail-plat-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.pipeline-empty {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-off);
  text-align: center;
  padding: 24px 8px;
  font-style: italic;
}

.pipeline-col-footer {
  padding: 7px;
  border-top: 1px solid var(--border2);
}
.pipeline-add-btn {
  width: 100%;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  background: transparent;
  color: var(--text-off);
  border: 1px dashed var(--border2);
  padding: 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.pipeline-add-btn:hover {
  color: var(--fire3);
  border-color: rgba(232,41,26,0.3);
  background: rgba(232,41,26,0.04);
}

@media (max-width: 900px) { .pipeline-kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pipeline-kanban { grid-template-columns: 1fr; } #tab-pipeline { padding: 0.75rem; } }

/* ═══════════════════════════════════════════════════════════════════════════
   IDÉES RAPIDES
   ═══════════════════════════════════════════════════════════════════════════ */
#tab-idees { padding: 1.25rem 1.5rem; }

.idees-capture {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.idees-capture::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire) 40%, var(--fire3) 60%, transparent);
  box-shadow: 0 0 12px rgba(232,41,26,0.35);
  animation: fireLine 4s ease-in-out infinite;
}
.idees-capture-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fire3);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.idees-capture-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.idees-submit-btn { flex-shrink: 0; }

.idees-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0 2px;
}
.idees-list-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.idees-count {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: var(--fire3);
}

.idees-list { display: flex; flex-direction: column; gap: 8px; }

.idee-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  animation: cardIn 0.2s ease both;
}
.idee-card:hover {
  border-color: rgba(232,41,26,0.22);
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  transform: translateX(2px);
}
.idee-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.idee-platform-badge { font-size: 1rem; flex-shrink: 0; }
.idee-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.idee-plat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-off);
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.idee-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.55;
  font-style: italic;
  padding-left: 26px;
}
.idee-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.idee-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-off);
}
.idee-actions { display: flex; gap: 6px; }
.idee-btn-convert {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  background: rgba(232,41,26,0.1);
  color: var(--fire3);
  border: 1px solid rgba(232,41,26,0.3);
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.idee-btn-convert:hover { background: rgba(232,41,26,0.2); box-shadow: 0 0 8px rgba(232,41,26,0.2); }
.idee-btn-delete {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  background: transparent;
  color: var(--text-off);
  border: 1px solid var(--border2);
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.idee-btn-delete:hover { color: var(--fire2); border-color: rgba(232,41,26,0.3); }

.idees-empty {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-off);
  text-align: center;
  padding: 48px 20px;
  font-style: italic;
  line-height: 2;
}

@media (max-width: 540px) {
  #tab-idees { padding: 0.75rem; }
  .idees-capture-row { flex-direction: column; }
  .idees-capture-row .input-field { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════════════════ */

#tab-stats { padding: 0.75rem 1rem 2rem; }

/* ─── Stats topbar ─────────────────────────────────────────────────────────── */
.stats-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.stats-filters {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: 8px; padding: 0.5rem 0.75rem;
}
.stats-filters-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.stats-filter-label {
  font-family: 'Share Tech Mono', monospace; font-size: 0.6rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em;
  min-width: 38px;
}
.stats-period-btns, .stats-type-btns, .timeline-period-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.period-btn, .type-btn, .tl-period-btn, .fl-period-btn {
  padding: 3px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: 600;
  border: 1px solid var(--border2); background: transparent; color: var(--text-dim);
  cursor: pointer; transition: all .15s; font-family: 'Share Tech Mono', monospace;
}
.period-btn:hover, .type-btn:hover, .tl-period-btn:hover, .fl-period-btn:hover { border-color: var(--fire3); color: var(--fire3); }
.period-btn.active, .type-btn.active, .tl-period-btn.active, .fl-period-btn.active {
  background: rgba(232,41,26,.18); border-color: var(--fire3); color: var(--fire3);
}

/* ─── Export CSV ──────────────────────────────────────────────────────────── */
.stats-export-row { padding: 0; margin-bottom: 0.5rem; }
.btn-export-csv {
  padding: 5px 14px; font-size: 0.75rem; border-radius: 6px;
  border: 1px solid var(--border2); background: rgba(255,255,255,0.04);
  color: var(--text-dim); cursor: pointer; transition: all .15s;
  font-family: 'Share Tech Mono', monospace; white-space: nowrap;
}
.btn-export-csv:hover { border-color: #39ff14; color: #39ff14; }

/* ─── KPI row ─────────────────────────────────────────────────────────────── */
.stats-kpi-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem; margin-bottom: 0.6rem;
}
.stats-kpi-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 0.75rem 0.9rem 0.7rem;
  position: relative; overflow: hidden;
  border-left: 3px solid rgba(232,41,26,0.4);
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  cursor: default;
}
.stats-kpi-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  transform: translateY(-1px);
}

/* Couleur accent par carte */
.stats-kpi-card--cyan     { border-left-color: #00e5ff; background: linear-gradient(135deg,rgba(0,229,255,.07) 0%,var(--surface) 55%); }
.stats-kpi-card--cyan:hover     { border-color: rgba(0,229,255,0.5); box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 12px rgba(0,229,255,.08); }
.stats-kpi-card--green    { border-left-color: #39ff14; background: linear-gradient(135deg,rgba(57,255,20,.07) 0%,var(--surface) 55%); }
.stats-kpi-card--green:hover    { border-color: rgba(57,255,20,0.5); box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 12px rgba(57,255,20,.08); }
.stats-kpi-card--purple   { border-left-color: #a78bfa; background: linear-gradient(135deg,rgba(167,139,250,.07) 0%,var(--surface) 55%); }
.stats-kpi-card--purple:hover   { border-color: rgba(167,139,250,0.5); }
.stats-kpi-card--instagram{ border-left-color: #E1306C; background: linear-gradient(135deg,rgba(225,48,108,.07) 0%,var(--surface) 55%); }
.stats-kpi-card--instagram:hover{ border-color: rgba(225,48,108,0.5); box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 12px rgba(225,48,108,.08); }
.stats-kpi-card--gold     { border-left-color: #ffb000; background: linear-gradient(135deg,rgba(255,176,0,.07) 0%,var(--surface) 55%); }
.stats-kpi-card--gold:hover     { border-color: rgba(255,176,0,0.5); }

/* Valeur principale — grande et lisible */
.stats-kpi-val {
  font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 900;
  letter-spacing: 0.02em; line-height: 1; margin: 0.2rem 0 0.12rem;
}
.stats-kpi-card--cyan     .stats-kpi-val { color: #00e5ff; text-shadow: 0 0 14px rgba(0,229,255,.35); }
.stats-kpi-card--green    .stats-kpi-val { color: #39ff14; text-shadow: 0 0 14px rgba(57,255,20,.3); }
.stats-kpi-card--purple   .stats-kpi-val { color: #a78bfa; }
.stats-kpi-card--instagram .stats-kpi-val { color: #f06292; }
.stats-kpi-card--gold     .stats-kpi-val { color: #ffb000; }

/* Étiquette en haut */
.stats-kpi-label {
  font-family: 'Share Tech Mono', monospace; font-size: 0.58rem;
  color: #7a7090; text-transform: uppercase; letter-spacing: 0.1em;
}
/* Sous-stat (moy. par pub, etc.) */
.stats-kpi-sub {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: var(--text-dim);
}

/* Mini-barres de répartition par plateforme */
.stats-kpi-platform-bars {
  margin-top: auto; padding-top: 0.5rem;
  display: flex; flex-direction: column; gap: 3px;
}
.stats-kpi-bar-row {
  display: flex; align-items: center; gap: 5px; font-size: 0.58rem;
  font-family: 'Share Tech Mono', monospace; color: var(--text-dim);
}
.stats-kpi-bar-label { width: 22px; flex-shrink: 0; }
.stats-kpi-bar-track {
  flex: 1; height: 4px; background: rgba(255,255,255,0.07);
  border-radius: 2px; overflow: hidden;
}
.stats-kpi-bar-fill { height: 100%; border-radius: 2px; transition: width .4s; }
.stats-kpi-bar-val { width: 32px; text-align: right; flex-shrink: 0; }

/* ─── Dashboard principal ─────────────────────────────────────────────────── */
.stats-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Ligne 1 : donuts + bar charts */
.stats-row-charts {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.stats-row-charts .stats-chart-card--donut {
  flex: 0 0 185px;
}
.stats-row-charts .stats-chart-card--bar {
  flex: 1 1 0;
  min-width: 0;
}

/* Charts card générique */
.stats-chart-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 0.5rem 0.75rem;
}
.stats-chart-card--donut .stats-chart-canvas-wrap { height: 165px; }
.stats-chart-canvas-wrap { position: relative; height: 165px; overflow: visible; }
.stats-chart-canvas-wrap--tall { height: 210px; }
.stats-chart-canvas-wrap canvas { position: absolute; inset: 0; }
.stats-chart-title {
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem;
  color: var(--text-dim); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: .06em;
}
.stats-chart-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.stats-chart-no-data {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 0.78rem;
  color: var(--text-dim); text-align: center; padding: 1rem;
  background: var(--surface); border-radius: 8px;
}

/* Ligne 2 : timeline + abonnés côte à côte */
.stats-row-timelines {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.stats-chart-card--timeline  { flex: 3 1 0; min-width: 0; }
.stats-chart-card--followers { flex: 2 1 0; min-width: 0; }

/* Timeline period buttons */
.timeline-period-btns { display: flex; gap: 4px; }
.tl-period-btn {
  padding: 2px 8px; border-radius: 4px; font-size: 0.68rem;
  border: 1px solid var(--border2); background: transparent; color: var(--text-dim);
  cursor: pointer; transition: all .15s;
}
.tl-period-btn.active { border-color: var(--fire3); color: var(--fire3); background: rgba(232,41,26,.12); }
.tl-period-btn:hover { border-color: var(--fire3); color: var(--fire3); }

/* Ligne 3 : best day + top pubs côte à côte */
.stats-row-bottom {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.stats-row-bottom-left {
  flex: 1 1 0;
  min-width: 0;
}
.stats-top-section {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 0.6rem 0.85rem;
}

/* ─── Meilleur jour + Heatmap ─────────────────────────────────────────────── */
.stats-bestday-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.stats-bestday-section, .stats-heatmap-section {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 0.6rem 0.85rem;
}
.stats-bestday-section { flex: 1; }
.stats-heatmap-section { flex: 0 0 auto; display: flex; flex-direction: column; }
.stats-heatmap-wrap { margin-top: 0.4rem; flex: 1; display: flex; flex-direction: column; overflow-x: auto; }

/* ─── Heatmap grid ────────────────────────────────────────────────────────── */
.heatmap-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  width: 60px;
  min-height: 0;
}
.heatmap-cell { border-radius: 2px; cursor: default; transition: transform .1s; }
.heatmap-cell:hover { transform: scale(1.3); }
.hm-0  { background: rgba(255,255,255,.05); }
.hm-1  { background: rgba(57,255,20,.25); }
.hm-2  { background: rgba(57,255,20,.5); }
.hm-3  { background: rgba(57,255,20,.75); }
.hm-4  { background: #39ff14; }
.hm-future { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.heatmap-legend { display: flex; align-items: center; gap: 3px; margin-top: 6px; font-size: .6rem; color: var(--text-dim); }
.hm-leg-cells { display: flex; gap: 2px; }
.hm-leg-cell { width: 9px; height: 9px; border-radius: 2px; }

/* ─── Meilleur jour bars ─────────────────────────────────────────────────── */
.stats-bestday-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.bestday-plat-card { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.bestday-plat-name { font-size: 0.68rem; color: var(--text-dim); font-family: 'Share Tech Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.bestday-bars { display: flex; gap: 4px; align-items: flex-end; height: 60px; }
.bestday-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; height: 100%; }
.bestday-bar { width: 100%; background: rgba(255,255,255,.12); border-radius: 2px 2px 0 0; transition: height .3s; min-height: 2px; }
.bestday-bar--best { background: var(--fire3); }
.bestday-label { font-size: 0.58rem; color: var(--text-dim); }
.bestday-label--best { color: var(--fire3); font-weight: 700; }
.bestday-winner { font-size: 0.68rem; color: var(--text-dim); margin-top: 2px; }

/* ─── Top publications ────────────────────────────────────────────────────── */
.stats-section-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.72rem;
  color: var(--text); margin-bottom: 0.6rem; letter-spacing: 0.05em;
}
.stats-top-list { display: flex; flex-direction: column; gap: 3px; }
.stats-top-card {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
  border-radius: 5px; padding: 0.3rem 0.6rem;
}
.stats-top-rank {
  font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 900;
  color: var(--fire3); min-width: 22px;
}
.stats-top-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; }
.stats-top-title { font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.stats-top-meta { font-size: 0.68rem; color: var(--text-dim); display: flex; gap: 0.3rem; align-items: center; flex-shrink: 0; }
.stats-top-theme { color: #a78bfa; }
.stats-top-numbers { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.stats-num-views { font-size: 0.72rem; color: var(--text); font-family: 'Share Tech Mono', monospace; }
.stats-num-likes { font-size: 0.72rem; color: var(--text-dim); font-family: 'Share Tech Mono', monospace; }
.stats-empty { color: var(--text-off); font-size: 0.8rem; padding: 1rem 0; text-align: center; }

/* ─── Toutes les publications ─────────────────────────────────────────────── */
.stats-events-section {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 0.6rem 0.85rem;
}
.stats-events-header { display: flex; align-items: center; justify-content: space-between; }
.stats-events-list { display: flex; flex-direction: column; gap: 0; margin-top: 0.5rem; max-height: 600px; overflow-y: auto; }

/* Groupes par thème */
.stats-theme-group { border-bottom: 1px solid rgba(255,255,255,.04); }
.stats-theme-group:last-child { border-bottom: none; }
.stats-theme-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 6px 8px; cursor: pointer; border-radius: 6px;
  transition: background .12s; user-select: none;
}
.stats-theme-header:hover { background: rgba(255,255,255,.04); }
.stats-theme-chevron { font-size: 0.6rem; color: var(--text-dim); flex-shrink: 0; width: 10px; }
.stats-theme-name { font-size: 0.78rem; font-weight: 700; color: var(--text); flex-shrink: 0; }
.stats-theme-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-left: auto; }
.stg-count { font-size: 0.68rem; color: var(--text-dim); }
.stg-views { font-size: 0.68rem; color: var(--text-dim); }
.stg-avg   { font-size: 0.65rem; color: #00e5ff; background: rgba(0,229,255,.07); border-radius: 3px; padding: 0 4px; }
.stg-missing { font-size: 0.65rem; color: #ffb000; }
.stats-theme-rows { display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px 16px; }
.stats-search {
  padding: 3px 8px; border-radius: 5px; font-size: 0.75rem;
  border: 1px solid var(--border2); background: rgba(255,255,255,.04);
  color: var(--text); outline: none; width: 160px;
}
.stats-search:focus { border-color: var(--fire3); }

/* Stats event rows */
.stats-event-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.35rem 0.6rem; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.04); cursor: pointer; transition: background .12s;
  background: rgba(255,255,255,.015);
}
.stats-event-row:hover { background: rgba(255,255,255,.04); }
.stats-event-row--has-stats { border-left: 2px solid rgba(57,255,20,.3); }
.stats-event-row--missing { border-left: 2px solid rgba(255,176,0,.25); opacity: .85; }
.stats-event-row--incomplete { border-left: 2px solid rgba(255,140,0,.5); }
.stats-event-row-info { flex: 1; min-width: 0; }
.stats-event-row-title { font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-event-row-meta { font-size: 0.68rem; color: var(--text-dim); display: flex; gap: 0.4rem; align-items: center; margin-top: 1px; flex-wrap: wrap; }
.stats-event-row-type { background: rgba(255,255,255,.06); border-radius: 3px; padding: 0 4px; font-size: .65rem; }
.stats-event-row-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.stats-event-nums { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; display: flex; gap: 0.4rem; }
.stats-event-missing { font-size: 0.68rem; color: #ffb000; }
.stats-too-recent { font-size: .65rem; color: #ffb000; background: rgba(255,176,0,.1); border-radius: 4px; padding: 1px 5px; }
.num-views { color: var(--text); }
.stats-incomplete-badge {
  font-size: 0.6rem; color: #ff8c00; background: rgba(255,140,0,.1);
  border: 1px solid rgba(255,140,0,.3); border-radius: 3px;
  padding: 1px 5px; margin-left: 4px; white-space: nowrap;
}
.stats-theme-tag {
  font-size: 0.65rem; color: #a78bfa; background: rgba(167,139,250,.1);
  border-radius: 3px; padding: 1px 5px; cursor: pointer;
  transition: background .12s; border: 1px solid rgba(167,139,250,.2);
}
.stats-theme-tag:hover { background: rgba(167,139,250,.2); border-color: rgba(167,139,250,.5); }
.stats-theme-input {
  font-size: 0.68rem; background: rgba(167,139,250,.1); border: 1px solid #a78bfa;
  border-radius: 3px; padding: 1px 6px; color: var(--text); outline: none;
  width: 140px; font-family: inherit;
}

/* Boutons dans les rows */
.btn-edit-stats {
  padding: 2px 5px; border-radius: 4px; border: 1px solid var(--border2);
  background: transparent; color: var(--text-dim); font-size: 0.65rem;
  cursor: pointer; transition: all .15s;
}
.btn-edit-stats:hover { border-color: var(--fire3); color: var(--fire3); }
.btn-stats-edit-row {
  padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border2);
  background: transparent; color: var(--text-dim); font-size: 0.68rem; font-weight: 500;
  cursor: pointer; transition: all .15s; white-space: nowrap; font-family: inherit;
}
.btn-stats-edit-row:hover { border-color: var(--fire3); color: var(--fire3); }
.btn-stats-edit-row--new { border-color: rgba(255,176,0,.35); color: #ffb000; }
.btn-stats-edit-row--new:hover { border-color: #ffb000; background: rgba(255,176,0,.08); }
.btn-stats-ignore-row {
  padding: 1px 5px; border-radius: 4px; border: 1px solid transparent;
  background: transparent; color: var(--text-dim); font-size: 0.65rem; opacity: .45;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-stats-ignore-row:hover { opacity: 1; color: #888; border-color: var(--border2); }

/* Bandeau stats manquantes */
.stats-missing-banner {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,176,0,.09); border: 1px solid rgba(255,176,0,.25);
  border-radius: 6px; padding: 6px 12px; margin-bottom: 0.5rem; font-size: 0.75rem;
}
.stats-missing-banner-count { color: #ffb000; font-weight: 700; }
.stats-missing-banner-text { color: var(--text-dim); flex: 1; }
.stats-missing-banner-link { color: #ffb000; cursor: pointer; text-decoration: underline; font-size: 0.7rem; }
.stats-missing-banner:empty { display: none; }
.btn-yt-quick {
  padding: 2px 6px; border-radius: 4px; font-size: 0.65rem;
  border: 1px solid rgba(255,0,0,.3); background: rgba(255,0,0,.08);
  color: #ff6b6b; cursor: pointer; transition: all .15s;
}
.btn-yt-quick:hover { border-color: #ff0000; background: rgba(255,0,0,.15); }

/* Modal stats */
.modal--stats { max-width: 560px; }
.stats-event-info { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border2); }
.stats-event-meta { font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; }
.stats-event-theme { font-size: 0.78rem; color: #a78bfa; margin-top: 0.3rem; }
.stats-platform-form { margin-bottom: 1rem; }
.stats-platform-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text); padding-left: 0.6rem;
  margin-bottom: 0.5rem; font-weight: 600;
}
.btn-yt-fetch {
  margin-left: auto; padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(255,0,0,0.3); background: rgba(255,0,0,0.07);
  color: #FF4444; font-size: 0.68rem; cursor: pointer; transition: all 0.15s;
}
.btn-yt-fetch:hover { background: rgba(255,0,0,0.15); }
.stats-platform-inputs {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
}
.stats-platform-inputs label {
  font-size: 0.7rem; color: var(--text-dim); display: flex; flex-direction: column; gap: 4px;
}
.stat-input { padding: 6px 8px !important; font-size: 0.82rem !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH MODAL (Ctrl+K)
   ═══════════════════════════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: fadeIn 0.12s ease;
}
.search-container {
  width: 100%; max-width: 640px; margin: 0 1rem;
  background: #0a0a12;
  border: 1px solid rgba(232,41,26,0.3);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(232,41,26,0.12), 0 24px 48px rgba(0,0,0,0.6);
  overflow: hidden;
}
.search-input-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border2);
}
.search-icon { font-size: 1rem; flex-shrink: 0; }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 400;
}
.search-input::placeholder { color: #5a5570; }
.search-esc-hint {
  padding: 2px 7px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--border2);
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: #5a5570; flex-shrink: 0;
}
.search-results { max-height: 400px; overflow-y: auto; }
.search-label {
  padding: 0.5rem 1.25rem 0.25rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.63rem;
  color: #5a5570; text-transform: uppercase; letter-spacing: 0.08em;
}
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem; cursor: pointer;
  transition: background 0.1s; border-left: 2px solid transparent;
}
.search-result-item:hover, .search-result-item.search-selected {
  background: rgba(232,41,26,0.07); border-left-color: var(--fire3);
}
.search-result-icons { font-size: 0.9rem; min-width: 24px; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-meta {
  font-size: 0.68rem; color: #5a5570; margin-top: 1px;
}
.search-result-status {
  font-size: 0.7rem; white-space: nowrap; flex-shrink: 0;
  font-family: 'Share Tech Mono', monospace;
}
.search-empty {
  padding: 2rem; text-align: center;
  font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: #5a5570;
}
.search-footer {
  display: flex; gap: 1.25rem; padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--border2);
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; color: #4a4060;
}
.search-footer kbd {
  background: var(--border); border: 1px solid var(--border2);
  border-radius: 3px; padding: 1px 5px; color: #7a7090; font-size: 0.6rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STREAK BANNER (vue Semaine)
   ═══════════════════════════════════════════════════════════════════════════ */
.streak-banner {
  margin: 0 20px 0.8rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, rgba(232,41,26,0.07) 0%, transparent 100%);
  border: 1px solid rgba(232,41,26,0.2);
  border-radius: 8px;
  display: flex; align-items: center; gap: 1rem;
  animation: slideInLeft 0.3s ease;
}
.streak-main {
  font-family: 'Orbitron', sans-serif; font-size: 0.85rem;
  color: var(--text); display: flex; align-items: center; gap: 0.4rem;
}
.streak-count { color: var(--fire3); font-size: 1.2rem; font-weight: 900; }
.streak-label { color: #7a7090; font-size: 0.75rem; font-weight: 400; }
.streak-sub {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: #5a5570; margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ÉVÉNEMENTS US dans le calendrier
   ═══════════════════════════════════════════════════════════════════════════ */
.event-pill--us {
  background: rgba(200,160,50,0.12);
  color: #d4a017;
  border: none;
  font-size: 0.6rem;
  font-style: italic;
  letter-spacing: 0;
  padding: 1px 4px;
  border-radius: 3px;
  cursor: default;
  pointer-events: none;
}
.cal-day--has-us-event { border-bottom: 2px solid rgba(200,160,50,0.4); }

/* ═══════════════════════════════════════════════════════════════════════════
   TAB BADGE (Pipeline)
   ═══════════════════════════════════════════════════════════════════════════ */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fire);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--fire-glow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DUPLICATE BUTTON (modal footer)
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-duplicate {
  background: rgba(150,100,255,0.12);
  border: 1px solid rgba(150,100,255,0.3);
  color: #a78bfa;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-duplicate:hover { background: rgba(150,100,255,0.22); border-color: #a78bfa; }

/* ═══════════════════════════════════════════════════════════════════════════
   COMPACT CALENDAR TOGGLE
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-compact-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #5a5570;
  padding: 0.3rem 0.55rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
  transition: color .2s, border-color .2s;
}
.btn-compact-toggle:hover, .btn-compact-toggle.active { color: var(--fire3); border-color: var(--fire3); }

/* Compact calendar: cells smaller */
.calendar-grid.compact .cal-day { min-height: 52px; padding: 3px; }
.calendar-grid.compact .cal-day-num { font-size: 0.65rem; }
.calendar-grid.compact .event-pill { font-size: 0.55rem; padding: 1px 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FAB NOTE RAPIDE
   ═══════════════════════════════════════════════════════════════════════════ */
.fab-note {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fire);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--fire-glow), 0 0 0 2px rgba(232,41,26,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  z-index: 800;
}
.fab-note:hover { transform: scale(1.1); box-shadow: 0 6px 28px var(--fire-glow); }
.fab-note:active { transform: scale(0.96); }

/* Note rapide modal size */
.modal--note-rapide { max-width: 440px; }
.note-rapide-platforms { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PIPELINE CONTEXT MENU
   ═══════════════════════════════════════════════════════════════════════════ */
.pipeline-context-menu {
  position: fixed;
  background: #0e0c14;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 4px 0;
  z-index: 2000;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,41,26,0.08);
}
.ctx-menu-title {
  font-size: 0.65rem;
  font-family: 'Share Tech Mono', monospace;
  color: #5a5570;
  padding: 4px 12px 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ctx-menu-item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #ccc;
  padding: 7px 14px;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.ctx-menu-item:hover { background: rgba(232,41,26,0.10); color: var(--fire3); }
.ctx-menu-item--dup  { color: #a78bfa; }
.ctx-menu-item--dup:hover { background: rgba(150,100,255,0.12); color: #c4b5fd; }
.ctx-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   TOP HASHTAGS
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-hashtags-section {
  margin: 0 1.2rem 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
}
.stats-hashtags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.hashtag-chip {
  background: rgba(232,41,26,0.08);
  border: 1px solid rgba(232,41,26,0.2);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.78rem;
  color: var(--fire3);
  font-family: 'Share Tech Mono', monospace;
  cursor: default;
  transition: background .15s;
}
.hashtag-chip:hover { background: rgba(232,41,26,0.16); }
.hashtag-chip span { font-size: 0.7rem; color: #7a7090; margin-left: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   OVERDUE INDICATOR (pipeline)
   ═══════════════════════════════════════════════════════════════════════════ */
.pipeline-card--overdue-hard {
  border-left: 3px solid var(--fire) !important;
  background: rgba(232,41,26,0.06);
}
.pipeline-card-overdue-badge {
  display: inline-block;
  background: var(--fire);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD AUJOURD'HUI
   ═══════════════════════════════════════════════════════════════════════════ */
.today-dashboard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0.5rem 0.8rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(135deg, rgba(232,41,26,0.08) 0%, rgba(0,0,0,0) 65%);
  border: 1px solid rgba(232,41,26,0.18);
  border-radius: 8px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.today-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--fire) 0%, rgba(232,41,26,0.3) 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(232,41,26,0.3);
}
.today-dash-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: var(--fire3);
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.today-dash-pubs { display: flex; flex-wrap: wrap; gap: 6px; }
.today-pub-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 4px 11px;
  font-size: 0.75rem;
  color: #c8c4d0;
  transition: background .15s, border-color .15s;
}
.today-pub-chip:hover { background: rgba(232,41,26,0.1); border-color: rgba(232,41,26,0.3); color: var(--fire3); }
.today-pub-chip--empty { color: #5a5570; font-style: italic; }
.today-dash-right { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.today-dash-item { font-size: 0.78rem; color: #9090aa; }
.today-dash-item--danger { color: var(--fire3); font-weight: 600; }
.today-dash-item--ok { color: #39ff14; }

/* ═══════════════════════════════════════════════════════════════════════════
   OBJECTIF MENSUEL
   ═══════════════════════════════════════════════════════════════════════════ */
.monthly-goal-bar {
  margin: 0.8rem 1.2rem 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
}
.monthly-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: #9090aa;
}
.monthly-goal-label b { color: #ccc; }
.monthly-goal-pct { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 700; }
.monthly-goal-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.monthly-goal-fill { height: 100%; border-radius: 3px; transition: width .5s; }

/* ═══════════════════════════════════════════════════════════════════════════
   FILTRE PLATEFORME PIPELINE
   ═══════════════════════════════════════════════════════════════════════════ */
.pipeline-platform-filters { display: flex; gap: 4px; align-items: center; }
.pipe-plat-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  color: #7a7090;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 30px;
  opacity: 0.65;
}
.pipe-plat-btn svg { display: block; }
.pipe-plat-btn:hover { background: rgba(255,255,255,0.08); opacity: 1; }
.pipe-plat-btn.active { background: rgba(232,41,26,0.12); border-color: var(--fire3); opacity: 1; box-shadow: 0 0 6px rgba(232,41,26,0.25); }

/* Section "Publié" collapsible */
.pipeline-published-section { margin-top: 1.2rem; border-top: 1px solid var(--border2); padding-top: 0.8rem; }
.btn-toggle-published {
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  color: #00e5ff;
  padding: 7px 16px;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; gap: 8px;
}
.btn-toggle-published:hover { background: rgba(0,229,255,0.12); }
.published-count {
  background: #00e5ff;
  color: #000;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}
.pipeline-published-panel {
  margin-top: 0.8rem;
  animation: fadeIn .2s ease;
}
.published-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.pipeline-card--published {
  border-color: rgba(0,229,255,0.15) !important;
  opacity: 0.8;
}
.pipeline-card--published:hover { opacity: 1; }
.stats-top-plicons { display: inline-flex; gap: 3px; vertical-align: middle; }

/* ═══════════════════════════════════════════════════════════════════════════
   PIPELINE CARD — countdown + progress
   ═══════════════════════════════════════════════════════════════════════════ */
.pipeline-card-countdown {
  font-size: 0.7rem;
  color: #a78bfa;
  margin-top: 4px;
  font-family: 'Share Tech Mono', monospace;
}
.pipeline-card-progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pipeline-card-progress-fill {
  height: 100%;
  background: var(--fire3);
  border-radius: 2px;
  transition: width .3s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKLIST DE PRODUCTION
   ═══════════════════════════════════════════════════════════════════════════ */
.production-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.4rem;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #ccc;
  cursor: pointer;
  user-select: none;
}
.checklist-item input[type="checkbox"] { accent-color: var(--fire); }
.checklist-item:has(input:checked) { color: #39ff14; text-decoration: line-through; opacity: 0.7; }
.checklist-progress-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.checklist-progress-bar { height: 100%; border-radius: 2px; width: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   INTÉGRATION CONTENT PIPELINE
   ═══════════════════════════════════════════════════════════════════════════ */
.cp-link-row { border-top: 1px solid var(--border2); padding-top: 0.8rem; margin-top: 0.4rem; }
.cp-link-status { font-size: 0.78rem; color: #5a5570; }
.cp-link-status--err { color: var(--fire3); }

.cp-linked-card {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}
.cp-linked-title { font-size: 0.85rem; color: #ccc; font-weight: 600; margin-bottom: 4px; }
.cp-linked-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cp-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cp-steps-row { display: flex; gap: 4px; margin-left: 6px; }
.cp-step { font-size: 1rem; opacity: 0.3; filter: grayscale(1); transition: opacity .2s; }
.cp-step--done { opacity: 1; filter: none; }
.cp-linked-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn-cp-open, .btn-cp-open-bare {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-cp-open:hover, .btn-cp-open-bare:hover { background: rgba(139,92,246,0.25); }
.btn-cp-unlink {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #5a5570;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: color .15s;
}
.btn-cp-unlink:hover { color: var(--fire3); border-color: var(--fire3); }

.cp-link-connect { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-video-select {
  flex: 1;
  background: #0e0c14;
  border: 1px solid var(--border2);
  color: #ccc;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  min-width: 0;
}
.btn-cp-link {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.btn-cp-link:hover { background: rgba(139,92,246,0.25); }

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE CHART — sélecteur de période
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-chart-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; gap: 8px;
}
.stats-chart-title-row .stats-chart-title { margin-bottom: 0; }
.timeline-period-btns { display: flex; gap: 4px; }
.tl-period-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  color: #7a7090;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tl-period-btn:hover { background: rgba(255,255,255,0.08); color: #ccc; }
.tl-period-btn.active { background: rgba(232,41,26,0.12); border-color: var(--fire3); color: var(--fire3); }

/* ═══════════════════════════════════════════════════════════════════════════
   INSTAGRAM SYNC
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-sync-controls { display: flex; gap: 10px; align-items: center; margin-top: 0.8rem; flex-wrap: wrap; }
.ig-sync-status { margin-top: 0.6rem; font-size: 0.8rem; min-height: 1.2rem; }
.ig-sync-list { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 6px; max-height: 500px; overflow-y: auto; }
.ig-sync-row {
  display: flex; align-items: flex-start; gap: 10px; justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
}
.ig-sync-row--matched { border-color: rgba(57,255,20,0.2); }
.ig-sync-row--unmatched { border-color: rgba(255,176,0,0.18); }
.ig-sync-row-left { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 200px; }
.ig-sync-row-right { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ig-sync-type { font-size: 1.1rem; margin-top: 2px; }
.ig-sync-info { flex: 1; }
.ig-sync-caption { font-size: 0.78rem; color: #ccc; margin-bottom: 2px; }
.ig-sync-meta { font-size: 0.71rem; color: var(--text-dim); }
.ig-sync-footer { margin-top: 0.8rem; display: flex; justify-content: flex-end; }
.env-block { display: block; background: rgba(255,255,255,0.05); border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 0.77rem; white-space: pre; }

/* Facebook CSV Import */
.fb-csv-controls { display: flex; align-items: center; margin-top: 0.8rem; flex-wrap: wrap; gap: 8px; }
.fb-csv-file-btn { cursor: pointer; display: inline-block; }
.fb-csv-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin-top: 0.5rem; }
.fb-csv-table th { text-align: left; color: var(--text-dim); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--border2); font-size: 0.72rem; }
.fb-csv-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.fb-csv-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ═══════════════════════════════════════════════════════════════════════════
   DENSITÉ CALENDRIER
   ═══════════════════════════════════════════════════════════════════════════ */
.cal-day--dense-1 { background: rgba(232,41,26,0.03); }
.cal-day--dense-2 { background: rgba(232,41,26,0.06); }
.cal-day--dense-3 { background: rgba(232,41,26,0.10); }

/* ═══════════════════════════════════════════════════════════════════════════
   OBJECTIF HEBDOMADAIRE (widget semaine)
   ═══════════════════════════════════════════════════════════════════════════ */
.wg-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.7rem;
}
.wg-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.72rem;
  color: #9090aa; letter-spacing: .06em;
}
.wg-week-label { color: #ccc; font-size: 0.7rem; margin-left: 6px; }
.wg-global {
  font-family: 'Orbitron', sans-serif; font-size: 0.88rem; font-weight: 900;
}
.wg-goals {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.wg-item {
  flex: 1; min-width: 120px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  transition: border-color .2s;
}
.wg-item--done {
  border-color: rgba(57,255,20,0.3);
  background: rgba(57,255,20,0.04);
}
.wg-item-header {
  display: flex; align-items: center; gap: 5px; margin-bottom: 0.4rem;
}
.wg-icon { font-size: 0.9rem; }
.wg-label { font-size: 0.78rem; font-weight: 600; color: #ccc; flex: 1; }
.wg-plats { display: inline-flex; gap: 2px; align-items: center; }
.wg-dots { display: flex; gap: 4px; margin-bottom: 0.3rem; }
.wg-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border2);
}
.wg-dot--done { background: var(--fire3); border-color: transparent; box-shadow: 0 0 5px rgba(232,41,26,0.5); }
.wg-item--done .wg-dot--done { background: #39ff14; box-shadow: 0 0 5px rgba(57,255,20,0.4); }
.wg-score { font-size: 0.72rem; color: var(--text-dim); font-family: 'Share Tech Mono', monospace; }
.wg-score--done { color: #39ff14; font-weight: 700; }
.wg-score--warn { color: var(--fire3); }

@media (max-width: 700px) {
  .stats-platform-inputs { grid-template-columns: 1fr; }
  .stats-kpi-row { grid-template-columns: 1fr 1fr 1fr; }
  .stats-row-charts { flex-wrap: wrap; }
  .stats-row-bottom { flex-direction: column; }
  .search-footer { flex-wrap: wrap; gap: 0.5rem; }
  .fab-note { bottom: 1rem; right: 1rem; width: 46px; height: 46px; font-size: 1.2rem; }
  .pipeline-platform-filters { display: none; }
  .today-dashboard { flex-direction: column; }
}

/* Alignement monthly-goal-bar avec les autres sections semaine (20px = 1.25rem) */
.monthly-goal-bar { margin: 0.8rem 1.25rem 0.4rem; }

/* ─── Heure dans les pills du calendrier ──────────────────────────────────── */
.pill-time {
  font-size: 0.6rem;
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}


/* ─── Pipeline colonnes : hauteur max + scroll ────────────────────────────── */
.pipeline-col-body {
  max-height: calc(100vh - 310px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.pipeline-col-body::-webkit-scrollbar { width: 4px; }
.pipeline-col-body::-webkit-scrollbar-track { background: transparent; }
.pipeline-col-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
