/* ============================================================
 * css_modif.css
 *
 * Espace propriétaire (/modif/*) — login, dashboard, photos, tarifs, calendrier, FAQ, prestations, etc. Chargé EN PLUS de css_public.css uniquement sur les pages /modif/*
 * ============================================================ */

/* =====================================================================
   ESPACE PROPRIÉTAIRE (/modif) — login, mdp oublié, reset, compte
   ===================================================================== */

.mh-auth-page {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px 60px;
    background: linear-gradient(180deg, #f5fafd 0%, #ffffff 200px);
}
.mh-auth-card {
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-lg);
    box-shadow: 0 4px 20px rgba(14,91,149,.08);
    padding: 32px 36px 28px;
    max-width: 440px;
    width: 100%;
}
.mh-auth-card-wide { max-width: 680px; }

.mh-auth-header {
    text-align: center;
    margin-bottom: 24px;
}
.mh-auth-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--mh-blue);
}
.mh-auth-subtitle {
    margin: 0;
    color: var(--mh-text-muted);
    font-size: 14px;
}

.mh-auth-intro {
    text-align: center;
    color: var(--mh-text);
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Alertes */
.mh-auth-alert {
    padding: 12px 16px;
    border-radius: var(--mh-radius);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 18px;
}
.mh-auth-alert-success {
    background: #e7f7ee;
    border: 1px solid #2bbd76;
    color: #1b5e20;
}
.mh-auth-alert-error {
    background: #fee;
    border: 1px solid #f5b3b3;
    color: #842029;
}
.mh-auth-alert-info {
    background: #fffbea;
    border: 1px solid #f0a020;
    color: #5a3d00;
}

/* Form */
.mh-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mh-auth-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mh-auth-row label {
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-text);
}
.mh-auth-form input[type=email],
.mh-auth-form input[type=text],
.mh-auth-form input[type=password] {
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--mh-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.mh-auth-form input:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-auth-pwd-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mh-auth-pwd-group input { flex: 1; }
.mh-auth-pwd-toggle {
    background: var(--mh-bg-soft);
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    padding: 9px 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.mh-auth-pwd-toggle:hover { background: var(--mh-border); }

.mh-auth-forgot {
    margin: -4px 0 0;
    text-align: right;
    font-size: 13px;
}
.mh-auth-forgot a {
    color: var(--mh-blue);
    text-decoration: none;
}
.mh-auth-forgot a:hover { text-decoration: underline; }

.mh-auth-hint {
    margin: -4px 0 0;
    font-size: 12px;
    color: var(--mh-text-muted);
    font-style: italic;
    line-height: 1.4;
}

.mh-auth-submit {
    background: var(--mh-blue);
    color: #fff;
    border: 0;
    border-radius: var(--mh-radius);
    padding: 13px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background .15s, transform .12s;
}
.mh-auth-submit:hover {
    background: var(--mh-blue-dark);
    transform: translateY(-1px);
}

/* Choix multi-comptes : boutons type "card" */
.mh-auth-choice {
    width: 100%;
    text-align: left;
    background: var(--mh-bg-soft);
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 14px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--mh-text);
    transition: border-color .15s, background .15s;
}
.mh-auth-choice:hover {
    border-color: var(--mh-blue);
    background: #f5fafd;
}
.mh-auth-choice-num { font-weight: bold; color: var(--mh-blue); }

/* Footer (lien retour) */
.mh-auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
}
.mh-auth-footer a {
    color: var(--mh-text-muted);
    text-decoration: none;
}
.mh-auth-footer a:hover { color: var(--mh-blue); }

/* Page compte (placeholder) */
.mh-auth-compte-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}
.mh-auth-secondary-btn,
.mh-auth-danger-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--mh-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity .15s, transform .12s;
}
.mh-auth-secondary-btn {
    background: #fff;
    color: var(--mh-blue);
    border: 1.5px solid var(--mh-blue);
}
.mh-auth-secondary-btn:hover { background: var(--mh-bg-soft); text-decoration: none; }
.mh-auth-danger-btn {
    background: #c53030;
    color: #fff;
}
.mh-auth-danger-btn:hover { background: #9a2424; color: #fff; text-decoration: none; transform: translateY(-1px); }

@media (max-width: 480px) {
    .mh-auth-card { padding: 22px 18px; }
    .mh-auth-header h1 { font-size: 20px; }
}

/* === Bouton bio (Face ID / empreinte) sur le login ==================== */
.mh-auth-bio-btn {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1a2535, #2d4a6e);
    color: #fff;
    border: 0;
    border-radius: var(--mh-radius);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26,37,53,.3);
    transition: background .15s, transform .12s, box-shadow .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mh-auth-bio-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,37,53,.4);
}
.mh-auth-bio-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Séparateur "ou avec mot de passe" entre les 2 méthodes d'auth */
.mh-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.mh-auth-divider::before,
.mh-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mh-border);
}
.mh-auth-divider span {
    font-size: 12px;
    color: var(--mh-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* === Page appareils WebAuthn ========================================= */
.mh-wa-add-block {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--mh-radius);
    padding: 18px 20px;
    margin-bottom: 22px;
}
.mh-wa-add-block h3 {
    margin: 0 0 6px;
    color: #1e40af;
    font-size: 16px;
}
.mh-wa-add-block p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--mh-text-muted);
}
.mh-wa-add-block input[type=text] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.mh-wa-add-block input[type=text]:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}

.mh-wa-list-title {
    margin: 24px 0 10px;
    font-size: 14px;
    color: var(--mh-text);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: bold;
}
.mh-wa-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.mh-wa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 12px 16px;
}
.mh-wa-item-info { flex: 1; min-width: 0; }
.mh-wa-item-info strong {
    font-size: 14px;
    color: var(--mh-text);
}
.mh-wa-item-meta {
    font-size: 12px;
    color: var(--mh-text-muted);
    margin-top: 3px;
}
.mh-wa-item-del {
    background: none;
    border: 0;
    color: #c53030;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--mh-radius-sm);
    transition: background .12s;
}
.mh-wa-item-del:hover { background: #fee; }
.mh-wa-empty {
    text-align: center;
    color: var(--mh-text-muted);
    font-style: italic;
    margin: 16px 0;
}

/* Bouton primary pour les actions principales de la page compte */
.mh-auth-primary-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--mh-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    background: var(--mh-blue);
    color: #fff;
    transition: background .15s, transform .12s;
}
.mh-auth-primary-btn:hover {
    background: var(--mh-blue-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* === Gestion des photos /modif/photos ================================ */
.mh-photos-upload {
    background: #f5fafd;
    border: 1px solid #d6e8f3;
    border-radius: var(--mh-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.mh-photos-upload h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--mh-blue);
}
.mh-photos-upload-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mh-photos-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.mh-photos-upload-row input[type=file] {
    flex: 1 1 220px;
    padding: 8px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
}
.mh-photos-upload-row input[type=text] {
    flex: 2 1 240px;
    padding: 9px 12px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}
.mh-photos-upload-row .mh-auth-submit {
    flex: 0 0 auto;
    padding: 10px 22px;
    font-size: 14px;
}

/* Liste photos en grille */
.mh-photos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.mh-photo-item {
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
}
.mh-photo-item.is-main {
    border-color: var(--mh-blue);
    box-shadow: 0 2px 8px rgba(14,91,149,.18);
}
.mh-photo-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--mh-bg-soft);
}
.mh-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.mh-photo-thumb-wrap:hover .mh-photo-thumb {
    transform: scale(1.03);
}
.mh-photo-main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--mh-blue);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.mh-photo-actions {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mh-photo-action-form {
    display: flex;
    gap: 4px;
}
.mh-photo-desc-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 12px;
    box-sizing: border-box;
    min-width: 0;
}
.mh-photo-action-buttons {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}
.mh-photo-btn {
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    color: var(--mh-text);
    font-size: 14px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    line-height: 1;
}
.mh-photo-btn:hover {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-photo-btn-save:hover { background: #2bbd76; border-color: #2bbd76; color: #fff; }
.mh-photo-btn-danger:hover { background: #c53030; border-color: #c53030; color: #fff; }

.mh-photos-empty {
    text-align: center;
    color: var(--mh-text-muted);
    padding: 32px 16px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius);
    font-style: italic;
}

/* ===== Quota photos (barre de progression + bouton tout supprimer) === */
.mh-photos-quota {
    margin: 18px 0 22px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
}
.mh-photos-quota-info {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.mh-photos-quota-label {
    color: var(--mh-text);
    font-size: 15px;
    flex: 1 1 180px;
}
.mh-photos-quota-label strong { color: var(--mh-blue); }
.mh-photos-quota-pct {
    color: var(--mh-blue);
    font-weight: bold;
    font-size: 18px;
}
.mh-photos-quota-pct.is-full {
    color: #c53030;
}
.mh-photos-quota-deleteall {
    margin-left: auto;
}
.mh-photos-quota-deleteall-btn {
    background: #fff;
    color: #c53030;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.mh-photos-quota-deleteall-btn:hover {
    background: #fee;
    border-color: #c53030;
}
.mh-photos-quota-bar-wrap {
    height: 10px;
    background: var(--mh-bg-soft);
    border-radius: 5px;
    overflow: hidden;
}
.mh-photos-quota-bar {
    height: 100%;
    background: linear-gradient(90deg, #f0a020, #ff7e00);
    border-radius: 5px;
    transition: width .3s ease;
}
.mh-photos-quota-bar.is-full {
    background: linear-gradient(90deg, #c53030, #ff4d4d);
}
.mh-photos-quota-warn {
    margin: 8px 0 0;
    font-size: 13px;
    color: #c53030;
    font-style: italic;
}

/* ===== Page /modif/tarifs ============================================ */
.mh-tarif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.mh-tarif-empty {
    padding: 20px;
    text-align: center;
    color: var(--mh-text-muted);
    font-style: italic;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius);
}
.mh-tarif-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 10px 14px;
    transition: border-color .12s, opacity .2s;
    flex-wrap: wrap;
}
.mh-tarif-item:hover { border-color: var(--mh-blue-light); }
.mh-tarif-item.is-principale {
    border-color: var(--mh-blue);
    background: #f5fafd;
}
.mh-tarif-info {
    flex: 1;
    min-width: 200px;
    font-size: 14px;
}
.mh-tarif-info strong { color: var(--mh-blue); margin-right: 6px; }
.mh-tarif-saison {
    margin-left: 8px;
    color: var(--mh-text-muted);
    font-size: 12px;
    font-style: italic;
}
.mh-tarif-ppal-tag {
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--mh-blue);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}
.mh-tarif-unit { flex-shrink: 0; }
.mh-tarif-unit-sel {
    padding: 6px 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    transition: background .25s;
    max-width: 200px;
}
.mh-tarif-unit-sel.is-saved { background: #e7f7ee; border-color: #2bbd76; }
.mh-tarif-actions {
    display: flex;
    gap: 4px;
}
.mh-tarif-btn {
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    color: var(--mh-text);
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background .12s;
}
.mh-tarif-btn:hover:not(:disabled) { background: var(--mh-blue); color: #fff; border-color: var(--mh-blue); }
.mh-tarif-btn:disabled { opacity: .35; cursor: not-allowed; }
.mh-tarif-btn-danger:hover { background: #c53030; border-color: #c53030; color: #fff; }

.mh-tarif-add-buttons {
    display: flex;
    gap: 10px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.mh-tarif-extras {
    margin: 14px 0;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 12px 16px;
    background: #fff;
}
.mh-tarif-extras legend {
    padding: 0 8px;
    font-weight: bold;
    color: var(--mh-blue);
    font-size: 14px;
}
.mh-tarif-extras input[type=text],
.mh-tarif-extras textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}
.mh-tarif-extras textarea { resize: vertical; min-height: 80px; }

/* Modal tarif (add/edit) */
.mh-tarif-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mh-tarif-modal[hidden] { display: none; }
.mh-tarif-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.mh-tarif-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--mh-radius-lg);
    padding: 22px 26px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    max-height: 90vh;
    overflow-y: auto;
}
.mh-tarif-modal-box h3 { margin: 0 0 14px; color: var(--mh-blue); font-size: 18px; }
.mh-tarif-form { display: flex; flex-direction: column; gap: 10px; }
.mh-tarif-row { display: flex; flex-direction: column; gap: 4px; }
.mh-tarif-row label { font-size: 13px; font-weight: bold; color: var(--mh-text); }
.mh-tarif-row input,
.mh-tarif-row select,
.mh-tarif-row textarea {
    padding: 8px 11px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
}
.mh-tarif-row input:focus,
.mh-tarif-row select:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-tarif-row-inline {
    flex-direction: row;
    gap: 14px;
}
.mh-tarif-row-inline > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mh-tarif-row-checkbox { flex-direction: row; align-items: center; gap: 8px; }
.mh-tarif-row-checkbox label { font-weight: normal; }
.mh-presta-msg-hint {
    color: var(--mh-text-muted);
    font-weight: normal;
    font-size: 11px;
}
.mh-tarif-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* ===== Page /modif/position (Leaflet + geocoder) ==================== */
.mh-position-page .mh-auth-card-wide { max-width: 900px; }
.mh-pos-search {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.mh-pos-search input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}
.mh-pos-search input:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-pos-search button {
    background: var(--mh-blue);
    color: #fff;
    border: 0;
    border-radius: var(--mh-radius-sm);
    padding: 0 18px;
    font-weight: bold;
    cursor: pointer;
}
.mh-pos-search button:hover { background: var(--mh-blue-dark); }
#mh-pos-map {
    width: 100%;
    height: 500px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
}
.mh-pos-info {
    background: #f6fcec;
    border: 1px solid #b8d6c2;
    border-radius: var(--mh-radius);
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--mh-text);
}
.mh-pos-info ol { margin: 6px 0 10px 22px; }
.mh-pos-info p:last-child { margin-bottom: 0; }
.mh-pos-validate-btn {
    background: var(--mh-blue);
    color: #fff;
    border: 0;
    border-radius: var(--mh-radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}
.mh-pos-validate-btn:hover { background: var(--mh-blue-dark); }

/* ===== Page /modif/prestations (cases à cocher AJAX) ================ */
.mh-presta-group {
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 12px 18px 16px;
    margin: 0 0 16px;
    background: #fff;
}
.mh-presta-group legend {
    padding: 0 8px;
    font-weight: bold;
    color: var(--mh-blue);
    font-size: 15px;
}
.mh-presta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 14px;
}
@media (max-width: 700px) {
    .mh-presta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .mh-presta-grid { grid-template-columns: 1fr; }
}
.mh-presta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--mh-radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--mh-text);
    transition: background .12s;
    user-select: none;
}
.mh-presta-item:hover { background: var(--mh-bg-soft); }
.mh-presta-item input { cursor: pointer; }
.mh-presta-item.is-locked {
    color: var(--mh-text-muted);
    cursor: not-allowed;
}
.mh-presta-lock { margin-left: auto; font-size: 12px; }
.mh-presta-item.is-saved {
    background: #e7f7ee;
    transition: background .15s;
}

/* Message d'erreur/info en haut de page */
.mh-presta-msg {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
}
.mh-presta-msg[hidden] { display: none; }
.mh-presta-msg.is-success { background: #e7f7ee; color: #1b5e20; border: 1px solid #2bbd76; }
.mh-presta-msg.is-error   { background: #fee;    color: #842029; border: 1px solid #f5b3b3; }
.mh-presta-msg.is-info    { background: #fffbea; color: #5a3d00; border: 1px solid #f0a020; }

/* ===== Page /modif/faq (gestion des questions/réponses) ============= */
.mh-faq-form-section,
.mh-faq-list-section { margin: 22px 0; }
.mh-faq-form-section h2,
.mh-faq-list-section h2 {
    font-size: 17px;
    color: var(--mh-blue);
    margin: 0 0 14px;
}
.mh-faq-form { display: flex; flex-direction: column; gap: 14px; }
.mh-faq-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mh-faq-row label {
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-text);
}
.mh-faq-req { color: var(--mh-pink-dark); }
.mh-faq-row select,
.mh-faq-row input[type=text],
.mh-faq-row textarea {
    width: 100%;
    padding: 9px 12px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--mh-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.mh-faq-row select:focus,
.mh-faq-row input:focus,
.mh-faq-row textarea:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-faq-row textarea { resize: vertical; min-height: 100px; }
.mh-faq-row-checkbox { flex-direction: row; align-items: center; gap: 8px; }
.mh-faq-row-checkbox label { font-weight: normal; }

/* Zone suggestions (apparaît au change de la cat) */
.mh-faq-suggestions {
    background: #fff5d6;
    border: 1px dashed #f0a020;
    border-radius: var(--mh-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: #5a3d00;
}
.mh-faq-suggestions[hidden] { display: none; }
.mh-faq-suggestions-title { margin: 0 0 6px; }
.mh-faq-suggestions ul {
    margin: 0;
    padding-left: 22px;
}
.mh-faq-suggestions li { margin-bottom: 3px; }
.mh-faq-suggestions a {
    color: var(--mh-blue);
    text-decoration: none;
}
.mh-faq-suggestions a:hover { text-decoration: underline; }

.mh-faq-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mh-faq-sep {
    margin: 26px 0;
    border: 0;
    border-top: 1px solid var(--mh-border);
}

/* Filtre */
.mh-faq-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 14px;
}
.mh-faq-filter label {
    font-size: 13px;
    font-weight: bold;
}
.mh-faq-filter select {
    padding: 7px 10px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
}
.mh-faq-filter-reset {
    font-size: 12px;
    color: var(--mh-text-muted);
    text-decoration: none;
}
.mh-faq-filter-reset:hover { color: var(--mh-pink-dark); }

/* Liste FAQ */
.mh-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mh-faq-cat-title {
    margin: 16px 0 6px;
    font-size: 14px;
    color: var(--mh-blue);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--mh-border);
    padding-bottom: 4px;
}
.mh-faq-cat-title:first-child { margin-top: 0; }
.mh-faq-item {
    display: flex;
    gap: 12px;
    background: var(--mh-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 12px 14px;
    align-items: flex-start;
    transition: border-color .12s, opacity .25s, transform .25s, box-shadow .15s;
    position: relative;
}
.mh-faq-item:hover {
    border-color: var(--mh-blue-light);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.mh-faq-item:hover .mh-faq-drag-handle {
    opacity: 1;
}
.mh-faq-item.is-dragging {
    opacity: .4;
    transform: scale(.98);
}

/* Drag handle : visible au hover seulement (pas trop chargé visuellement) */
.mh-faq-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    margin: -12px 0 -12px -8px;   /* étend la zone de grab sur toute la card */
    padding: 12px 4px;
    color: var(--mh-text-muted);
    cursor: grab;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: -1px;
    user-select: none;
    opacity: .25;
    transition: opacity .15s;
    flex-shrink: 0;
}
.mh-faq-drag-handle:hover {
    color: var(--mh-blue);
    opacity: 1;
}
.mh-faq-drag-handle:active { cursor: grabbing; }
.mh-faq-item.is-inactive {
    opacity: .55;
    background: var(--mh-bg-soft);
}
.mh-faq-item-content {
    flex: 1;
    min-width: 0;
}
.mh-faq-item-q {
    font-weight: bold;
    color: var(--mh-text);
    margin-bottom: 4px;
    font-size: 14px;
}
.mh-faq-item-r {
    font-size: 13px;
    color: var(--mh-text-muted);
    line-height: 1.45;
}
.mh-faq-inactive-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    background: var(--mh-text-muted);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}
.mh-faq-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
}
.mh-faq-btn {
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    color: var(--mh-text);
    font-size: 14px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background .12s, color .12s;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mh-faq-btn:hover:not(:disabled) {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-faq-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.mh-faq-btn-edit:hover { background: #f0a020; border-color: #f0a020; color: #fff; }
.mh-faq-btn-delete:hover { background: #c53030; border-color: #c53030; color: #fff; }
.mh-faq-empty {
    padding: 24px;
    text-align: center;
    color: var(--mh-text-muted);
    font-style: italic;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius);
}

@media (max-width: 600px) {
    .mh-faq-item { flex-direction: column; }
    .mh-faq-item-actions { width: 100%; justify-content: flex-end; }
}

/* ===== Modal custom "Tout supprimer" ================================ */
.mh-photo-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mh-photo-confirm-modal[hidden] { display: none; }
.mh-photo-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    animation: mh-confirm-fade .15s ease-out;
}
.mh-photo-confirm-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--mh-radius-lg);
    padding: 24px 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
    border-top: 4px solid #c53030;
    animation: mh-confirm-pop .2s ease-out;
}
.mh-photo-confirm-box h3 {
    margin: 0 0 12px;
    color: #c53030;
    font-size: 19px;
}
.mh-photo-confirm-msg {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--mh-text);
    line-height: 1.5;
}
.mh-photo-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 20px;
}
.mh-photo-confirm-cancel,
.mh-photo-confirm-ok {
    padding: 10px 18px;
    border-radius: var(--mh-radius);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: 0;
    transition: background .12s, opacity .12s;
}
.mh-photo-confirm-cancel {
    background: var(--mh-bg-soft);
    color: var(--mh-text);
}
.mh-photo-confirm-cancel:hover { background: var(--mh-border); }
.mh-photo-confirm-ok {
    background: #c53030;
    color: #fff;
}
.mh-photo-confirm-ok:hover:not(:disabled) { background: #9a2424; }
/* État "Suppression…" pendant le submit (anti double-clic) */
.mh-photo-confirm-ok:disabled {
    background: #e0a0a0;
    cursor: wait;
    opacity: .7;
}

/* État "désactivé" de la zone d'upload (quota plein) */
.mh-photos-upload.is-disabled .mh-photos-upload-label.is-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}
.mh-photos-upload.is-disabled .mh-photos-upload-label.is-disabled:hover {
    background: #ccc;
    transform: none;
}

/* ===== Zone d'upload (refonte multi + bouton custom) ================= */
.mh-photos-upload-input {
    /* Input file caché — on déclenche via le label stylé */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.mh-photos-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--mh-blue);
    color: #fff;
    border-radius: var(--mh-radius);
    font-weight: bold;
    cursor: pointer;
    transition: background .15s, transform .12s;
}
.mh-photos-upload-label:hover {
    background: var(--mh-blue-dark);
    transform: translateY(-1px);
}
.mh-photos-upload-hint {
    color: var(--mh-text-muted);
    font-size: 13px;
}
/* Le .mh-auth-hint global a margin-top:-4px (collé à un input), mais ici
   il suit un bouton → on remet une vraie marge pour aérer. */
.mh-photos-upload .mh-auth-hint {
    margin-top: 12px;
}

/* ===== Hint reorder ================================================== */
.mh-photos-reorder-hint {
    background: #fffbea;
    border-left: 3px solid #f0a020;
    padding: 8px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #5a3d00;
    margin: 0 0 14px;
}
.mh-photo-drag-handle-icon {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(0,0,0,.08);
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

/* ===== Contrôles d'ordre (flèches ▲ ▼ + input numéro + drag handle) === */
.mh-photo-order-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    gap: 3px;
    align-items: center;
}
/* Boutons fléchés up/down — déplacent la card d'1 cran */
.mh-photo-order-arrow {
    width: 22px;
    height: 28px;
    padding: 0;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--mh-border);
    border-radius: 5px;
    color: var(--mh-blue);
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    line-height: 1;
    transition: background .12s, color .12s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mh-photo-order-arrow:hover:not(:disabled) {
    background: var(--mh-blue);
    color: #fff;
}
.mh-photo-order-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.mh-photo-order-input {
    width: 40px;
    height: 28px;
    padding: 0 4px;
    text-align: center;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--mh-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-blue);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    -moz-appearance: textfield;
}
.mh-photo-order-input::-webkit-outer-spin-button,
.mh-photo-order-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.mh-photo-order-input:focus {
    outline: none;
    border-color: var(--mh-blue);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(14,91,149,.25);
}
.mh-photo-drag-handle {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.9);
    border-radius: 6px;
    color: var(--mh-text-muted);
    font-family: monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    font-size: 14px;
    user-select: none;
}
.mh-photo-drag-handle:hover { color: var(--mh-blue); background: #fff; }
.mh-photo-drag-handle:active { cursor: grabbing; }

/* Adapter la position relative sur l'item pour le handle absolute */
.mh-photo-item {
    position: relative;
    transition: opacity .15s, transform .12s, box-shadow .15s;
}
.mh-photo-item.is-dragging {
    opacity: .4;
    transform: scale(.98);
}

/* ===== Select unité de logement (auto-save) ========================= */
.mh-photo-unit-form {
    display: flex;
}
.mh-photo-unit-select {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    background: #fff;
    font-size: 12px;
    color: var(--mh-text);
    cursor: pointer;
    transition: border-color .15s, background .3s;
}
.mh-photo-unit-select:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 2px rgba(14,91,149,.15);
}
.mh-photo-unit-select.is-saved {
    background: #e7f7ee;
    border-color: #2bbd76;
}

/* ===== Overlay drop full-page ======================================= */
.mh-photo-drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(14,91,149,.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.mh-photo-drop-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.mh-photo-drop-inner {
    text-align: center;
    color: #fff;
    padding: 60px 80px;
    border: 3px dashed rgba(255,255,255,.7);
    border-radius: 20px;
    background: rgba(255,255,255,.1);
}
.mh-photo-drop-icon {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 16px;
    animation: mh-drop-bounce 1.4s ease-in-out infinite;
}
@keyframes mh-drop-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.mh-photo-drop-label {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: .02em;
}

/* ===== Modal progression upload ===================================== */
.mh-photo-progress {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.mh-photo-progress.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.mh-photo-progress-box {
    background: #fff;
    border-radius: var(--mh-radius-lg);
    padding: 24px 28px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.mh-photo-progress-box h3 {
    margin: 0 0 14px;
    color: var(--mh-blue);
    font-size: 18px;
}
.mh-photo-progress-bar-wrap {
    height: 10px;
    background: var(--mh-bg-soft);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}
.mh-photo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--mh-blue), var(--mh-blue-light));
    width: 0%;
    transition: width .25s ease;
}
.mh-photo-progress-text {
    text-align: center;
    color: var(--mh-text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}
.mh-photo-progress-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 12px;
}
.mh-photo-progress-list li {
    padding: 4px 6px;
    border-bottom: 1px solid var(--mh-bg-soft);
}
.mh-photo-progress-list li.is-ok { color: #1b5e20; }
.mh-photo-progress-list li.is-ko { color: #c53030; }

/* ===========================================================================
   /modif/units  —  unités de logement (chambres / suites / gîtes)
   =========================================================================== */
.mh-units-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}
.mh-unit-item {
    display: flex;
    gap: 14px;
    background: var(--mh-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 12px 14px;
    align-items: flex-start;
    transition: border-color .12s, box-shadow .15s, opacity .2s;
}
.mh-unit-item:hover {
    border-color: var(--mh-blue-light);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.mh-unit-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: var(--mh-radius-sm);
    overflow: hidden;
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mh-unit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mh-unit-thumb-empty {
    font-size: 38px;
    color: var(--mh-text-muted);
    opacity: .5;
}
.mh-unit-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mh-unit-body h3 {
    margin: 0;
    font-size: 16px;
    color: var(--mh-text);
    line-height: 1.25;
}
.mh-unit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--mh-text-muted);
}
.mh-unit-meta span {
    background: var(--mh-bg-soft);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.mh-unit-links {
    font-size: 12.5px;
    color: var(--mh-text-muted);
    line-height: 1.4;
}
.mh-unit-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

/* Fieldset équipements dans la modal */
.mh-unit-equip-set {
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    padding: 10px 14px 12px;
    margin: 4px 0 0;
    background: var(--mh-bg-soft);
}
.mh-unit-equip-set legend {
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-blue);
    padding: 0 6px;
}
.mh-unit-equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px;
    margin-top: 6px;
}
.mh-unit-equip-grid .mh-presta-item {
    background: #fff;
    border: 1px solid var(--mh-border);
    padding: 6px 10px;
    border-radius: var(--mh-radius-sm);
    cursor: pointer;
    font-size: 13px;
}
.mh-unit-equip-grid .mh-presta-item:hover {
    background: var(--mh-bg-soft);
    border-color: var(--mh-blue-light);
}

@media (max-width: 600px) {
    .mh-unit-item { flex-direction: column; }
    .mh-unit-thumb { width: 100%; height: 180px; }
    .mh-unit-actions { width: 100%; justify-content: flex-end; }
    .mh-unit-equip-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   /modif/calendrier — calendrier de disponibilités (6 mois)
   =========================================================================== */
.mh-cal-scope {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
}
.mh-cal-scope label { font-weight: bold; font-size: 13px; color: var(--mh-text); }
.mh-cal-scope select {
    padding: 7px 10px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
}
.mh-cal-link {
    color: var(--mh-blue);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: var(--mh-radius-sm);
}
.mh-cal-link:hover { background: rgba(14,91,149,.08); text-decoration: underline; }

.mh-cal-export-box,
.mh-cal-ics-active {
    margin: 10px 0 16px;
    padding: 12px 16px;
    background: #fff5d6;
    border: 1px dashed #f0a020;
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
    color: #5a3d00;
    word-break: break-all;
}
.mh-cal-export-box p,
.mh-cal-ics-active p { margin: 4px 0; }
.mh-cal-export-hint { color: #7a5800; font-size: 12px; font-style: italic; }
.mh-cal-ics-remove {
    color: #c53030;
    text-decoration: none;
    margin-right: 4px;
}

.mh-cba-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--mh-text-muted);
    margin: 14px 0 10px;
    padding: 8px 12px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
    align-items: center;
}
.mh-cba-leg-libre, .mh-cba-leg-dispo, .mh-cba-leg-occupe, .mh-cba-leg-passe {
    white-space: nowrap;
    font-weight: 600;
}
.mh-cba-help { font-style: italic; color: var(--mh-text-muted); margin-left: auto; font-weight: normal; }

.mh-cba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}
.mh-cba-month {
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    padding: 10px;
}
.mh-cba-month-title {
    text-align: center;
    font-weight: 700;
    color: var(--mh-blue);
    font-size: 14px;
    margin-bottom: 6px;
    text-transform: capitalize;
    letter-spacing: .3px;
}
.mh-cba-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12.5px;
}
.mh-cba-table th {
    color: var(--mh-text-muted);
    font-weight: 600;
    padding: 4px 0;
    text-align: center;
}
.mh-cba-table td {
    text-align: center;
    padding: 6px 0;
    border-radius: 4px;
    cursor: default;
    user-select: none;
    transition: transform .08s, box-shadow .12s;
}
.mh-cba-empty { background: transparent; }
.mh-cba-cell.mh-cba-libre   { background: #fff;    border: 1px solid var(--mh-border); cursor: pointer; }
.mh-cba-cell.mh-cba-dispo   { background: #c8e6c9; color: #1b5e20; cursor: pointer; font-weight: 700; }
.mh-cba-cell.mh-cba-occupe  { background: #ffcdd2; color: #b71c1c; cursor: pointer; font-weight: 700; }
.mh-cba-cell.mh-cba-passe   { background: #ececec; color: #aaa; text-decoration: line-through; cursor: not-allowed; }
.mh-cba-cell.mh-cba-libre:hover,
.mh-cba-cell.mh-cba-dispo:hover,
.mh-cba-cell.mh-cba-occupe:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    z-index: 1;
    position: relative;
}

.mh-cal-actif-zone {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: var(--mh-radius-sm);
    background: var(--mh-bg-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}
.mh-cal-actif-on  { color: #2e7d32; font-weight: 600; }
.mh-cal-actif-off { color: #c53030; font-weight: 600; }
.mh-cal-btn-disable {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--mh-radius-sm);
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    font-size: 12px;
    transition: background .15s;
}
.mh-cal-btn-disable:hover { background: #c0392b; }

.mh-cal-fieldset {
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--mh-bg-soft);
}
.mh-cal-fieldset legend {
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-blue);
    padding: 0 6px;
}
.mh-cal-hint { font-size: 12px; color: var(--mh-text-muted); margin: 4px 0 10px; }
.mh-cal-form-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.mh-cal-form-inline input[type=url] {
    flex: 1;
    min-width: 220px;
    padding: 8px 10px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
}
.mh-cal-public-link {
    text-align: center;
    font-size: 13px;
    margin: 14px 0;
}
.mh-cal-public-link a { color: var(--mh-blue); text-decoration: none; }
.mh-cal-public-link a:hover { text-decoration: underline; }

/* === Panel latéral "Modification rapide par période" === */
#mh-cal-panel-toggle {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 30px;
    padding: 0;
    border-radius: 0;
    background: #6c757d;
    color: #fff;
    border: none;
    box-shadow: -2px 0 8px rgba(0,0,0,.15);
    z-index: 1090;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: background .2s, width .2s;
    line-height: 1.2;
    text-transform: uppercase;
}
#mh-cal-panel-toggle:hover { background: #495057; width: 34px; }
#mh-cal-panel-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1099;
}
#mh-cal-panel-overlay[hidden] { display: none; }
#mh-cal-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 88%;
    max-width: 380px;
    margin: 0;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: -6px 0 24px rgba(0,0,0,.18);
    z-index: 1100;
    overflow-y: auto;
    padding: 22px;
    box-sizing: border-box;
}
#mh-cal-panel[hidden] { display: none; }
#mh-cal-panel h2 {
    font-size: 16px;
    color: var(--mh-blue);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mh-bg-soft);
}
#mh-cal-panel h3 {
    font-size: 14px;
    color: var(--mh-text);
    margin: 18px 0 8px;
}
.mh-cal-panel-close {
    position: absolute;
    top: 10px; right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
}
.mh-cal-panel-close:hover { background: var(--mh-bg-soft); color: #222; }
.mh-cal-range-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mh-cal-range-row label { font-weight: bold; font-size: 13px; min-width: 60px; }
.mh-cal-range-row input[type=date] {
    flex: 1;
    margin-left: 10px;
    padding: 8px 10px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
}
.mh-cal-range-row input[type=date]:disabled {
    background: var(--mh-bg-soft);
    color: var(--mh-text-muted);
    cursor: not-allowed;
}
.mh-cal-range-radio {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.mh-cal-range-radio label { cursor: pointer; }
.mh-cal-occupied-list ul {
    list-style: none;
    padding: 0; margin: 0;
    max-height: 280px;
    overflow-y: auto;
    font-size: 12px;
}
.mh-cal-occupied-list li {
    padding: 4px 6px;
    border-bottom: 1px solid var(--mh-bg-soft);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.mh-cal-occ-date { color: var(--mh-blue); font-weight: 600; }
.mh-cal-occ-nom  { color: var(--mh-text-muted); }

@media (max-width: 600px) {
    .mh-cba-grid { grid-template-columns: 1fr; }
    .mh-cal-actif-zone { flex-direction: column; align-items: flex-start; }
    .mh-cal-btn-disable { margin-left: 0; width: 100%; }
    #mh-cal-panel-toggle { width: 26px; font-size: 10px; }
}

/* ===========================================================================
   /modif/annonce — descriptif multilingue
   =========================================================================== */
.mh-ann-langnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 18px;
    padding: 8px 10px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
}
.mh-ann-lang {
    padding: 6px 12px;
    border-radius: var(--mh-radius-sm);
    text-decoration: none;
    color: var(--mh-blue);
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--mh-border);
    transition: background .12s, color .12s;
}
.mh-ann-lang:hover { background: var(--mh-blue-light); color: #fff; }
.mh-ann-lang.is-active {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-ann-form { display: flex; flex-direction: column; gap: 14px; }
.mh-ann-row { display: flex; flex-direction: column; gap: 4px; }
.mh-ann-row label {
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-text);
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.mh-ann-row label small {
    font-weight: normal;
    font-size: 11px;
    color: var(--mh-text-muted);
}
.mh-ann-counter {
    margin-left: auto;
    font-weight: normal;
    font-size: 11px;
    color: var(--mh-text-muted);
}
.mh-ann-row input[type=text],
.mh-ann-row input[type=url],
.mh-ann-row textarea {
    width: 100%;
    padding: 9px 12px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--mh-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.mh-ann-row input:focus,
.mh-ann-row textarea:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-ann-row textarea { resize: vertical; min-height: 90px; }
.mh-ann-link-test {
    font-size: 12px;
    color: var(--mh-blue);
    text-decoration: none;
    margin-top: 4px;
}
.mh-ann-link-test:hover { text-decoration: underline; }
.mh-ann-actions { margin-top: 8px; }

/* ===========================================================================
   /modif/proprio — photo + texte de présentation
   =========================================================================== */
.mh-pp-section {
    margin: 18px 0;
    padding: 16px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
}
.mh-pp-section h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--mh-blue);
}
.mh-pp-photo-current {
    text-align: center;
    background: #fff;
    border: 1px solid var(--mh-border);
    padding: 12px;
    border-radius: var(--mh-radius-sm);
}
.mh-pp-photo-current img {
    max-width: 100%;
    max-height: 320px;
    border-radius: var(--mh-radius-sm);
    display: block;
    margin: 0 auto 12px;
}
.mh-pp-photo-del {
    background: #fff;
    border: 1px solid #c53030;
    color: #c53030;
    padding: 7px 14px;
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.mh-pp-photo-del:hover { background: #c53030; color: #fff; }
.mh-pp-row { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.mh-pp-row label { font-size: 13px; font-weight: bold; color: var(--mh-text); }
.mh-pp-row input[type=text],
.mh-pp-row input[type=file] {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}
#mh-pp-texte {
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}
.mh-pp-actions { margin-top: 10px; text-align: right; }

/* ===========================================================================
   /modif/desactiver — choix de désactivation
   =========================================================================== */
.mh-de-choix {
    margin: 14px 0;
    padding: 16px 18px;
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
}
.mh-de-choix h2 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--mh-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mh-de-badge {
    background: var(--mh-blue);
    color: #fff;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mh-de-choix p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--mh-text);
    line-height: 1.5;
}
.mh-de-btn { font-size: 13px; }
.mh-de-vente-fields {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}
.mh-de-vente-fields > div { flex: 1; min-width: 140px; }
.mh-de-vente-fields label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: var(--mh-text);
    margin-bottom: 4px;
}
.mh-de-vente-fields input {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
    box-sizing: border-box;
}
.mh-de-warning {
    margin-top: 18px;
    padding: 10px 14px;
    background: #fff5d6;
    border: 1px dashed #f0a020;
    border-radius: var(--mh-radius-sm);
    font-size: 12.5px;
    color: #5a3d00;
    text-align: center;
}

/* ===========================================================================
   /modif/mon-annonce
   =========================================================================== */
.mh-monann-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    margin: 18px 0;
}
.mh-monann-info {
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.7;
}
.mh-monann-info p { margin: 0 0 4px; }
.mh-monann-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mh-monann-on  { color: #2e7d32; font-weight: 600; }
.mh-monann-off { color: #c53030; font-weight: 600; }
@media (max-width: 600px) {
    .mh-monann-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   /modif/facturation
   =========================================================================== */
.mh-fact-section {
    margin: 18px 0;
    padding: 16px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
}
.mh-fact-section h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--mh-blue);
}
.mh-fact-list { list-style: none; padding: 0; margin: 0; }
.mh-fact-row {
    display: grid;
    grid-template-columns: 90px 90px 110px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    margin-bottom: 6px;
    font-size: 13px;
}
.mh-fact-date  { font-weight: 600; color: var(--mh-text); }
.mh-fact-type  { color: var(--mh-text-muted); font-size: 12px; }
.mh-fact-mt    { font-weight: 700; color: var(--mh-blue); }
.mh-fact-prods { font-size: 11.5px; color: var(--mh-text-muted); }
.mh-fact-link a {
    color: var(--mh-blue);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}
.mh-fact-link a:hover { text-decoration: underline; }
.mh-fact-paypal {
    grid-template-columns: 120px 1fr 110px auto auto;
    background: #f7fbff;
    border-color: #b8d6f0;
}
.mh-fact-pid { font-family: monospace; font-size: 11px; word-break: break-all; }
.mh-fact-etat { font-size: 12px; }
.mh-fact-etat-actif  { color: #2e7d32; }
.mh-fact-etat-annule { color: #999; }
.mh-fact-cancel-btn {
    background: #fff;
    border: 1px solid #c53030;
    color: #c53030;
    padding: 5px 12px;
    border-radius: var(--mh-radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.mh-fact-cancel-btn:hover { background: #c53030; color: #fff; }
.mh-fact-faq {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--mh-text-muted);
}
.mh-fact-faq summary {
    cursor: pointer;
    color: var(--mh-blue);
    font-weight: 600;
}
.mh-fact-faq p { margin: 8px 0; }
@media (max-width: 700px) {
    .mh-fact-row,
    .mh-fact-paypal {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ===========================================================================
   /modif/mdp — email + mot de passe
   =========================================================================== */
.mh-auth-info {
    background: #fff5d6;
    border-left: 3px solid #f0a020;
    padding: 10px 14px;
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
    color: #5a3d00;
    margin: 12px 0;
}
.mh-mdp-section {
    margin: 18px 0;
    padding: 16px 18px;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
}
.mh-mdp-section h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--mh-blue);
}
.mh-mdp-section label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: var(--mh-text);
    margin: 8px 0 4px;
}
.mh-mdp-section input[type=email],
.mh-mdp-section input[type=password],
.mh-mdp-section input[type=text] {
    width: 100%;
    padding: 9px 38px 9px 12px;
    background: #fff;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}
.mh-mdp-section input[type=email] { padding-right: 12px; }
.mh-mdp-pwd-wrap { position: relative; }
.mh-mdp-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: var(--mh-text-muted);
    cursor: pointer;
    padding: 4px 6px;
}
.mh-mdp-entropy { margin: 10px 0; }
.mh-mdp-entropy-bar {
    height: 6px;
    background: #ddd;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}
.mh-mdp-entropy-bar > div {
    height: 100%;
    width: 0%;
    background: #ccc;
    transition: width .3s, background .3s;
    border-radius: 99px;
}
#mh-mdp-entropy-label {
    font-size: 12px;
    color: var(--mh-text-muted);
    margin: 4px 0 6px;
}
.mh-mdp-crit {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 12px;
}
.mh-mdp-crit li { color: #aaa; }
.mh-mdp-crit li.is-ok { color: #2e7d32; font-weight: 600; }
.mh-mdp-crit li.is-ko { color: #aaa; font-weight: normal; }
.mh-mdp-confirm-status { font-size: 12px; margin: 4px 0 0; }
.mh-mdp-confirm-status.is-ok { color: #2e7d32; font-weight: 600; }
.mh-mdp-confirm-status.is-ko { color: #c53030; font-weight: 600; }
.mh-mdp-actions { margin-top: 14px; text-align: right; }

/* ===========================================================================
   /modif/promotions
   =========================================================================== */
.mh-promo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.mh-promo-item {
    display: flex;
    gap: 12px;
    background: var(--mh-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 12px 14px;
    align-items: flex-start;
    transition: border-color .12s, box-shadow .15s, opacity .2s;
}
.mh-promo-item:hover {
    border-color: var(--mh-blue-light);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.mh-promo-body { flex: 1; min-width: 0; }
.mh-promo-body h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--mh-text);
}
.mh-promo-meta {
    display: flex;
    gap: 12px;
    font-size: 12.5px;
    color: var(--mh-text-muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.mh-promo-meta span {
    background: var(--mh-bg-soft);
    padding: 2px 9px;
    border-radius: 12px;
    white-space: nowrap;
}
.mh-promo-meta span:first-child {
    background: var(--mh-blue);
    color: #fff;
    font-weight: 700;
}
.mh-promo-des {
    margin: 0;
    font-size: 13px;
    color: var(--mh-text);
    line-height: 1.45;
}
.mh-promo-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}
@media (max-width: 600px) {
    .mh-promo-item { flex-direction: column; }
    .mh-promo-actions { width: 100%; justify-content: flex-end; }
}

/* ===========================================================================
   /modif/stats
   =========================================================================== */
.mh-stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0 22px;
}
.mh-stat-tile {
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
    padding: 14px 18px;
    text-align: center;
}
.mh-stat-tile-v {
    font-size: 26px;
    font-weight: 700;
    color: var(--mh-blue);
    line-height: 1.1;
}
.mh-stat-tile-l {
    font-size: 12px;
    color: var(--mh-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.mh-stat-h2 {
    font-size: 15px;
    color: var(--mh-blue);
    margin: 18px 0 10px;
}
.mh-stat-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 220px;
    padding: 12px 12px 0;
    background: var(--mh-bg-soft);
    border-radius: var(--mh-radius-sm);
    overflow-x: auto;
}
.mh-stat-bar-wrap {
    flex: 1 0 auto;
    min-width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.mh-stat-bar {
    width: 100%;
    background: linear-gradient(to top, var(--mh-blue) 0%, var(--mh-blue-light) 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 4px;
    transition: opacity .15s;
    cursor: help;
}
.mh-stat-bar:hover { opacity: .85; }
.mh-stat-bar-v {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--mh-text);
    white-space: nowrap;
}
.mh-stat-bar-label {
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--mh-text-muted);
    white-space: nowrap;
    text-transform: capitalize;
}
.mh-stat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}
.mh-stat-table th,
.mh-stat-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--mh-border);
}
.mh-stat-table th {
    background: var(--mh-bg-soft);
    font-size: 12px;
    color: var(--mh-blue);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.mh-stat-table tr:hover td { background: var(--mh-bg-soft); }

/* ===========================================================================
   /modif/demandes — demandes de renseignement / réservation
   =========================================================================== */
.mh-dem-unread-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: #c53030;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}
.mh-dem-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}
.mh-dem-filter-btn {
    padding: 7px 14px;
    background: var(--mh-bg-soft);
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    color: var(--mh-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.mh-dem-filter-btn:hover { background: var(--mh-blue-light); color: #fff; border-color: var(--mh-blue-light); }
.mh-dem-filter-btn.is-active {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-dem-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mh-dem-item {
    background: var(--mh-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 14px 16px;
    transition: border-color .12s, box-shadow .15s, opacity .2s;
}
.mh-dem-item.is-unread {
    border-left: 4px solid #c53030;
    background: #fffaf7;
}
.mh-dem-item.is-read {
    opacity: .78;
}
.mh-dem-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.mh-dem-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mh-bg-soft);
}
.mh-dem-date {
    font-weight: 600;
    color: var(--mh-text);
    font-size: 13px;
}
.mh-dem-type-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.mh-dem-type-1 { background: #e3f2fd; color: #0e5b95; }
.mh-dem-type-2 { background: #e8f5e9; color: #2e7d32; }
.mh-dem-new-badge {
    background: #c53030;
    color: #fff;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}
.mh-dem-head-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}
.mh-dem-mark,
.mh-dem-archive,
.mh-dem-unarchive {
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    color: var(--mh-text);
    padding: 4px 10px;
    border-radius: var(--mh-radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.mh-dem-mark:hover {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-dem-archive:hover {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}
.mh-dem-unarchive:hover {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-dem-arch-badge {
    background: #6c757d;
    color: #fff;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}
.mh-dem-item.is-archived {
    opacity: .65;
    background: var(--mh-bg-soft);
    border-left: 4px solid #adb5bd;
}

/* === Bouton "Répondre" (vert pour différencier des autres actions) === */
.mh-dem-reply-btn {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #1b5e20;
    padding: 4px 10px;
    border-radius: var(--mh-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.mh-dem-reply-btn:hover {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

/* === Historique des échanges (thread) === */
.mh-dem-thread {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mh-dem-thread:empty { display: none; }
.mh-dem-reply {
    padding: 10px 14px;
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
    line-height: 1.5;
}
.mh-dem-reply-proprio {
    background: #e3f2fd;
    border-left: 3px solid var(--mh-blue);
    align-self: flex-end;
    max-width: 85%;
}
.mh-dem-reply-demandeur {
    background: var(--mh-bg-soft);
    border-left: 3px solid #adb5bd;
    align-self: flex-start;
    max-width: 85%;
}
.mh-dem-reply-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.5px;
    color: var(--mh-text-muted);
    margin-bottom: 4px;
}
.mh-dem-reply-from { font-weight: 700; color: var(--mh-text); }
.mh-dem-reply-msg {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--mh-text);
}

/* === Formulaire de réponse === */
.mh-dem-reply-form {
    margin-top: 10px;
    background: #fff;
    border: 1.5px solid var(--mh-blue-light);
    border-radius: var(--mh-radius-sm);
    padding: 10px 12px;
}
.mh-dem-reply-textarea {
    width: 100%;
    min-height: 100px;
    padding: 9px 12px;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    font-family: inherit;
    font-size: 13.5px;
    box-sizing: border-box;
    resize: vertical;
}
.mh-dem-reply-textarea:focus {
    outline: none;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-dem-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.mh-dem-reply-cancel {
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    color: var(--mh-text);
    padding: 7px 14px;
    border-radius: var(--mh-radius-sm);
    font-size: 13px;
    cursor: pointer;
}
.mh-dem-reply-cancel:hover { background: var(--mh-border); }

/* ===========================================================================
   /modif/compte — Dashboard espace propriétaire (layout principal)
   =========================================================================== */
.mh-compte-page {
    background: linear-gradient(180deg, #f7fafd 0%, var(--mh-bg) 100%);
    min-height: calc(100vh - 60px);
    padding: 28px 20px 48px;
}
.mh-compte-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* === HEADER : titre + n° annonce + actions discrètes === */
.mh-compte-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: #fff;
    border-radius: var(--mh-radius);
    box-shadow: 0 2px 10px rgba(14,91,149,.06);
    flex-wrap: wrap;
}
.mh-compte-hero-text h1 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--mh-text);
    font-weight: 700;
}
.mh-compte-hero-sub {
    margin: 0;
    font-size: 14px;
    color: var(--mh-text-muted);
}
.mh-compte-hero-link {
    color: var(--mh-blue);
    text-decoration: none;
    font-weight: 600;
}
.mh-compte-hero-link:hover { text-decoration: underline; }
.mh-compte-hero-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mh-compte-tinybtn {
    padding: 7px 14px;
    background: var(--mh-bg-soft);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    color: var(--mh-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .12s, color .12s, border-color .12s;
}
.mh-compte-tinybtn:hover {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
}
.mh-compte-tinybtn-logout:hover {
    background: #c53030;
    color: #fff;
    border-color: #c53030;
}

/* === INFORMATIONS SUR MON ANNONCE (dates d'expiration des options) ===
   Réutilise .mh-compte-group (carte blanche + header bleu) — voir plus bas.
   On ajoute juste la grille interne. */

/* Bandeau "Mode actuel" affiché au-dessus du tableau de dates.
   Variantes de couleur selon star + alaune. */
.mh-compte-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin: 0 0 16px;
    border-radius: 6px;
    border-left: 4px solid #6b7280;
    background: #f3f4f6;
    color: #374151;
}
.mh-compte-mode-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mh-compte-mode-val {
    font-size: 15px;
    color: #1f2937;
    font-weight: 700;
}
/* Variantes par niveau d'annonce */
.mh-compte-mode.is-standard {
    background: #f3f4f6;
    border-left-color: #6b7280;
}
.mh-compte-mode.is-basic {
    background: #fef3c7;
    border-left-color: #d4a015;
}
.mh-compte-mode.is-basic .mh-compte-mode-val { color: #78350f; }
.mh-compte-mode.is-spon {
    background: #dbeafe;
    border-left-color: #2563eb;
}
.mh-compte-mode.is-spon .mh-compte-mode-val { color: #1e40af; }
.mh-compte-mode.is-firs {
    background: #fce7f3;
    border-left-color: #db2777;
}
.mh-compte-mode.is-firs .mh-compte-mode-val { color: #831843; }
/* "À la Une" en plus : ombre dorée + petit accent */
.mh-compte-mode.has-alau {
    box-shadow: 0 0 0 1px #f59e0b inset, 0 2px 8px rgba(245, 158, 11, .15);
}
.mh-compte-mode.has-alau::after {
    content: '⭐';
    margin-left: auto;
    font-size: 18px;
    line-height: 1;
}

.mh-compte-infos-table {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 24px;
    row-gap: 4px;
    align-items: center;
}
.mh-compte-infos-row {
    display: contents;
}
.mh-compte-infos-row > * {
    padding: 10px 0;
    border-bottom: 1px solid var(--mh-bg-soft);
}
.mh-compte-infos-row:last-child > * { border-bottom: none; }
.mh-compte-infos-label {
    color: var(--mh-blue);
    font-weight: 700;
    font-size: 14px;
}
.mh-compte-infos-date {
    color: var(--mh-text);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}
.mh-compte-infos-illimite {
    color: #2ea44f;
    font-weight: 700;
}
.mh-compte-infos-warn {
    color: #c53030;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.mh-compte-infos-renew {
    color: var(--mh-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid var(--mh-bg-soft);
    border-radius: var(--mh-radius);
    background: #fff;
    transition: background .15s, border-color .15s, color .15s;
}
.mh-compte-infos-renew:hover {
    background: var(--mh-blue);
    color: #fff;
    border-color: var(--mh-blue);
    text-decoration: none;
}
.mh-compte-infos-renew.is-disabled {
    visibility: hidden;
    border: none;
    background: none;
}
.mh-compte-infos-renew-cta {
    background: #c53030;
    color: #fff;
    border-color: #c53030;
}
.mh-compte-infos-renew-cta:hover {
    background: #9b1c1c;
    color: #fff;
    border-color: #9b1c1c;
}
.mh-compte-infos-row.is-inactive .mh-compte-infos-label {
    color: #c53030;
}
@media (max-width: 600px) {
    .mh-compte-infos-table {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .mh-compte-infos-row > * {
        padding: 4px 0;
        border-bottom: none;
    }
    .mh-compte-infos-row {
        padding: 10px 0;
        border-bottom: 1px solid var(--mh-bg-soft);
    }
    .mh-compte-infos-row:last-child { border-bottom: none; }
    .mh-compte-infos-renew { justify-self: start; margin-top: 4px; }
}

/* === ASSISTANT INTELLIGENT (carte mise en valeur) === */
.mh-compte-finder {
    background: #fff;
    border-radius: var(--mh-radius);
    box-shadow: 0 2px 10px rgba(14,91,149,.06);
    padding: 22px 26px;
    position: relative;
}
.mh-compte-finder-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--mh-blue);
    margin-bottom: 10px;
}
.mh-compte-finder-input {
    width: 100%;
    padding: 13px 18px;
    background: var(--mh-bg-soft);
    border: 2px solid transparent;
    border-radius: var(--mh-radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--mh-text);
    box-sizing: border-box;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.mh-compte-finder-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--mh-blue);
    box-shadow: 0 0 0 3px rgba(14,91,149,.15);
}
.mh-compte-finder-input::placeholder {
    color: var(--mh-text-muted);
    font-style: italic;
    font-size: 14px;
}
.mh-compte-finder-results {
    position: absolute;
    top: 100%;
    left: 26px;
    right: 26px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    overflow: hidden;
    z-index: 50;
    animation: mh-finder-pop .15s ease-out;
}
.mh-compte-finder-results[hidden] { display: none; }
@keyframes mh-finder-pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mh-compte-finder-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mh-bg-soft);
    text-decoration: none;
    color: var(--mh-text);
    transition: background .12s;
}
.mh-compte-finder-result:last-child { border-bottom: none; }
.mh-compte-finder-result:hover,
.mh-compte-finder-result:focus {
    background: var(--mh-bg-soft);
    outline: none;
}
.mh-compte-finder-result.is-top {
    background: linear-gradient(to right, rgba(14,91,149,.07), transparent);
    border-left: 3px solid var(--mh-blue);
}
.mh-compte-finder-result.is-top:hover {
    background: linear-gradient(to right, rgba(14,91,149,.13), var(--mh-bg-soft));
}
.mh-compte-finder-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
.mh-compte-finder-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mh-compte-finder-text strong {
    font-size: 14.5px;
    color: var(--mh-text);
    font-weight: 700;
}
.mh-compte-finder-desc {
    font-size: 12.5px;
    color: var(--mh-text-muted);
    line-height: 1.3;
}
.mh-compte-finder-arrow {
    color: var(--mh-blue-light);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform .15s;
}
.mh-compte-finder-result:hover .mh-compte-finder-arrow {
    transform: translateX(4px);
    color: var(--mh-blue);
}
.mh-compte-finder-empty {
    padding: 16px;
    color: var(--mh-text-muted);
    font-style: italic;
    font-size: 13.5px;
    text-align: center;
}

/* === GROUPES de pages === */
.mh-compte-group {
    background: #fff;
    border-radius: var(--mh-radius);
    box-shadow: 0 2px 10px rgba(14,91,149,.06);
    padding: 22px 26px 26px;
}
.mh-compte-group-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mh-bg-soft);
}
.mh-compte-group-head h2 {
    margin: 0 0 3px;
    font-size: 17px;
    color: var(--mh-blue);
    font-weight: 700;
}
.mh-compte-group-head p {
    margin: 0;
    font-size: 13px;
    color: var(--mh-text-muted);
}

/* === Grille de cards par groupe === */
.mh-compte-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.mh-compte-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--mh-bg-soft);
    border: 1.5px solid transparent;
    border-radius: var(--mh-radius-sm);
    text-decoration: none;
    color: var(--mh-text);
    transition: background .12s, border-color .12s, transform .12s, box-shadow .15s;
}
.mh-compte-card:hover {
    background: #fff;
    border-color: var(--mh-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14,91,149,.12);
}
.mh-compte-card-icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.mh-compte-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mh-compte-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--mh-text);
    line-height: 1.25;
}
.mh-compte-card-desc {
    font-size: 12px;
    color: var(--mh-text-muted);
    line-height: 1.35;
}
.mh-compte-card-arrow {
    flex-shrink: 0;
    color: var(--mh-blue-light);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s, transform .15s, color .15s;
}
.mh-compte-card:hover .mh-compte-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--mh-blue);
}

/* Variante "danger" pour la card désactiver */
.mh-compte-card-danger {
    background: #fff5f5;
}
.mh-compte-card-danger .mh-compte-card-icon {
    background: #ffe5e5;
}
.mh-compte-card-danger:hover {
    border-color: #c53030;
    box-shadow: 0 6px 18px rgba(197,48,48,.15);
}
.mh-compte-card-danger:hover .mh-compte-card-arrow { color: #c53030; }

/* === Responsive === */
@media (max-width: 700px) {
    .mh-compte-page { padding: 18px 14px 36px; }
    .mh-compte-wrap { gap: 16px; }
    .mh-compte-hero,
    .mh-compte-finder,
    .mh-compte-group { padding: 18px 16px; }
    .mh-compte-hero { flex-direction: column; align-items: flex-start; }
    .mh-compte-hero-actions { width: 100%; }
    .mh-compte-tinybtn { flex: 1; text-align: center; }
    .mh-compte-cards { grid-template-columns: 1fr; }
    .mh-compte-finder-results { left: 16px; right: 16px; }
}
.mh-dem-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}
.mh-dem-from {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}
.mh-dem-link {
    color: var(--mh-blue);
    text-decoration: none;
    font-size: 13px;
}
.mh-dem-link:hover { text-decoration: underline; }
.mh-dem-stay {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--mh-text-muted);
}
.mh-dem-stay span {
    background: var(--mh-bg-soft);
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}
.mh-dem-msg-content {
    background: var(--mh-bg-soft);
    border-left: 3px solid var(--mh-blue-light);
    padding: 10px 14px;
    border-radius: var(--mh-radius-sm);
    font-style: italic;
    color: var(--mh-text);
    /* pre-wrap : on respecte les retours à la ligne du texte original
       (les <br /> ont été convertis en \n côté vue, doublons collapsés). */
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 13.5px;
    max-height: 320px;
    overflow-y: auto;
}
.mh-dem-meta {
    font-size: 12px;
    color: var(--mh-text-muted);
}
@media (max-width: 600px) {
    .mh-dem-head { flex-wrap: wrap; }
    .mh-dem-head-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}

