/* ===========================================================================
   EcoRide — Layout : header, footer, structure de page
   =========================================================================== */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: var(--space-2);
}

.site-header__logo img {
  height: clamp(44px, 30vw, 100px);
  width: auto;
}

/* --- Footer --- */
.site-footer {
  flex-shrink: 0;
  background: var(--gradient-brand);
  color: var(--color-text-invert);
  margin-top: var(--space-10);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.footer-link {
  color: var(--color-text-invert);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.footer-link:hover {
  background: rgba(255, 255, 255, .15);
  color: var(--color-text-invert);
}

/* --- Sections de page --- */
.section {
  padding-block: var(--space-8);
}

.section__title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-6);
}
