/* Portail membres — style proche du PHP Harmonie */

.membres-portal {
    --hm-bg: #f4f6f8;
    --hm-surface: #ffffff;
    --hm-text: var(--ink, #1a1f24);
    --hm-muted: var(--muted, #5c6770);
    --hm-accent: #1b5e3b;
    --hm-accent-hover: #144a2e;
    --hm-border: #e2e8ee;
    --hm-radius: 14px;
    --hm-shadow: 0 8px 30px rgba(20, 40, 30, 0.08);
}

.hm-wrap {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.hm-hero,
.hm-group-hero,
.hm-browse-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hm-hero h1,
.hm-group-hero h1,
.hm-browse-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--hm-text);
}

.hm-hero-lead {
    color: var(--hm-muted);
    margin: 0;
}

.hm-group-hero-logo {
    max-height: 100px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin-bottom: 1rem;
}

.hm-back-nav {
    margin-bottom: 1.5rem;
}

.hm-back-nav a {
    color: var(--hm-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.hm-back-nav a:hover {
    color: var(--hm-accent);
}

/* --- Cartes formations (accueil) --- */

.hm-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-group-card,
.hm-section-card,
.hm-folder-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hm-group-card:hover,
.hm-section-card:hover,
.hm-folder-card:hover {
    transform: translateY(-3px);
    border-color: #c5d9cc;
    box-shadow: 0 12px 36px rgba(20, 40, 30, 0.12);
}

.hm-group-card {
    display: block;
    padding: 2rem 1.5rem;
    text-align: center;
}

.hm-group-card-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hm-group-card-logo img {
    max-height: 110px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.hm-group-card-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hm-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.hm-group-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

/* --- Cartes sections (hub formation) --- */

.hm-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.hm-section-card {
    display: block;
    padding: 1.75rem 1.5rem;
}

.hm-section-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--hm-accent);
    line-height: 1;
}

.hm-section-icon--inline {
    display: inline;
    font-size: 1.35rem;
    margin: 0;
    vertical-align: -0.1em;
}

.hm-section-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.hm-section-card p {
    margin: 0;
    color: var(--hm-muted);
    font-size: 0.95rem;
}

.hm-section-card--radio {
    /* même carte ; distinction légère possible plus tard */
}

/* --- Browse dossiers --- */

.hm-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hm-folder-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hm-folder-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hm-crumbs {
    font-size: 0.9rem;
    color: var(--hm-muted);
    margin: 0.75rem 0 0;
}

.hm-crumbs a {
    color: inherit;
}

.hm-browse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.hm-btn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: var(--hm-accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.hm-btn:hover {
    background: var(--hm-accent-hover);
    color: #fff;
}

.hm-btn--ghost {
    background: transparent;
    color: var(--hm-text);
    border-color: var(--hm-border);
}

.hm-btn--ghost:hover {
    border-color: var(--hm-accent);
    color: var(--hm-accent);
    background: transparent;
}

.hm-banner {
    background: rgba(27, 94, 59, 0.1);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    margin: 0 0 1rem;
    text-align: center;
}

.hm-banner--ok {
    background: rgba(27, 94, 59, 0.12);
}

.hm-banner--warn {
    background: rgba(180, 80, 20, 0.15);
    color: #7a3a0c;
}

.hm-parent-link {
    margin: 0 0 1rem;
}

.hm-parent-link a {
    color: var(--hm-muted);
    text-decoration: none;
}

.hm-parent-link a:hover {
    color: var(--hm-accent);
}

.hm-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
}

.hm-file-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--hm-border);
}

.hm-file-list li:last-child {
    border-bottom: none;
}

.hm-file-list a {
    color: var(--hm-text);
    text-decoration: none;
    font-weight: 600;
}

.hm-file-list a:hover {
    color: var(--hm-accent);
}

.hm-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.hm-photo-card {
    margin: 0;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--hm-surface, #fff);
}

.hm-photo-link {
    display: block;
    aspect-ratio: 1;
    background: #e8eef0;
    overflow: hidden;
}

.hm-photo-link img,
.hm-photo-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-photo-card--video .hm-photo-link {
    position: relative;
}

.hm-photo-badge {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    pointer-events: none;
}

.hm-folder-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.hm-folder-delete {
    text-align: center;
    margin: 0;
}

.hm-depot-accept {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.hm-depot-accept summary {
    cursor: pointer;
    color: var(--hm-accent, #1d6b5c);
    font-weight: 600;
}

.hm-depot-accept-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.45rem;
    padding: 0.55rem;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #f7faf8;
}

.hm-depot-accept-form label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.hm-accept-folder-mode {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hm-accept-folder-mode legend {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.hm-depot-upload {
    max-width: 28rem;
    margin: 0 auto;
}

.hm-photo-caption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0.55rem 0.55rem;
}

.hm-photo-name {
    font-size: 0.78rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-photo-count {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.hm-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    background: #f7faf8;
}

.hm-pager-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.hm-pager-disabled {
    color: var(--hm-muted);
    font-size: 0.88rem;
}

@media (max-width: 560px) {
    .hm-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

.hm-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--hm-muted);
    margin-top: 0.15rem;
}

.hm-empty {
    color: var(--hm-muted);
    font-style: italic;
    text-align: center;
}

.hm-admin-bar {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--hm-muted);
    font-size: 0.95rem;
}

.hm-admin-bar a {
    color: var(--hm-accent);
    text-decoration: none;
}

.hm-admin-bar a:hover {
    text-decoration: underline;
}

/* --- Pages gestion (staff) — conserver lisibilité --- */

.membres-portal .membres-manage {
    width: min(960px, 100%);
    margin: 0 auto;
}

.membres-back {
    margin-bottom: 0.75rem;
}

.membres-back a {
    color: var(--hm-muted);
    text-decoration: none;
}

.membres-back a:hover {
    color: var(--hm-accent);
}

.membres-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--hm-surface);
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
}

.membres-table th,
.membres-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--hm-border);
}

.membres-table-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.membres-file-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.membres-file-actions form {
    margin: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--hm-accent);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}

.membres-add-piece {
    margin-top: 1.25rem;
    max-width: 420px;
    padding: 1.25rem;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

.hm-add-piece {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--hm-border);
}

.hm-add-piece-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.hm-add-piece-head p {
    margin: 0 0 1.1rem;
    color: var(--hm-muted);
    font-size: 0.92rem;
}

.hm-add-piece-head code {
    font-size: 0.85em;
}

.hm-add-piece-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hm-add-piece-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.hm-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.hm-field > span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-field > span em {
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

.hm-field--grow {
    flex: 1 1 16rem;
    min-width: 12rem;
}

.hm-field--order {
    flex: 0 0 5.5rem;
}

.hm-field--notes {
    max-width: 36rem;
}

.hm-input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #c5d0c8;
    border-radius: 10px;
    background: #fbfcfc;
    font: inherit;
    color: var(--hm-text);
}

.hm-input:focus {
    outline: 2px solid rgba(27, 94, 59, 0.28);
    border-color: var(--hm-accent);
    background: #fff;
}

.hm-input--notes {
    resize: vertical;
    min-height: 2.6rem;
}

.hm-input--order {
    text-align: center;
}

.hm-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #eef6f1;
    color: var(--hm-accent);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    user-select: none;
}

.hm-switch .hm-check-input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--hm-accent);
}

.hm-add-piece-submit {
    margin-bottom: 0.1rem;
}

.hm-form-errors {
    color: #b42318;
    font-size: 0.9rem;
}

.hm-field .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #b42318;
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .hm-add-piece-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hm-field--order {
        flex-basis: auto;
        max-width: 8rem;
    }
    .hm-add-piece-submit {
        width: 100%;
    }
}

.membres-manage-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.4fr 1fr;
    margin-top: 1.25rem;
}

@media (max-width: 800px) {
    .membres-manage-grid {
        grid-template-columns: 1fr;
    }
}

.membres-aside {
    padding: 1rem 1.1rem;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

.membres-aside h2 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

.membres-aside h2:first-child {
    margin-top: 0;
}

.membres-hint {
    font-size: 0.9rem;
    color: var(--hm-muted);
}

.membres-folder-list,
.membres-file-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.membres-folder-list li,
.membres-file-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--hm-border);
}

.membres-file-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.membres-meta,
.membres-empty {
    color: var(--hm-muted);
    font-size: 0.85rem;
}

.membres-crumbs {
    font-size: 0.9rem;
    color: var(--hm-muted);
    margin-top: 0.5rem;
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--hm-accent);
    color: var(--hm-accent);
}

.btn-ghost:hover {
    background: #e8f5ee;
}

/* --- Nav membres (remplace onglets vitrine) --- */

body.membres-portal .site-header .nav a.is-active {
    color: var(--hm-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

body.membres-portal .brand-row {
    align-items: center;
}

@media (max-width: 720px) {
    body.membres-portal .site-header .nav {
        gap: 0;
    }
}

.hm-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.95rem;
    color: var(--hm-muted);
    margin-bottom: 1.25rem;
}

.hm-trail a {
    color: var(--hm-accent);
    text-decoration: none;
}

.hm-trail a:hover {
    text-decoration: underline;
}

.hm-filter-bar {
    margin-top: 1.25rem;
    text-align: center;
}

.hm-filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hm-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hm-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--hm-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--hm-surface);
}

.hm-seg {
    padding: 0.55rem 1.1rem;
    text-decoration: none;
    color: var(--hm-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid var(--hm-border);
}

.hm-seg:last-child {
    border-right: none;
}

.hm-seg.is-active {
    background: var(--hm-accent);
    color: #fff;
}

.hm-seg-sub {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.85em;
}

.hm-segmented--lg .hm-seg {
    padding: 0.7rem 1.4rem;
    font-size: 1.05rem;
}

.hm-filter-hint {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    color: var(--hm-muted);
}

.hm-depot-cta {
    text-align: center;
    margin: 1.5rem 0 2rem;
    padding: 1.75rem 1.25rem;
    background: var(--hm-surface);
    border: 1px dashed #b7cfc0;
    border-radius: var(--hm-radius);
}

.hm-btn--lg {
    font-size: 1.15rem;
    padding: 0.85rem 1.6rem;
}

.hm-subhead {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
}

.hm-admin-bar--browse {
    text-align: center;
    margin: -0.5rem 0 1.5rem;
}

.hm-inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 1.25rem;
}

.hm-coverage-table .hm-cov {
    text-align: center;
    width: 3rem;
    color: var(--hm-muted);
}

.hm-coverage-table .hm-cov:not(:empty) {
    font-weight: 700;
    color: var(--hm-accent);
}

.hm-row-actions {
    text-align: right;
    white-space: nowrap;
}

.hm-set-save {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 1rem 0 1.5rem;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hm-file-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
}

.hm-file-row--link {
    align-items: flex-start;
}

.hm-link-piece-form select {
    max-width: 12rem;
    font: inherit;
    padding: 0.25rem 0.4rem;
}

.hm-input-wide {
    width: min(100%, 40rem);
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}

.hm-input--mono {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.88rem;
}

.hm-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.hm-details {
    margin-top: 1rem;
    color: var(--hm-muted);
    font-size: 0.9rem;
}

/* --- Assembler PDF --- */

.hm-pdf-page {
    padding-bottom: 3rem;
}

.hm-pdf-hero h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.hm-pdf-hero .lead {
    margin: 0 0 1.75rem;
    max-width: 40rem;
    color: var(--hm-muted);
    line-height: 1.55;
}

.hm-pdf-hero code {
    font-size: 0.88em;
}

.hm-pdf-section {
    margin: 0 0 1.75rem;
    padding: 1.35rem 1.4rem 1.5rem;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    border-left: 4px solid var(--hm-accent);
    box-shadow: 0 8px 24px rgba(20, 40, 30, 0.06);
}

.hm-pdf-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.1rem;
}

.hm-pdf-section-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #14241a;
}

.hm-pdf-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #e8f5ee;
    color: var(--hm-accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.hm-pdf-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hm-pdf-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.hm-field--folder {
    flex: 1 1 16rem;
    min-width: 12rem;
    max-width: 28rem;
}

.hm-pdf-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
}

.hm-switch--opt {
    background: #f4f7f5;
    color: var(--hm-text);
    font-weight: 600;
}

.hm-pdf-bundle-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e4ebe6;
    border-radius: 12px;
    overflow: hidden;
}

.hm-pdf-bundle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1.05rem;
    border-bottom: 1px solid #e4ebe6;
    background: #fbfcfc;
}

.hm-pdf-bundle:nth-child(even) {
    background: #f6faf7;
}

.hm-pdf-bundle:last-child {
    border-bottom: none;
}

.hm-pdf-bundle-title {
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.hm-pdf-bundle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--hm-muted);
}

.hm-pdf-bundle-out {
    font-size: 0.82rem;
    color: var(--hm-accent);
    background: #e8f5ee;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
}

.hm-pdf-rejected {
    margin-top: 1.1rem;
}

.hm-pdf-rejected ul {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
}

.hm-pdf-rejected code {
    font-size: 0.82rem;
}

.hm-pdf-custom {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
    padding: 1rem 1.05rem;
    background: #f7faf8;
    border-radius: 12px;
    border: 1px dashed #c5d4cb;
}

.hm-pdf-custom[hidden] {
    display: none !important;
}

.hm-pdf-pattern-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.hm-pdf-pattern-hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.hm-pdf-pattern-hint code {
    font-size: 0.82rem;
}

.hm-input--regex {
    min-height: 4.5rem;
    resize: vertical;
    line-height: 1.35;
    font-size: 0.84rem;
}

.hm-pdf-save-pattern {
    margin-top: 0.15rem;
}

.hm-pdf-save-pattern-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.55rem;
}

#pdf-regex-status.is-bad {
    color: #b42318;
}

.hm-pdf-custom .hm-field {
    flex: 0 0 auto;
}

.hm-pdf-sample {
    margin-top: 0.35rem;
    padding: 0.95rem 1.05rem;
    background: #f4f7f5;
    border-radius: 12px;
}

.hm-pdf-sample-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-pdf-sample-file {
    margin: 0 0 0.65rem;
    word-break: break-all;
}

.hm-pdf-sample-file code {
    font-size: 0.88rem;
}

.hm-pdf-sample-result {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    font-size: 0.92rem;
}

.hm-pdf-sample-result.is-ok {
    color: var(--hm-accent);
}

.hm-pdf-sample-result.is-bad {
    color: #b42318;
}

.hm-pdf-sample-result code {
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .hm-pdf-section {
        padding: 1.1rem 1rem 1.25rem;
    }
    .hm-pdf-bundle {
        flex-direction: column;
        align-items: flex-start;
    }
}

.membres-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.membres-table th,
.membres-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--hm-border);
    text-align: left;
}

.membres-file-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.membres-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--hm-border);
}


/* Lecteur radio (HTML5, audio via proxy NAS) */
.album-player audio {
    display: none;
}

.album-player-card {
    max-width: 480px;
    margin: 0 auto 2rem;
    padding: 2rem 1.5rem;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    text-align: center;
}

.album-cover {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(20, 40, 30, 0.12);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    background: var(--hm-accent);
}

.album-group {
    margin: 0;
    color: var(--hm-muted);
    font-size: 0.9rem;
}

.album-title {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.5rem;
}

.album-track-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
}

.album-track-counter {
    margin: 0.35rem 0 0;
    color: var(--hm-muted);
    font-size: 0.9rem;
}

.album-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

.album-time {
    font-size: 0.8rem;
    color: var(--hm-muted);
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
}

.album-progress-bar {
    width: 100%;
    accent-color: var(--hm-accent);
}

.album-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.album-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--hm-border);
    background: var(--hm-surface);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.album-btn:hover {
    border-color: var(--hm-accent);
    background: #eef7f0;
}

.album-btn-main {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
    background: var(--hm-accent);
    border-color: var(--hm-accent);
    color: #fff;
}

.album-btn-main:hover {
    filter: brightness(0.95);
    color: #fff;
}

.album-playlist {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 560px;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
}

.album-playlist li {
    margin: 0;
}

.album-playlist-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid var(--hm-border);
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.album-playlist-item:last-child {
    border-bottom: none;
}

.album-playlist-item:hover {
    background: #f7faf8;
}

.album-playlist-item.is-active {
    background: #eef7f0;
    font-weight: 600;
}

.album-playlist-num {
    color: var(--hm-muted);
    min-width: 1.5rem;
    font-size: 0.9rem;
}

.album-playlist-name {
    flex: 1;
    word-break: break-word;
}

/* —— Radio Officiel admin —— */
.ro-page {
    padding-bottom: 3rem;
}

.ro-hero {
    margin: 0 0 1.75rem;
    text-align: left;
}

.ro-hero h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.ro-lead {
    margin: 0;
    max-width: 40rem;
    color: var(--hm-muted);
    line-height: 1.5;
}

.ro-tools {
    display: inline-block;
    margin: 0.85rem 0 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
}

.ro-tools.is-ok {
    background: #e8f5ee;
    color: var(--hm-accent);
}

.ro-tools.is-bad {
    background: #fdecea;
    color: #b42318;
}

.ro-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
    .ro-grid {
        grid-template-columns: 1fr;
    }
}

.ro-panel {
    margin: 0;
    padding: 1.35rem 1.4rem 1.5rem;
    background: linear-gradient(165deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid var(--hm-border);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 40, 30, 0.06);
}

.ro-panel-title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.ro-panel-hint {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    color: var(--hm-muted);
}

.ro-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.ro-field > span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.ro-field select,
.ro-field input[type="url"],
.ro-field input[type="text"],
.ro-field input[type="file"] {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--hm-text);
}

.ro-field select:focus,
.ro-field input:focus {
    outline: 2px solid rgba(27, 94, 59, 0.25);
    border-color: var(--hm-accent);
}

.ro-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.4rem 0 1.1rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.ro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--hm-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ro-btn:hover {
    background: var(--hm-accent-hover);
}

.ro-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ro-catalog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.ro-catalog-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.ro-count {
    font-size: 0.85rem;
    color: var(--hm-muted);
}

.ro-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    overflow: hidden;
}

.ro-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--hm-border);
}

.ro-item:last-child {
    border-bottom: none;
}

.ro-item-set {
    padding-top: 0.2rem;
}

.ro-item-title {
    margin: 0 0 0.3rem;
    font-weight: 600;
}

.ro-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--hm-muted);
}

.ro-item-meta a {
    color: var(--hm-accent);
}

.ro-item-error {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: #b42318;
}

.ro-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #eef1f4;
    color: #4a5560;
}

.ro-status--ready {
    background: #e8f5ee;
    color: var(--hm-accent);
}

.ro-status--pending {
    background: #fff4df;
    color: #9a6700;
}

.ro-status--error {
    background: #fdecea;
    color: #b42318;
}

.ro-catalog-footer {
    margin: 1rem 0 0;
}

.ro-subhead {
    margin: 1.75rem 0 0.65rem;
    font-size: 0.95rem;
    color: var(--hm-muted);
    font-weight: 600;
}

.ro-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ro-actions-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--hm-border);
}

.ro-actions-label {
    color: var(--hm-muted);
    font-size: 0.9rem;
}

.ro-actions-label em {
    font-style: normal;
    opacity: 0.75;
}

.ro-actions-btns {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ro-actions-btns form {
    margin: 0;
}

.ro-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--hm-accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ro-link--danger {
    color: #b42318;
}

/* --- Auth / Users --- */

.hm-auth {
    max-width: 720px;
}

.hm-auth-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    padding: 1.25rem 1.4rem;
    margin: 0 auto 1.5rem;
    max-width: 420px;
}

.hm-auth-card--wide {
    max-width: 640px;
}

.hm-auth-card p {
    margin: 0 0 0.85rem;
}

.hm-auth-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hm-auth-card input[type="text"],
.hm-auth-card input[type="email"],
.hm-auth-card input[type="password"],
.hm-auth-card input[type="number"],
.hm-auth-card select,
.hm-auth-card textarea {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    font: inherit;
}

.hm-auth-card ul {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
}

.hm-auth-card li {
    margin: 0.25rem 0;
}

.hm-auth-cta {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--hm-border);
    margin-top: 1rem;
}

.hm-auth-cta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.hm-auth-back {
    margin-top: 1rem !important;
}

/* Contre .btn { color:#fff !important } de la vitrine */
.btn-secondary {
    background: #fff !important;
    color: var(--hm-accent) !important;
    border: 2px solid var(--hm-accent);
}
.btn-secondary:hover {
    background: #e8f5ee !important;
    color: var(--hm-accent-hover) !important;
}

.hm-users-section {
    margin-bottom: 2rem;
}

.hm-users-section h2 {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
}

.hm-users-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-users-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--hm-border);
}

.hm-users-table-wrap {
    overflow-x: auto;
}

.hm-users-hint {
    margin: -0.25rem 0 0.85rem;
    font-size: 0.9rem;
}

.hm-user-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.hm-user-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.2rem 0.75rem;
    align-items: center;
    text-align: left;
    padding: 0.85rem 1rem;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    background: var(--hm-surface, #fff);
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hm-user-card:hover,
.hm-user-card:focus-visible {
    border-color: var(--hm-accent);
    background: #f4faf6;
    outline: none;
}

.hm-user-card-main {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.hm-user-card-name {
    font-weight: 700;
    font-size: 1.02rem;
}

.hm-user-card-email {
    color: var(--hm-muted);
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-user-card-meta {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.86rem;
    color: #334039;
    min-width: 0;
}

.hm-user-card-subs {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-user-card-pending {
    color: #9a3412;
    font-weight: 600;
    font-size: 0.8rem;
}

.hm-user-card-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.4rem;
    color: var(--hm-muted);
    line-height: 1;
}

.hm-badge--soft {
    background: #d8ebe0;
    color: #1b4332;
}

.hm-user-modal {
    max-width: min(560px, 94vw);
}

.hm-user-modal-email {
    margin: 0.2rem 0 0;
    font-weight: 400;
}

.hm-user-fieldset {
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem 0.85rem;
}

.hm-user-fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-user-checks {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 12rem;
    overflow: auto;
}

.hm-user-website {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--hm-border);
}

.hm-user-delete {
    padding: 0 1.15rem 1.15rem;
}

.hm-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.hm-users-table th,
.hm-users-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--hm-border);
}

.hm-chip-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hm-chip-list li {
    background: #e8f5ee;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.82rem;
}

.hm-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    background: #24312a;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.hm-muted {
    color: var(--hm-muted);
}

.hm-inline-form {
    margin-top: 0.4rem;
}

.hm-inline-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hm-btn-reject {
    background: #fff !important;
    color: #b42318 !important;
    border: 2px solid #b42318 !important;
}

.hm-btn-reject:hover {
    background: #fef3f2 !important;
    color: #912018 !important;
}

.hm-aff-pending {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hm-aff-pending li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
}

.hm-aff-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.hm-aff-inline {
    display: inline-flex;
    gap: 0.35rem;
    margin: 0;
    align-items: center;
}

.hm-sibling-affs {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hm-border);
}

.hm-sibling-affs h2 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.hm-form-pending {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
    background: #eef6f1;
    border: 1px solid #9bb5a6;
    border-radius: 10px;
    color: var(--hm-accent);
    font-weight: 600;
}

.hm-form-pending[hidden] {
    display: none !important;
}

.hm-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #9bb5a6;
    border-top-color: var(--hm-accent);
    border-radius: 50%;
    animation: hm-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes hm-spin {
    to { transform: rotate(360deg); }
}

.hm-btn-busy {
    opacity: 0.7;
    cursor: wait !important;
}

.hm-invite-url {
    word-break: break-all;
    background: #f0f4f1;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
}

.hm-linkish {
    border: none;
    background: none;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
}

.hm-btn-save {
    margin-top: 0.55rem;
    background: var(--hm-accent);
    color: #fff !important;
    border: none;
}

.hm-btn-ghost {
    background: #fff !important;
    color: var(--hm-accent) !important;
    border: 2px solid var(--hm-accent) !important;
}

.hm-btn-ghost:hover {
    background: #e8f5ee !important;
}

.hm-btn-cancel {
    background: #fff !important;
    color: #344054 !important;
    border: 2px solid #98a2b3 !important;
}

.hm-btn-cancel:hover {
    background: #f2f4f7 !important;
}

.hm-check-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.hm-dd {
    position: relative;
    min-width: 14rem;
}

.hm-dd-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 0.45rem 0.75rem;
    border: 1px solid #9bb5a6;
    border-radius: 10px;
    background: #fff;
    color: var(--hm-accent);
    font-weight: 600;
    font-size: 0.88rem;
}

.hm-dd-summary::-webkit-details-marker {
    display: none;
}

.hm-dd[open] .hm-dd-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #e8f5ee;
}

.hm-dd-body {
    border: 1px solid #9bb5a6;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fff;
    padding: 0.45rem 0.65rem 0.65rem;
    max-height: 14rem;
    overflow: auto;
    box-shadow: 0 8px 20px rgba(20, 40, 30, 0.12);
}

.hm-dd-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.15rem;
    font-weight: 500;
    cursor: pointer;
}

.hm-dd-hint {
    font-size: 0.78rem;
    margin: 0 0 0.45rem;
}

.hm-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: min(480px, 94vw);
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hm-modal::backdrop {
    background: rgba(20, 30, 25, 0.45);
}

.hm-modal-card {
    padding: 1rem 1.15rem 1.15rem;
    margin: 0;
}

.hm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.hm-modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--hm-muted);
}

.hm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hm-modal-sep {
    border: 0;
    border-top: 1px solid var(--hm-border);
    margin: 0.85rem 0;
}

.hm-modal-card p {
    margin: 0 0 0.75rem;
}

.hm-modal-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hm-modal-card input,
.hm-modal-card select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    font: inherit;
}

@media (max-width: 720px) {
    body.membres-portal .site-header .nav {
        gap: 0;
    }
}

.hm-invite-banner {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #9bb5a6;
    border-radius: 12px;
    background: #eef6f1;
}

.hm-invite-banner p {
    margin: 0 0 0.5rem;
}

.hm-content-tools {
    margin: 0 0 1.25rem;
    border: 1px solid #9bb5a6;
    border-radius: 12px;
    background: #f4faf6;
}

.hm-content-tools > summary {
    cursor: pointer;
    padding: 0.7rem 1rem;
    font-weight: 700;
    color: var(--hm-accent);
    list-style: none;
}

.hm-content-tools > summary::-webkit-details-marker {
    display: none;
}

.hm-content-tools-body {
    display: grid;
    gap: 1rem;
    padding: 0 1rem 1rem;
    border-top: 1px solid #c5d8cc;
}

.hm-content-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    align-items: flex-end;
}

.hm-content-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.hm-content-form input[type="text"],
.hm-content-form input[type="file"] {
    font-weight: 400;
}

.hm-suggest-audio {
    margin-top: 0.75rem;
    font-size: 0.88rem;
}

.hm-suggest-audio summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--hm-accent, #1d6b5c);
}

.hm-suggest-audio-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.55rem;
    padding: 0.65rem;
    border: 1px solid var(--hm-border, #c5d8cc);
    border-radius: 10px;
    background: #f7faf8;
}

.hm-suggest-audio-form label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.hm-suggest-audio-form input[type="url"],
.hm-suggest-audio-form input[type="text"] {
    font-weight: 400;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--hm-border, #c5d8cc);
    border-radius: 8px;
}

.hm-suggest-audio-hint {
    margin: 0;
    font-size: 0.78rem;
}

.hm-suggest-wrap {
    margin: 1.5rem 0 0.5rem;
    max-width: 28rem;
}

.hm-depot-rmdir-form {
    margin: 0 0 0.85rem;
}

.hm-depot-batch {
    margin: 0 0 1.25rem;
    padding: 0.85rem;
    border: 1px solid var(--hm-border, #c5d8cc);
    border-radius: 12px;
    background: #f7faf8;
}

.hm-depot-batch-bar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hm-depot-batch-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.hm-depot-batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hm-btn-danger {
    color: #9b1c1c;
    border-color: #f0b4b4;
    background: #fff5f5;
}

.hm-photo-card {
    position: relative;
}

.hm-photo-check {
    position: absolute;
    z-index: 2;
    top: 0.4rem;
    left: 0.4rem;
    margin: 0;
    padding: 0.2rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.hm-file-main {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.hm-file-check {
    margin-top: 0.2rem;
}

.hm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hm-group-card-sub {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    opacity: 0.7;
}

.hm-group-card-logo--android {
    background: #f5f1ea;
}

.hm-group-card-logo--android img {
    object-fit: contain;
    padding: 0.35rem;
}

.hm-android-page {
    margin-top: 0.5rem;
}

.hm-android-page-hero {
    display: flex;
    gap: 1.35rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.1), rgba(11, 21, 38, 0.04));
    border: 1px solid rgba(47, 107, 255, 0.22);
}

.hm-android-page-logo {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 22px;
    object-fit: cover;
    background: #f5f1ea;
    box-shadow: 0 2px 10px rgba(11, 21, 38, 0.12);
}

.hm-android-page-hero h1 {
    margin: 0 0 0.4rem;
}

.hm-android-guide-panel {
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    background: rgba(11, 21, 38, 0.03);
    border: 1px solid rgba(11, 21, 38, 0.08);
}

.hm-android-guide-panel h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
}

@media (max-width: 560px) {
    .hm-android-page-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- App Android Radio RHL (carte / overlay) --- */
.hm-android-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 2rem 0 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.1), rgba(11, 21, 38, 0.04));
    border: 1px solid rgba(47, 107, 255, 0.22);
}

.hm-android-card-logo {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    background: #f5f1ea;
    box-shadow: 0 2px 10px rgba(11, 21, 38, 0.12);
}

.hm-android-card-body {
    min-width: 0;
    flex: 1;
}

.hm-android-card-body h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.hm-android-card-lead {
    margin: 0 0 0.65rem;
    opacity: 0.88;
    line-height: 1.45;
}

.hm-android-card-meta {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    opacity: 0.75;
}

.hm-android-card-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    opacity: 0.68;
    line-height: 1.4;
}

.hm-android-card-hint code {
    font-size: 0.84em;
}

@media (max-width: 560px) {
    .hm-android-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.hm-android-guide {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(47, 107, 255, 0.18);
    text-align: left;
}

.hm-android-guide summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink, #0b1526);
}

.hm-android-steps {
    margin: 0.85rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.hm-android-steps li {
    margin-bottom: 0.85rem;
}

.hm-android-shot {
    margin: 0.65rem 0 0.25rem;
    max-width: 280px;
}

.hm-android-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(11, 21, 38, 0.12);
    box-shadow: 0 4px 14px rgba(11, 21, 38, 0.1);
}

.hm-android-shot figcaption {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    opacity: 0.7;
}

.hm-android-support {
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(11, 21, 38, 0.05);
    font-size: 0.9rem;
    line-height: 1.45;
}

.hm-android-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 12, 24, 0.72);
    backdrop-filter: blur(4px);
}

.hm-android-overlay[hidden] {
    display: none !important;
}

.hm-android-overlay-card {
    width: min(420px, 100%);
    padding: 1.5rem 1.35rem;
    border-radius: 18px;
    background: #fff;
    color: #0b1526;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hm-android-overlay-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.hm-android-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.85rem;
    border: 3px solid rgba(47, 107, 255, 0.2);
    border-top-color: #2f6bff;
    border-radius: 50%;
    animation: hm-android-spin 0.8s linear infinite;
}

@keyframes hm-android-spin {
    to { transform: rotate(360deg); }
}

.hm-android-overlay-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.hm-android-overlay-card p {
    margin: 0 0 0.65rem;
    line-height: 1.45;
    font-size: 0.95rem;
}

.hm-android-overlay-hint {
    opacity: 0.75;
    font-size: 0.88rem !important;
}

body.hm-android-overlay-open {
    overflow: hidden;
}
