/* ============================================================
   06-layout.css — Layouts et structures de page
   ============================================================ */

/* === CONTAINERS === */

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === HEADER STICKY === */

.app-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: var(--z-sticky);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.app-header__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.app-header__title {
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

.app-header__time {
  font-family: var(--font-data);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-feature-settings: "tnum";
}

/* === MAIN CONTENT === */

.app-main {
  padding-top: var(--space-md);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-2xl));
  min-height: calc(100vh - var(--header-height));
}

/* === SECTIONS === */

.section {
  margin-bottom: var(--space-2xl);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.section__action {
  font-size: var(--font-size-xs);
  color: var(--accent-go);
  font-weight: var(--font-weight-semibold);
}

/* === GRIDS === */

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 480px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === STACK (vertical flex avec gap) === */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stack--sm { gap: var(--space-sm); }
.stack--lg { gap: var(--space-lg); }
.stack--xl { gap: var(--space-xl); }

/* === CLUSTER (horizontal wrap) === */

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

/* === HERO === */

.hero {
  position: relative;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/bg_libreville_atmo.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 14, 26, 0.2) 0%,
    rgba(10, 14, 26, 0.85) 75%,
    rgba(10, 14, 26, 1) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}
