Display header with title and icon

by Bruno G.

HTML

<header class="site-header">
  <div class="header-left">
    <div class="header-title">
      <svg class="header-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
        <path d="M12 3l8 4-8 4-8-4 8-4z"/>
        <path d="M4 7v10l8 4 8-4V7"/>
        <path d="M12 11v10"/>
      </svg>
      <h1>Base de données terminologiques C.E. P-DSN</h1>
    </div>

    <div class="header-badge">
      <span>Centre d'expertise Programme Dossier santé numérique</span>
    </div>
  </div>

  <div class="header-right">
    <!-- other stuff goes here -->
  </div>
</header>

CSS

.site-header {
  background-color: #150a5e; /* dark navy/indigo */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 22px 32px;
  min-height: 110px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 30px;
  height: 30px;
  color: #fff;
  flex-shrink: 0;
}

.header-title h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}

.header-badge {
  background-color: #fff;
  border-radius: 0 999px 999px 0; /* rounded only on the right */
  padding: 10px 28px 10px 42px;
  margin-left: -32px; /* bleed to the page edge like in the mock */
  width: fit-content;
}

.header-badge span {
  color: #0074d9;
  font-weight: 700;
  font-size: 15px;
}