/* galerie.css — styles pour galerie et randos passées */

/* ===== GRILLE CATÉGORIES ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.cat-card {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  padding: 16px 12px 12px;
  cursor: pointer;
  position: relative;
  transition: box-shadow .15s, transform .1s;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-color, #1D9E75);
  border-radius: 12px 12px 0 0;
}
.cat-card:active { transform: scale(.97); box-shadow: none; }
.cat-icon {
  font-size: 28px;
  color: var(--cat-color, #1D9E75);
  margin-bottom: 8px;
  line-height: 1;
}
.cat-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a18;
  margin-bottom: 3px;
}
.cat-count {
  font-size: 11px;
  color: #aaa;
}
.cat-chevron {
  position: absolute;
  top: 12px; right: 10px;
  font-size: 14px;
  color: #ccc;
}

/* ===== BARRE DE SECTION ===== */
.section-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a18;
  position: sticky;
  top: 0;
  z-index: 5;
}
.section-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 13px;
  color: #1D9E75;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

/* ===== CARDS ALBUM ===== */
.album-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background .1s;
}
.album-card:active { background: #f9f9f7; }
.album-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.album-card-info { flex: 1; min-width: 0; }
.album-card-titre {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-card-meta { font-size: 11px; color: #888; margin-top: 3px; }

/* ===== IFRAME ALBUM ===== */
#vue-album { display: flex; flex-direction: column; }

.album-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: #888;
  background: #f5f5f0;
  border-bottom: 1px solid #eee;
}
.album-open-bar {
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

/* ===== RANDO PASSÉE DÉTAIL ===== */
#vue-rando { display: flex; flex-direction: column; overflow-y: auto; }

.rando-past-hero {
  background: #E1F5EE;
  border-bottom: 1px solid #9FE1CB;
  padding: 14px 16px 12px;
}
.rando-past-resume {
  padding: 12px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
  font-style: italic;
}
.rando-map-label {
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #f5f5f0;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
}
