/* ============================================================
   SamaCv — Page Découvrir Styles
   ============================================================ */

/* Navbar - Copié de landing.css pour l'homogénéité */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
}

.nav-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

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

.nav-link {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
}

/* Page Layout */
.decouvrir-page {
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.08) 0%, transparent 40%),
              radial-gradient(circle at bottom left, rgba(26, 58, 92, 0.05) 0%, transparent 40%);
  background-color: var(--bg-body, #f8f9fa);
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layout */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Profile Card - Glassmorphism */
.cv-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.9);
}

.cv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.cv-card:hover::before {
  opacity: 1;
}

.cv-photo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-bottom: 20px;
}

.cv-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
}

.cv-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  border: 3px solid #fff;
}

.cv-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.cv-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.cv-action {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.cv-card:hover .cv-action {
  background: var(--accent);
  color: #fff;
}

/* Empty State / Loading State */
.loading-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  width: 100%;
  grid-column: 1 / -1;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Footer (Same as index.html) */
.footer {
  padding: 40px 5%;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-burger span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-burger {
    display: flex;
  }
}
