/* ═══════════════════════════════════════════════════════
   QloFlux — Stylesheet (Pure Professional SaaS - Style Uqload)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-soft: #eff6ff;
  --primary-blue-border: #bfdbfe;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── UQLOAD HEADER ───────────────────────────────── */

.uq-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-card);
  height: 72px;
  display: flex;
  align-items: center;
}

.uq-nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uq-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.uq-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.uq-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.uq-accent {
  color: var(--primary-blue);
}

.uq-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.uq-nav-item {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: color 0.2s;
}

.uq-nav-item:hover {
  color: var(--primary-blue);
}

.uq-btn-login-nav {
  background: transparent;
  border: 1px solid var(--border-card);
  color: #0f172a;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.uq-btn-login-nav:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-soft);
}

/* ─── UQLOAD HERO SECTION (Photo 1) ───────────────── */

.uq-hero-section {
  padding: 60px 24px 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #ffffff 0%, var(--bg-page) 100%);
}

.uq-hero-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Illustration Uqload en pur CSS/SVG */
.uq-illustration-wrapper {
  margin-bottom: 30px;
}

.uq-illus-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 40px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.uq-illus-folder {
  font-size: 38px;
  color: #94a3b8;
  opacity: 0.7;
}

.uq-illus-laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uq-laptop-screen {
  width: 140px;
  height: 90px;
  border: 2px solid #cbd5e1;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uq-screen-loader {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.uq-laptop-base {
  width: 170px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 0 0 6px 6px;
}

.uq-illus-cam {
  position: relative;
  font-size: 36px;
  color: #94a3b8;
  opacity: 0.7;
}

.uq-hero-heading {
  font-size: 44px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.uq-hero-subheading {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.5;
}

/* ─── CARTE LOGIN PROFESSIONNELLE (Photo 3) ───────── */

.uq-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.uq-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.uq-card-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 8px;
}

.uq-login-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.uq-login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.uq-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.uq-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uq-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.uq-req {
  color: #ef4444;
}

.uq-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uq-label-help {
  font-size: 12px;
  color: var(--text-muted);
}

.uq-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: #0f172a;
}

.uq-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.uq-password-field {
  position: relative;
}

.uq-toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.uq-toggle-eye:hover {
  color: #475569;
}

.uq-btn-submit {
  width: 100%;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 6px;
}

.uq-btn-submit:hover {
  background: var(--primary-blue-hover);
}

.uq-btn-submit:active {
  transform: scale(0.99);
}

.uq-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.uq-card-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 20px;
}

.uq-card-disclaimer strong {
  color: #475569;
}

/* ─── UQLOAD FEATURES SECTION (Photo 2) ───────────── */

.uq-features-section {
  padding: 80px 24px 100px;
  background: #ffffff;
  border-top: 1px solid var(--border-card);
}

.uq-features-container {
  max-width: 1160px;
  margin: 0 auto;
}

.uq-features-header {
  text-align: center;
  margin-bottom: 50px;
}

.uq-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.uq-section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 4 Cartes Blanches (Photo 2) */
.uq-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.uq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.uq-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.uq-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
  background: #eff6ff;
  color: #2563eb;
}

.uq-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.uq-card-text {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

/* Puces Horizontales (Photo 2 en bas) */
.uq-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.uq-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
}

.uq-pill i {
  color: #10b981;
  font-size: 12px;
}

/* ─── UQLOAD FOOTER ───────────────────────────────── */

.uq-footer {
  padding: 30px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-card);
}

.uq-footer-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.uq-footer-brand {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.uq-footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── DASHBOARD PRO INTERFACE (Photo 3) ───────────── */

#dashboard {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.uq-sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  padding: 24px 16px;
}

.uq-sidebar-brand {
  padding: 0 12px 24px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.uq-sidebar-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.uq-menu-section {
  margin-bottom: 24px;
}

.uq-menu-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  padding: 0 12px 10px;
}

.uq-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uq-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.uq-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.uq-menu-item.active {
  background: #eff6ff;
  color: var(--primary-blue);
}

.uq-menu-item i {
  width: 18px;
  font-size: 15px;
}

.uq-badge-new {
  margin-left: auto;
  background: var(--primary-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.uq-sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.uq-btn-collapse {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.uq-btn-collapse:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Main Dashboard Panel */
.uq-main-content {
  flex: 1;
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.uq-top-bar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.uq-top-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.uq-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uq-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.uq-icon-btn:hover {
  border-color: #cbd5e1;
  color: var(--primary-blue);
  background: #f8fafc;
}

.uq-btn-logout-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.uq-btn-logout-top:hover {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;
}

/* ─── PAGES & CARDS DANS LE DASHBOARD ─────────────── */

.page {
  padding: 32px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
}

.projects-grid, .films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.project-card, .film-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s;
}

.project-card:hover, .film-card:hover {
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

.project-card-header h3, .film-card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.project-meta-item {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-meta-item code {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--primary-blue);
}

.film-quality {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: var(--primary-blue);
}

.film-m3u8-url {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #0f172a;
  word-break: break-all;
  margin: 12px 0;
}

.btn-icon {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-secondary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* Modals Pro */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.modal-large {
  max-width: 680px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.toast.toast-success {
  border-color: #86efac;
  color: #15803d;
  background: #f0fdf4;
}

.toast.toast-error {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}

.toast.toast-info {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

/* Responsive */
@media (max-width: 960px) {
  .uq-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .uq-sidebar {
    width: 70px;
  }
  .uq-sidebar-logo-text, .uq-menu-title, .uq-menu-item span, .uq-badge-new, .uq-btn-collapse span {
    display: none;
  }
  .uq-main-content {
    margin-left: 70px;
  }
}

@media (max-width: 600px) {
  .uq-feature-grid {
    grid-template-columns: 1fr;
  }
  .uq-hero-heading {
    font-size: 30px;
  }
}
