JSFiddle - React, Tailwind, and code Playground

HTML

<h1>À la recherche d'un emploi</h1>
<h2><span>Mes compétences</span></h2>

CSS

html, body, h1, h2 {margin:0;}
body {min-width: 960px;text-align:center;}
h1 {border-top:6px solid #98223E;text-transform:uppercase;font:700 3em/3 sans-serif;color:#37BEB1;}
h2 {position:relative;font:1.5em sans-serif;color:#98223E;}
h2:before {content:"";position:absolute;width:100%;top:50%;left:0;margin-top:-3px;border-top:6px solid #98223E;}
h2 span {position:relative;padding:0 20px;background:#fff;}