/* ========================================
   ZENITHGROUP - Projects Page
   Design Corporate & Moderne
   ======================================== */

/* ===== VARIABLES & BASE ===== */
:root {
  --primary-dark: #0A1F44;
  --primary-blue: #1a365d;
  --accent-gold: #C9A961;
  --accent-light: #E8D5B5;
  --background: #F8F9FC;
  --surface: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border-light: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 16px 40px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 50px;
  height: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(201, 169, 97, 0.3));
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-links a.active {
  color: var(--primary-dark);
  background: rgba(201, 169, 97, 0.08);
}

.nav-links a:hover {
  color: var(--primary-dark);
  background: rgba(201, 169, 97, 0.08);
}

.nav-right button {
  padding: 10px 24px;
  background: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--surface);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-right button:hover {
  background: transparent;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== CONTENU PRINCIPAL ===== */
main.projects {
  flex: 1;
  overflow-y: auto;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.intro {
  text-align: center;
  margin-bottom: 40px;
}

.intro h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  color: var(--accent-gold);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--primary-dark);
  color: var(--surface);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
  border-left: 4px solid var(--accent-gold);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: #10B981; border-left-color: #059669; }
.toast.error   { background: #EF4444; border-left-color: #DC2626; }
.toast.warning { background: #F59E0B; color: var(--primary-dark); border-left-color: #D97706; }

/* ===== FOOTER ===== */
.footer {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 20px 40px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--border-light);
  z-index: 100;
  backdrop-filter: blur(20px);
}

.footer-content p {
  margin: 4px 0;
  font-weight: 500;
}

.footer-content strong {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  main.projects { padding: 40px 24px; }
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; gap: 16px; }
  .nav-links { display: none; }
  main.projects { padding: 30px 16px; }
  .intro h1 { font-size: 24px; }
  .intro p { font-size: 15px; }
  .card { font-size: 14px; }
}

@media (max-width: 480px) {
  .brand { font-size: 16px; }
  .footer { padding: 16px 20px; font-size: 12px; }
}
