/* ══ TOPBAR ══════════════════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  padding: 14px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(13,26,140,.25);
}
.topbar-left  { display: flex; align-items: center; gap: 10px; }
.topbar-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.topbar-sub   { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 1px; }
.topbar-back {
  background: rgba(255,255,255,.1); border: none; border-radius: 7px;
  padding: 6px 10px; color: rgba(255,255,255,.8); font-size: 18px;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; transition: background .15s;
}
.topbar-back:hover { background: rgba(255,255,255,.18); }
.topbar-action {
  background: rgba(255,255,255,.1); border: none; border-radius: 9px;
  padding: 7px 10px; color: rgba(255,255,255,.8); font-size: 17px;
  cursor: pointer; display: flex; align-items: center; transition: background .15s;
  text-decoration: none;
}
.topbar-action:hover { background: rgba(255,255,255,.18); }

/* ══ BOTTOM NAV ══════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
  background: #fff; border-top: 1.5px solid var(--gray-brd);
  display: flex; align-items: stretch; z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; text-decoration: none;
  font-size: 10px; font-weight: 600; color: var(--muted); padding: 6px 0;
  transition: color .15s;
}
.nav-item i      { font-size: 20px; line-height: 1; }
.nav-item.active { color: var(--orange); }

/* ── Bottom Sheet ──────────────────────────────────────────────── */
#bottom-sheet {
    display:   none;
    position:  fixed;
    inset:     0;
    z-index:   999;
}

#bottom-sheet.open {
    display: block;
}

.bottom-sheet-overlay {
    position:   absolute;
    inset:      0;
    background: rgba(0, 0, 0, 0.45);
}

.bottom-sheet-container {
    position:      absolute;
    bottom:        0;
    left:          0;
    right:         0;
    background:    #fff;
    border-radius: 16px 16px 0 0;
    padding:       16px 16px 32px;
    max-height:    70vh;
    overflow-y:    auto;
}

.bottom-sheet-handle {
    width:         40px;
    height:        4px;
    background:    #e5e7eb;
    border-radius: 2px;
    margin:        0 auto 16px;
}

.bottom-sheet-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   12px;
}

.bottom-sheet-title {
    font-size:   17px;
    font-weight: 600;
    margin:      0;
}

.bottom-sheet-close {
    background: none;
    border:     none;
    font-size:  20px;
    cursor:     pointer;
    padding:    4px;
    color:      #6b7280;
}

.variant-item {
    display:       block;
    width:         100%;
    padding:       14px 16px;
    margin-bottom: 8px;
    background:    #f9fafb;
    border:        1px solid #e5e7eb;
    border-radius: 10px;
    text-align:    left;
    font-size:     15px;
    cursor:        pointer;
    transition:    background 0.15s, border-color 0.15s;
}

.variant-item:active {
    background:   #eff6ff;
    border-color: #3b82f6;
}

/* ══ COULEURS FOND IMAGE PAR SECTION ════════════════════════════ */
.bg-orange { background: var(--orange-lt); }
.bg-green  { background: var(--green-lt); }
.bg-blue   { background: #EFF6FF; }
.bg-gray   { background: var(--gray-bg); }
.bg-purple { background: #EDE9FE; }
