/* Pages simples : à propos, mentions légales, 404. Colonne de lecture étroite, le reste vient d'accueil.css et article.css. */
.hm-page__head { margin-bottom: 0.5rem; }
.hm-page .hm-books, .hm-page .hm-ticker { max-width: none; }

/* À propos : portrait rond à droite du résumé */
.hm-portrait { float: right; width: 7rem; height: 7rem; object-fit: cover; border-radius: 50%; margin: 0.2rem 0 0.5rem 1.2rem; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(26, 43, 72, 0.18); }
@media (min-width: 640px) { .hm-portrait { width: 10rem; height: 10rem; margin-left: 1.8rem; } }

/* 404 : un grand « 404 » violet au-dessus du titre, recherche en dessous */
.hm-404__hero { position: relative; display: grid; gap: 0.8rem; justify-items: start; padding: 1rem 0 0.5rem; }
.hm-404__code { margin: 0; font: 800 clamp(4rem, 12vw, 6.5rem)/0.9 var(--hm-head); color: var(--hm-violet); letter-spacing: -0.04em; user-select: none; }
.hm-404__form { width: 100%; max-width: 34rem; margin-top: 0.5rem; }

/* Le reset « .hm p { margin: 0 } » passe devant les espacements du texte : on les rétablit pour ces pages */
.hm-about .hm-prose > * + *, .hm-page .hm-prose > * + * { margin-top: 1.1rem; }
.hm-about .hm-prose > h2, .hm-page .hm-prose > h2 { margin-top: 2.6rem; }
.hm-about .hm-prose > h3, .hm-page .hm-prose > h3 { margin-top: 1.9rem; }
.hm-about .hm-prose > h2 + *, .hm-about .hm-prose > h3 + *, .hm-page .hm-prose > h2 + *, .hm-page .hm-prose > h3 + * { margin-top: 0.8rem; }
.hm-page .hm-head__row { display: block; }
.hm-page .hm-head__txt { display: block; }
.hm-page .hm-head__txt > * + * { margin-top: 0.9rem; }
.hm-page__head > .hm-hand { margin-bottom: 0.4rem; }

/* À propos : la carte de l'auteur, dans la colonne de droite */
.hm-author-card { display: grid; justify-items: center; gap: 0.9rem; text-align: center; }
.hm-author-card .hm-portrait { float: none; width: 8rem; height: 8rem; margin: 0; }
.hm-author-card p { font-size: 0.98rem; line-height: 1.55; }

/* À propos : le bloc des livres suit le défilement, dans la colonne de droite */
@media (min-width: 960px) { .hm-about .hm-books { position: sticky; top: 5.5rem; z-index: 2; } }

/* Mentions légales : le premier titre suit de près la phrase violette, comme sur les autres pages */
.hm-page .hm-prose > h2:first-child { margin-top: 0; }
.hm-page .hm-page__head { margin-bottom: 0; }
.hm-page { gap: 1.1rem; }

/* Hub : les ressources sont des cartes comme celles des articles ; la fenêtre s'ouvre au clic (modal.js) */
.hm-hub-note { display: grid; align-items: center; }
.hm-hub-note .hm-portrait { float: none; margin: 0; }
@media (min-width: 720px) { .hm-hub-note { } }
.hm-hub-note p { margin-top: 0.3rem; }
.hm-art--btn { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.hm-art--btn .hm-art__txt { display: grid; min-width: 0; }
.hm-art__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 0.84rem; line-height: 1.5; opacity: 0.75; } /* trois lignes réservées : toutes les cartes ont la même hauteur */
.hm-art--btn h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* La hauteur est réservée sur le bloc de texte (deux lignes de titre + trois de description) : le titre reste collé à sa description, le vide éventuel est en dessous */
.hm-art--btn .hm-art__txt { align-content: center; gap: 0.1rem; min-height: 6.2rem; }
.hm-art__ico { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 10px; font-size: 1.8rem; }
.hm-art__ico--prompt { background: #E2E8F0; color: var(--hm-navy); }
.hm-art__ico--tool { background: var(--hm-orange-light); color: var(--hm-orange-dark); }
.hm-art__ico--tip { background: var(--hm-violet-light); color: var(--hm-violet); }
.hm-chip.active-filter { background: var(--hm-orange-light) !important; border-color: var(--hm-orange-dark); color: var(--hm-orange-dark); border-radius: 999px !important; }
.hm-chip.opacity-50 { opacity: 0.5; }
@media (min-width: 720px) { .hm-hub-note .hm-btn { align-self: end; } }

/* Hub : la photo reste à gauche du texte, même sur mobile ; le bouton passe dessous sur petit écran */
.hm-hub-note { grid-template-columns: auto 1fr; justify-items: stretch; gap: 0.9rem 1rem; }
.hm-hub-note .hm-btn { grid-column: 1 / -1; justify-self: start; }
.hm-hub-note .hm-portrait { width: 4.5rem; height: 4.5rem; }
@media (min-width: 720px) { .hm-hub-note { grid-template-columns: auto 1fr auto; gap: 1.5rem; } .hm-hub-note .hm-btn { grid-column: auto; } .hm-hub-note .hm-portrait { width: 5.5rem; height: 5.5rem; } }
