/*
Theme Name: Belgomotor
Theme URI: https://belgomotor.be
Author: Belgomotor
Description: Thème custom pour la plateforme Belgomotor.
Version: 0.1.0
Text Domain: belgomotor
*/

:root {
  --bm-black: #0B0B0C;
  --bm-white: #FFFFFF;
  --bm-yellow: #FFC700;
  --bm-red: #D2122E;
  --bm-grey: #111217;
  --bm-grey-light: #f4f4f6;
  --bm-radius: 12px;
  --bm-font-primary: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bm-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  font-family: var(--bm-font-body);
  background: var(--bm-black);
  color: var(--bm-white);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.bm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.bm-hero {
  padding: 80px 0 40px;
}

.bm-hero-title {
  font-family: var(--bm-font-primary);
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.bm-hero-subtitle {
  color: #d0d0d4;
  margin-bottom: 24px;
}

.bm-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.bm-btn-primary {
  background: var(--bm-yellow);
  color: #000;
}

.bm-btn-secondary {
  background: transparent;
  color: var(--bm-white);
  border-color: #333741;
}

.bm-search-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.bm-field {
  background: #181920;
  border-radius: var(--bm-radius);
  padding: 10px 14px;
  border: 1px solid #252630;
  color: var(--bm-white);
  font-size: 0.9rem;
  width: 100%;
}

.bm-vehicle-card {
  display: flex;
  background: #15161d;
  border-radius: var(--bm-radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.bm-vehicle-card img {
  width: 220px;
  object-fit: cover;
}

.bm-vehicle-card-content {
  padding: 16px 18px;
  flex: 1;
}

.bm-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.bm-badge-vehicle { background: var(--bm-red); }

.bm-price { color: var(--bm-yellow); font-weight: 700; font-size: 1.1rem; }

.bm-section-title {
  font-family: var(--bm-font-primary);
  font-size: 1.4rem;
  margin: 32px 0 16px;
}

.bm-dashboard-wrapper {
  background: var(--bm-grey-light);
  min-height: 100vh;
}

.bm-dashboard-card {
  background: #ffffff;
  border-radius: var(--bm-radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  color: #111;
}

.bm-dashboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bm-dashboard-tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: #e4e5eb;
  color: #111;
  font-size: 0.9rem;
  cursor: pointer;
}

.bm-dashboard-tab--active {
  background: #111;
  color: #fff;
}
/* Boutons secondaires lisibles sur fond clair (dashboard) */
.bm-dashboard-card .bm-btn.bm-btn-secondary {
  background: transparent;
  color: #111;
  border-color: #ccc;
}

/* Labels de formulaire */
.bm-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 4px;
}
/* ====== HEADER / NAV ====== */

.bm-header {
  background: #0d0e12;
  border-bottom: 1px solid #1c1d22;
  position: sticky;
  top: 0;
  z-index: 50;
}

.bm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.bm-logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* NAV DESKTOP */
.bm-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Menu WP */
.bm-primary-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.bm-primary-menu li a {
  font-size: 0.9rem;
  color: #f5f5f7;
  text-decoration: none;
  padding: 4px 0;
}

.bm-primary-menu li a:hover {
  color: var(--bm-yellow);
}

/* Boutons header */
.bm-btn-small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.bm-header-cta {
  display: flex;
  gap: 10px;
}

/* BURGER (MOBILE) */

.bm-burger {
  display: none; /* caché sur desktop */
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #2a2b32;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
}

.bm-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #f5f5f7;
  border-radius: 999px;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 768px) {

  .bm-header-inner {
    padding: 10px 0;
  }

  /* Afficher le burger, cacher la nav par défaut */
  .bm-burger {
    display: flex;
  }

  .bm-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0d0e12;
    border-top: 1px solid #1c1d22;
    padding: 12px 16px 16px;
    display: none; /* masqué par défaut */
    flex-direction: column;
    gap: 16px;
  }

  .bm-primary-menu {
    flex-direction: column;
    gap: 10px;
  }

  .bm-primary-menu li a {
    display: block;
    padding: 6px 0;
  }

  .bm-header-cta {
    flex-direction: column;
    width: 100%;
  }

  .bm-header-cta .bm-btn {
    text-align: center;
    width: 100%;
  }

  /* Quand on ouvre le burger */
  .bm-header.bm-header--open .bm-nav {
    display: flex;
  }
}
/* Boutons secondaires lisibles sur fond clair (dashboard) */
.bm-dashboard-card .bm-btn.bm-btn-secondary {
  background: transparent;
  color: #111;
  border-color: #ccc;
}

/* Labels de formulaire */
.bm-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 4px;
}

