/* 📄 Fichier : css/layout.css */
/* 🎯 Rôle : Structure principale de l'app */

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #3a7d44;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon {
  font-size: 22px;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Main */
.app-main {
  position: fixed;
  top: 56px;
  bottom: 64px;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f5f7f2;
}

/* Pages */
.page {
  max-width: 600px;
  margin: 0 auto;
}

/* Topbar de page */
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d2d2d;
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9e9e9e;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active {
  color: #3a7d44;
}

.nav-item:hover {
  color: #3a7d44;
}

/* Search bar */
.search-bar {
  margin-bottom: 14px;
}

.search-bar input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #3a7d44;
}
