/* ===================================
   Incubateur Cirta – Feuille de style
   =================================== */

:root {
  --primary:     #1e3a5f;
  --primary-light: #2c5282;
  --secondary:   #28a745;
  --accent:      #f5a623;
  --accent-dark: #d4891e;
  --light-bg:    #f7f9fc;
  --text-main:   #2d3748;
  --text-muted:  #718096;
  --border:      #e2e8f0;
}

/* ---- Globals ---- */
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text-main);
  background: #fff;
}

a { color: var(--primary); }
a:hover { color: var(--primary-light); }

/* ---- Navbar ---- */
.bg-primary-dark { background-color: var(--primary) !important; }

.navbar-brand:hover { opacity: .9; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg,
    #0a1f3d 0%,
    #1e3a5f 20%,
    #0d4a8f 40%,
    #1a2e6e 60%,
    #2d6a9f 80%,
    #0a1f3d 100%
  );
  background-size: 350% 350%;
  animation: hero-shift 18s ease infinite;
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
@keyframes hero-shift {
  0%   { background-position: 0%   50%; }
  33%  { background-position: 100% 20%; }
  66%  { background-position: 50%  100%; }
  100% { background-position: 0%   50%; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,.04)"/><circle cx="10" cy="80" r="50" fill="rgba(255,255,255,.03)"/></svg>');
  background-size: cover;
}
.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
}

/* ---- Page header ---- */
.page-header {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 40px 0 32px;
}
.page-header h1 { font-size: 2rem; font-weight: 700; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-header .breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---- Cards ---- */
.card-hover {
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,58,95,.12);
}

/* ---- Section titles ---- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---- Stat cards ---- */
.stat-card {
  background: var(--light-bg);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
}
.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 4px;
}

/* ---- Member cards ---- */
.member-card {
  text-align: center;
  padding: 24px 16px;
}
.member-card img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin-bottom: 12px;
}
.member-card .member-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  border: 3px solid var(--accent);
}

/* ---- Formation badge ---- */
.badge-formation {
  background: rgba(30,58,95,.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

/* ---- Auth pages ---- */
.auth-card {
  max-width: 540px;
  margin: 48px auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.auth-card .auth-header {
  background: var(--primary);
  color: #fff;
  padding: 24px;
  text-align: center;
}
.auth-card .auth-body { padding: 32px; }

/* ---- Espace privé ---- */
.sidebar {
  background: var(--primary);
  min-height: calc(100vh - 60px);
  padding: 24px 0;
}
.sidebar .nav-link {
  color: rgba(255,255,255,.75);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.sidebar .nav-link i { width: 20px; text-align: center; }

/* Sidebar icônes uniquement */
.sidebar-icon {
  width: 44px; height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  padding: 0 !important;
  gap: 0 !important;
  font-size: 1.1rem;
  color: rgba(255,255,255,.7) !important;
  transition: background .15s, color .15s;
}
.sidebar-icon:hover,
.sidebar-icon.active {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.sidebar-icon i { width: auto !important; }

.sidebar-brand {
  color: #fff;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 12px;
}

.espace-content { padding: 28px; }

/* ---- Project status ---- */
.badge-en-cours { background: #fff3cd; color: #856404; }
.badge-realise  { background: #d1e7dd; color: #0f5132; }

/* ---- Footer ---- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.75);
  padding: 0;
}
.footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  display: block;
  padding: 2px 0;
  font-size: .9rem;
  transition: color .15s;
}
.footer-link:hover { color: var(--accent); }
.text-accent { color: var(--accent) !important; }

/* ---- Admin ---- */
.admin-sidebar {
  background: #1a1a2e;
  min-height: calc(100vh - 60px);
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* ---- Table ---- */
.table-cirta th {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
}
.table-cirta td { vertical-align: middle; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 1.8rem; }
  .sidebar, .admin-sidebar { min-height: auto; }
}
