/* /articles : seulement ce que accueil.css ne fournit pas déjà (fil d'Ariane, message de recherche, rubriques, cartes). */

/* Fil d'Ariane : une pastille blanche, la page courante en orange */
.hm-crumb { justify-self: start; display: flex; align-items: center; gap: 0.4rem; margin-bottom: -1rem; padding: 0; font: 400 0.78rem var(--hm-head); color: #64748B; }
.hm-crumb a { display: flex; align-items: center; gap: 0.35rem; color: #64748B; }
.hm-crumb a svg { display: none; }
.hm-crumb a:hover { color: var(--hm-navy); text-decoration: underline; }
.hm-crumb i { font-style: normal; color: #CBD5E1; }
.hm-crumb__current { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-crumb { max-width: 100%; }

/* Rubriques */
.hm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hm-chip { padding: 0.5rem 0.95rem; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; font: 800 0.8rem var(--hm-head); color: var(--hm-navy); }
.hm-chip b { color: var(--hm-orange-dark); }
.hm-chip:hover, .hm-chip.is-on { border-color: var(--hm-orange-dark); background: var(--hm-orange-light); color: var(--hm-orange-dark); }

/* Message de recherche */
.hm-status { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; background: var(--hm-violet-light); border: 2px dashed var(--hm-violet); border-radius: 12px; font-size: 0.95rem; line-height: 1.4; color: var(--hm-navy); }
.hm-status[hidden] { display: none; }
.hm-status__ic { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--hm-violet); color: #fff; display: flex; align-items: center; justify-content: center; }
.hm-status p { flex: 1; }
.hm-status strong { font-family: var(--hm-head); font-weight: 800; }
.hm-status button { flex: none; border: 0; background: #fff; color: var(--hm-navy); padding: 0.4rem 0.8rem; border-radius: 999px; font: 800 0.74rem var(--hm-head); cursor: pointer; }
.hm-status button:hover { background: var(--hm-violet); color: #fff; }

/* Sections : mêmes écarts partout (entre rubriques, titre, sous-titre, cartes) */
.hm-cats { display: grid; gap: 2.25rem; }
.hm-cat { display: grid; gap: 1.1rem; scroll-margin-top: 5.5rem; }
.hm-cat__head { display: grid; gap: 0.4rem; }
.hm-cat__head h2 { display: flex; align-items: center; gap: 1rem; }
.hm-cat__head h2::after { content: ""; flex: 1; min-width: 1.5rem; border-top: 3px dashed var(--hm-orange-dark); } /* le trait pointillé suit le titre, à sa droite */
.hm-cat__head p { font-size: 0.92rem; opacity: 0.7; }
.hm-arts { display: grid; gap: 1rem; }
@media (min-width: 640px) { .hm-arts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hm-arts { grid-template-columns: repeat(3, 1fr); } }

/* Cartes : un titre net, une description légère. Au survol, les pointillés apparaissent derrière (rien ne bouge). */
.hm-art { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; background: transparent; border: 1px solid var(--hm-line); border-radius: 12px; color: var(--hm-text); }
.hm-art::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; z-index: -1; }
.hm-art::before { content: ""; position: absolute; inset: 5px -4px -6px 4px; border: 2px dashed var(--hm-orange-dark); border-radius: 16px 10px 14px 18px; z-index: -1; opacity: 0; transition: opacity 0.15s; }
.hm-art:hover, .hm-art:focus-visible { border-color: var(--hm-orange-dark); box-shadow: 0 0 0 1px var(--hm-orange-dark); } /* 1 px + 1 px d'ombre = 2 px, comme les dossiers, sans décalage */
.hm-art--dossier:hover, .hm-art--dossier:focus-visible { box-shadow: none; }
.hm-art:hover::before, .hm-art:focus-visible::before { opacity: 1; }
.hm-art > img { flex: none; width: 3.5rem; height: 3.5rem; object-fit: contain; }
.hm-art__txt { display: grid; gap: 0.35rem; min-width: 0; }
.hm-art--dossier { padding: calc(0.9rem - 1px) calc(1rem - 1px); border: 2px solid var(--hm-navy); }
.hm-art h3 { font: 800 0.95rem/1.25 var(--hm-head); color: var(--hm-navy); }
.hm-art p { font-size: 0.84rem; line-height: 1.5; opacity: 0.75; }

/* /fiches : accès par lettre et cartes de métier (titre seul, quatre colonnes) */
.hm-chips--az { gap: 0.4rem; }
.hm-chips--az .hm-chip { min-width: 2.4rem; padding: 0.45rem 0.6rem; text-align: center; }
.hm-chip.is-off { opacity: 0.35; pointer-events: none; }
.hm-arts--jobs { gap: 0.7rem; }
@media (min-width: 640px) { .hm-arts--jobs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .hm-arts--jobs { grid-template-columns: repeat(4, 1fr); } }
.hm-arts--jobs .hm-art { padding: 0.7rem 0.9rem; }
.hm-arts--jobs h3 { font-size: 0.88rem; }
.hm-arts--jobs h3, .hm-art--job h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* deux lignes au plus, puis « … » */
.hm-arts--jobs h3 small, .hm-art--job h3 small { font: 400 0.76rem/1.3 var(--hm-head); color: #64748b; } /* le complément entre parenthèses : petit, gris, sans gras */
.hm-art--job > img, .hm-arts--jobs .hm-art > img { flex: none; width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 8px; } /* la petite image est à gauche, comme sur les articles */
