/* Styles personnalisés pour ProjetHub */
:root {
  --primary-color: #00c853;
  --secondary-color: #00e676;
  --success-color: #00c853;
  --warning-color: #fbbc05;
  --danger-color: #ff5252;
  --light-color: #f5f5f5;
  --dark-color: #050708;
  --accent-color: #00e676;
  --accent-color-2: #1de9b6;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #e5e7eb;
  line-height: 1.6;
  padding-top: 64px;
}

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

a:hover,
a:focus {
  color: var(--secondary-color);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #050708;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.no-wrap {
  white-space: nowrap;
}

.btn,
.card,
.nav-link,
.form-control {
  transition: all 0.2s ease-in-out;
}

.btn {
  border-radius: 8px;
  padding: 8px 16px;
}

.card {
  border-radius: 12px;
}

.form-control {
  border-radius: 8px;
}

.footer,
.navbar {
  border-radius: 0;
}

.bg-white,
.bg-light {
  color: #111827;
}

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card {
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.15s ease-in-out;
  background-color: #ffffff;
  color: #111827;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card .text-muted {
  color: #4b5563 !important;
}

.alert {
  border: none;
  border-radius: 0.5rem;
}

.badge {
  font-size: 0.75rem;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.jumbotron {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(240, 147, 251, 0.1) 0%,
    rgba(245, 87, 108, 0.1) 100%
  );
  pointer-events: none;
}

.footer {
  background: #050708 !important;
  color: #ffffff;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Styles pour les appels d'offres */
.ao-card {
  transition: transform 0.2s ease-in-out;
}

.ao-card:hover {
  transform: translateY(-5px);
}

.ao-badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Utilities */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Styles pour les tableaux de bord */
.dashboard-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-dark-old {
  background: linear-gradient(135deg, #1a1c23 0%, #2d3436 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-heading {
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.dashboard-card .card-body {
  padding: 2rem;
}

.dashboard-stat {
  font-size: 2.5rem;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .jumbotron h1 {
    font-size: 2rem;
  }

  .dashboard-stat {
    font-size: 2rem;
  }
}

/* Header responsive breakpoints */
@media (max-width: 320px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar-brand img {
    height: 32px;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  .navbar .dropdown-menu {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Animation pour les messages flash */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert {
  animation: slideIn 0.3s ease-out;
}

/* Masquer l'ancien bloc d'accueil hérité */
.fixed-offset {
  display: none !important;
}

/* Animations pour le Hero */
@keyframes float-slow {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes float-fast {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float-slow {
  animation: float-slow 4s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 3s ease-in-out infinite;
}

.x-small {
  font-size: 0.75rem;
}

/* Styles pour les filtres */
.filter-section {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Styles pour les candidatures */
.candidature-item {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.status-en-attente {
  border-left-color: var(--warning-color);
}

.status-accepte {
  border-left-color: var(--success-color);
}

.status-refuse {
  border-left-color: var(--danger-color);
}

/* Styles pour le nouveau branding ProjetHub */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-container img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Animation pour les cartes de fonctionnalités */
.feature-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

/* Styles pour les boutons principaux (CTA vert) */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000000;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 200, 83, 0.4);
}

/* Section hero modernisée */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border-radius: 1rem;
}
.hero-heading {
  font-size: 2.6rem;
  font-weight: 700;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-cta .btn {
  min-width: 220px;
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 1.9rem;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

/* Hero sombre harmonisé */
.hero-dark {
  background: #000000;
  color: #ffffff;
  border-radius: 0;
  padding: 3.5rem 2rem 4.5rem;
}
.hero-dark .hero-subtitle {
  color: #e5e7eb;
}
.hero-dark .btn-outline-secondary {
  color: #ffffff;
  border-color: #ffffff;
}
.hero-dark .btn-outline-secondary:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Alternative lisibilité */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
