/*
 * Domus Suisse - espace CRM (accueil particulier, espace pro, administration).
 * Feuille commune chargee sur toutes les pages du tableau de bord
 * (module domus-core/modules/domus-dashboard-spaces.php).
 * Valeurs : systeme de design "Domus Suisse - Teal institutionnel".
 * Audit UI/UX du 29/10/2026 : remplace les trois blocs <style> des gabarits.
 */

.houzez-dashboard-body {
	--ds-bg: #F8F8F8;
	--ds-surface: #FFFFFF;
	--ds-tint: #F1F5F6;
	--ds-ink: #214847;
	--ds-ink-2: #51686A;          /* texte secondaire : 5,9:1 sur blanc */
	--ds-accent: #1E4D59;
	--ds-accent-deep: #163A46;
	--ds-accent-soft: #4C90A8;    /* anneau de focus */
	--ds-line: rgba(30, 77, 89, 0.14);
	--ds-line-strong: #6F8788;    /* contour d'element graphique : 3,8:1 */
	--ds-ok: #1E6B34;   --ds-ok-bg: #E6F4EA;
	--ds-warn: #8A5300; --ds-warn-bg: #FFF4E0;
	--ds-bad: #A11D1D;  --ds-bad-bg: #FDE8E8;
	--ds-r: 6px;
	--ds-r-sm: 4px;
	--ds-tap: 36px;
}
@media (max-width: 767px) {
	.houzez-dashboard-body { --ds-tap: 44px; }
}

.houzez-dashboard-body ::selection { background: rgba(76, 144, 168, 0.25); color: inherit; }

/* Lien d'evitement */
.domus-skip {
	position: absolute; left: 8px; top: -60px; z-index: 100000;
	background: var(--ds-accent); color: #fff; padding: 10px 16px; border-radius: var(--ds-r);
	font-weight: 600; text-decoration: none;
}
.domus-skip:focus { top: 8px; color: #fff; }

/* Focus visible partout dans le tableau de bord */
.houzez-dashboard-body a:focus-visible,
.houzez-dashboard-body button:focus-visible,
.houzez-dashboard-body summary:focus-visible,
.houzez-dashboard-body input:focus-visible,
.houzez-dashboard-body select:focus-visible,
.houzez-dashboard-body textarea:focus-visible,
.houzez-dashboard-body .btn:focus-visible {
	outline: 2px solid var(--ds-accent-soft);
	outline-offset: 2px;
	box-shadow: none;
}

/* Coquille : boutons menu sans habillage navigateur */
.houzez-dashboard-body button.menu-btn,
.houzez-dashboard-body button.crose-btn {
	background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.domus-dash-nav a.active { font-weight: 600; }

/* Titre de page */
.houzez-dashboard-body .heading-text h1 {
	font-family: Raleway, sans-serif; font-weight: 600; font-size: 1.5rem; line-height: 1.2;
	color: var(--ds-accent); margin: 0;
}

/* ---------- Boutons ---------- */
.houzez-dashboard-body .btn { border-radius: var(--ds-r); box-shadow: none; }
.houzez-dashboard-body .dashboard-content .btn,
.houzez-dashboard-body .dashboard-content .das-toggle > summary {
	min-height: var(--ds-tap);
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.houzez-dashboard-body .btn-primary { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }
.houzez-dashboard-body .btn-primary:hover,
.houzez-dashboard-body .btn-primary:focus { background: var(--ds-accent-deep); border-color: var(--ds-accent-deep); color: #fff; }
/* Bouton secondaire : contour (le blanc sur #4C90A8 ne passait pas, 3,58:1) */
.houzez-dashboard-body .btn-secondary,
.houzez-dashboard-body .btn-secondary:focus,
.houzez-dashboard-body .btn-secondary:not(:disabled):not(.disabled):active {
	background: var(--ds-surface); border: 1px solid var(--ds-accent); color: var(--ds-accent);
}
.houzez-dashboard-body .btn-secondary:hover { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }
.houzez-dashboard-body .btn-danger { background: var(--ds-bad); border-color: var(--ds-bad); color: #fff; }
.houzez-dashboard-body .btn-danger:hover { background: #7f1616; border-color: #7f1616; color: #fff; }
.houzez-dashboard-body .btn-outline-danger { background: var(--ds-surface); border: 1px solid var(--ds-bad); color: var(--ds-bad); }
.houzez-dashboard-body .btn-outline-danger:hover { background: var(--ds-bad); color: #fff; }

/* ---------- Surfaces communes (particulier dus-, pro dps-, administration das-) ---------- */
.dus-card, .dps-card, .das-block, .dus-listing, .dps-req, .das-kpi {
	background: var(--ds-surface);
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	color: var(--ds-ink);
}
.dus-card, .dps-card, .dus-listing, .dps-req { padding: 16px; }
.das-block { padding: 16px; margin-bottom: 32px; }
.das-kpi { padding: 16px; }
.dus-listing, .dps-req { margin-bottom: 16px; }
.dus-card h2, .dps-card h2, .das-block h2, .dus-h, .dps-h {
	font-family: Raleway, sans-serif; font-weight: 600; color: var(--ds-accent);
	font-size: 1.0625rem; line-height: 1.25; margin: 0 0 8px;
}
.dus-h, .dps-h { font-size: 1.125rem; margin: 0 0 12px; }
.das-block h2 { font-size: 1.125rem; margin-bottom: 4px; }
.dus-listing h3, .dps-req-name { font-family: Raleway, sans-serif; font-weight: 600; font-size: 1rem; color: var(--ds-ink); margin: 0 0 4px; }
.dus-card p { margin: 0 0 8px; }
.dus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 8px; }
.dus-section { margin-bottom: 32px; }

.dus-muted, .dps-muted, .das-muted, .das-empty { color: var(--ds-ink-2); font-size: 0.8125rem; }
.das-block > p.das-muted { margin: 0 0 16px; }
.das-empty { margin: 0; font-size: 0.875rem; }

.dus-big, .dps-big, .das-kpi b {
	font-family: Raleway, sans-serif; font-weight: 600; color: var(--ds-accent);
	font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.das-kpi b { display: block; }
.dps-big-text { font-size: 1.125rem; }
.dps-delta { font-size: 0.8125rem; margin-left: 6px; font-family: Inter, sans-serif; }
.dps-up { color: var(--ds-ok); }
.dps-down { color: var(--ds-bad); }

/* Icone d'etat dans un titre (remplace les filets colores a gauche) */
.ds-ico { margin-right: 6px; vertical-align: -1px; }
.ds-ico.ok { color: var(--ds-ok); }
.ds-ico.warn { color: var(--ds-warn); }
.ds-ico.bad { color: var(--ds-bad); }

/* Listes */
.dus-list { list-style: none; margin: 0; padding: 0; }
.dus-list > li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ds-line); }
.dus-list > li:last-child { border-bottom: 0; }
.dus-list .dus-sub { display: block; }

/* Etiquettes de statut */
.dus-tag, .dps-tag, .das-score {
	display: inline-block; padding: 2px 8px; border-radius: var(--ds-r-sm);
	font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
	background: var(--ds-tint); color: var(--ds-accent); font-variant-numeric: tabular-nums;
}
.dus-tag.off, .dps-tag.off, .das-score.hi { background: var(--ds-bad-bg); color: var(--ds-bad); }
.dps-tag.new, .das-score.mid { background: var(--ds-warn-bg); color: var(--ds-warn); }
.dps-tag.on, .das-score.lo { background: var(--ds-ok-bg); color: var(--ds-ok); }
.das-badge, .ds-count {
	display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: var(--ds-r-sm);
	background: var(--ds-warn); color: #fff; font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.6;
}

/* Notes d'etat */
.dus-note { background: var(--ds-warn-bg); color: var(--ds-ink); border-radius: var(--ds-r); padding: 10px 12px; margin: 8px 0; font-size: 0.875rem; }
.dus-note.bad { background: var(--ds-bad-bg); }
.dps-todo { list-style: none; margin: 0 0 32px; padding: 0; }
.dps-todo li {
	background: var(--ds-warn-bg); border-radius: var(--ds-r); padding: 12px 14px; margin-bottom: 8px;
	display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.dps-todo li.ok { background: var(--ds-ok-bg); }

.dus-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; font-size: 0.875rem; }
.dus-stats b { font-size: 1.125rem; color: var(--ds-accent); margin-right: 4px; font-variant-numeric: tabular-nums; }
.dus-actions, .dps-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.dps-row form { display: flex; gap: 6px; align-items: center; margin: 0; }
.dps-row select { width: auto; min-height: var(--ds-tap); }

/* Frise de suivi d'une annonce */
.dus-steps { display: flex; margin: 12px 0 8px; padding: 0; list-style: none; }
.dus-steps li { flex: 1; position: relative; text-align: center; font-size: 0.8125rem; color: var(--ds-ink-2); padding-top: 32px; }
.dus-steps .dus-dot {
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box;
	background: var(--ds-surface); border: 2px solid var(--ds-line-strong); color: var(--ds-ink-2);
	font-size: 0.75rem; font-weight: 600; line-height: 20px; text-align: center; z-index: 1;
}
.dus-steps li::after { content: ""; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--ds-line-strong); }
.dus-steps li:last-child::after { display: none; }
.dus-steps li.done { color: var(--ds-accent); }
.dus-steps li.done .dus-dot { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }
.dus-steps li.done .dus-dot i { font-size: 11px; line-height: 20px; }
.dus-steps li.done::after { background: var(--ds-accent); }
.dus-steps li.now { color: var(--ds-accent); font-weight: 600; }
.dus-steps li.now .dus-dot { border-color: var(--ds-accent); color: var(--ds-accent); }

/* Mon dossier */
.dus-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; cursor: pointer; }
.dus-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ds-accent); flex: none; }
.dus-dossier li { flex-wrap: wrap; align-items: center; }
.dus-date { display: flex; gap: 8px; align-items: center; color: var(--ds-ink-2); font-size: 0.8125rem; margin: 0; }
.dus-date input { width: auto; min-height: var(--ds-tap); }
@media (max-width: 767px) {
	.dus-dossier li { flex-direction: column; align-items: flex-start; }
	.dus-date { padding-left: 28px; flex-wrap: wrap; }
}

/* Verification de l'adresse e-mail */
.dus-verify { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.dus-verify label { margin: 0; font-size: 0.8125rem; color: var(--ds-ink-2); display: flex; flex-direction: column; gap: 4px; }
.dus-verify input { width: 9em; min-height: var(--ds-tap); letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.dus-verify-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 0.875rem; }

/* Filtres et onglets (pastilles du systeme) */
.dps-filters, .das-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.das-tabs { margin-bottom: 24px; }
.dps-filters a, .das-tabs a {
	display: inline-flex; align-items: center; min-height: var(--ds-tap); padding: 0 14px;
	background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r);
	color: var(--ds-accent); text-decoration: none; font-size: 0.8125rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em;
}
.dps-filters a:hover, .das-tabs a:hover { background: var(--ds-tint); border-color: var(--ds-line-strong); color: var(--ds-accent); }
.dps-filters a.active, .das-tabs a.active { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }

/* Tableaux */
.dps-table, .das-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: var(--ds-surface); font-variant-numeric: tabular-nums; }
.dps-table th, .das-table th {
	text-align: left; font-weight: 600; color: var(--ds-ink-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
	border-bottom: 1px solid var(--ds-line-strong); padding: 8px 6px; white-space: nowrap;
}
.dps-table td, .das-table td { border-bottom: 1px solid var(--ds-line); padding: 10px 6px; vertical-align: top; }
.ds-num { text-align: right; }
.dps-table th.ds-num, .das-table th.ds-num { text-align: right; }
@media (max-width: 767px) {
	.dps-table thead, .das-table thead { display: none; }
	.dps-table tr, .das-table tr { display: block; border-bottom: 1px solid var(--ds-line-strong); padding: 10px 0; }
	.dps-table td, .das-table td { display: flex; gap: 12px; justify-content: space-between; border: 0; padding: 4px 0; text-align: right; }
	.dps-table td[data-label]::before, .das-table td[data-label]::before {
		content: attr(data-label); flex: none; text-align: left;
		color: var(--ds-ink-2); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px;
	}
	.dps-table td.ds-main, .das-table td.ds-main { display: block; text-align: left; font-weight: 600; }
	.das-table td.ds-stack { display: block; text-align: left; }
	.das-table td.ds-stack[data-label]::before { display: block; margin-bottom: 4px; }
}

/* Actions de l'administration */
.das-actions { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.das-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.das-form label { font-size: 0.8125rem; color: var(--ds-ink-2); margin: 0; }
.das-form .btn { align-self: flex-start; }
.das-toggle > summary {
	list-style: none; cursor: pointer; padding: 0 12px; border-radius: var(--ds-r); font-size: 0.875rem; font-weight: 600;
	background: var(--ds-surface); border: 1px solid var(--ds-accent); color: var(--ds-accent); width: max-content;
}
.das-toggle > summary::-webkit-details-marker { display: none; }
.das-toggle.danger > summary { border-color: var(--ds-bad); color: var(--ds-bad); }
.das-toggle[open] > summary { background: var(--ds-tint); margin-bottom: 8px; }
.das-toggle.danger[open] > summary { background: var(--ds-bad-bg); }
.das-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.das-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: flex-end; }
.das-filters label { margin: 0; font-size: 0.8125rem; color: var(--ds-ink-2); display: flex; flex-direction: column; gap: 4px; }
.das-filters select { min-height: var(--ds-tap); max-width: 320px; }
@media (max-width: 767px) { .das-actions { min-width: 0; } }

/* Demandes (espace pro) */
.dps-req-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dps-req-contact { text-align: right; }
.dps-req p { margin: 8px 0; white-space: pre-line; }
.dps-visit { margin-top: 10px; }
.dps-visit form { display: grid; gap: 8px; max-width: 420px; margin-top: 8px; }
.dps-visit label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
@media (max-width: 767px) { .dps-req-contact { text-align: left; } }

.ds-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ds-head-row .dps-h { margin: 0; }
.dps-req-name { display: inline; margin: 0; }

/* Utilitaires (remplacent les styles en ligne des gabarits) */
.ds-m0 { margin: 0; }
.ds-mt-0 { margin-top: 0; }
.ds-mt-s { margin-top: 8px; }
.ds-mt-l { margin-top: 24px; }
.ds-mb-m { margin-bottom: 16px; }
.ds-mb-xl { margin: 0 0 32px; }
.ds-right { text-align: right; }
.ds-reply-link { display: block; margin-top: 6px; font-size: 0.8125rem; }
.ds-reasons { margin: 4px 0 0; padding-left: 18px; }

/* Ecrans Houzez : choix "par page" + bouton Afficher */
.houzez-dashboard-body select[data-ds-pp] { display: inline-block; width: auto; min-height: var(--ds-tap); }
.houzez-dashboard-body [data-ds-pp-go] { margin-left: 8px; vertical-align: middle; }
.houzez-dashboard-body .action-btn { min-width: var(--ds-tap); min-height: var(--ds-tap); display: inline-flex; align-items: center; justify-content: center; }

/* ==================================================================
 * Refonte du 29/10/2026 au soir : une liste "ce qui vous attend", puis
 * chaque element en plein ecran, gros boutons en toutes lettres.
 * Pour des personnes peu a l'aise avec l'informatique ; particuliers
 * penses d'abord pour le telephone, pros et moderation a parts egales.
 * ================================================================== */

.houzez-dashboard-body .dashboard-content { font-size: 16px; line-height: 1.5; color: var(--ds-ink); }
.houzez-dashboard-body { --ds-tap: 44px; }
.houzez-dashboard-body .heading-text h1 { font-size: 1.625rem; font-feature-settings: "lnum"; }
.houzez-dashboard-body .dashboard-content .btn { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.houzez-dashboard-body .dashboard-content .btn i { font-size: 15px; }

/* ---------- Coquille : menu lateral teal ---------- */
.houzez-dashboard-body .dashboard-sidebar { background: var(--ds-accent); border-right: 0; }
.houzez-dashboard-body .dashboard-sidebar .sidebar-logo { background: #fff; border-bottom: 1px solid var(--ds-line); }
.houzez-dashboard-body .domus-dash-nav .nav-box { border-color: rgba(255,255,255,.18); }
.houzez-dashboard-body .domus-dash-nav .nav-box ul { padding: 8px 12px; margin: 0; }
.houzez-dashboard-body .domus-dash-nav .nav-box li a {
	display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--ds-r);
	color: #DCE8EB; font-size: 15px; font-weight: 500; text-decoration: none; background: transparent;
}
.houzez-dashboard-body .domus-dash-nav .nav-box li a i { color: inherit; font-size: 18px; }
.houzez-dashboard-body .domus-dash-nav .nav-box li a:hover { background: rgba(255,255,255,.08); color: #fff; }
.houzez-dashboard-body .domus-dash-nav .nav-box li a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.houzez-dashboard-body .domus-dash-nav .nav-box li a:focus-visible { outline-color: #fff; }
.houzez-dashboard-body .domus-dash-nav .ds-count { margin-left: auto; background: #fff; color: var(--ds-accent); }
.houzez-dashboard-body .domus-dash-nav .ds-nav-group { list-style: none; padding: 18px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C9DADF; }

/* ---------- Mise en page ---------- */
.ds-wrap { max-width: 1080px; }
.ds-narrow { max-width: 760px; }
.ds-section { margin: 0 0 36px; }
.ds-h2 { font-family: Raleway, sans-serif; font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--ds-accent); margin: 0 0 10px; font-feature-settings: "lnum"; }
.ds-lead { font-size: 1.125rem; line-height: 1.5; margin: 0 0 16px; max-width: 70ch; }
.ds-lead b { color: var(--ds-accent); font-variant-numeric: tabular-nums; }
.ds-muted { color: var(--ds-ink-2); }
.ds-block { display: block; }
.ds-panel { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r); padding: 20px; margin: 0 0 16px; }
.ds-panel > :last-child { margin-bottom: 0; }
.ds-panel h3, .ds-listing h3 { font-family: Raleway, sans-serif; font-weight: 600; font-size: 1.0625rem; color: var(--ds-accent); margin: 0 0 8px; }
.ds-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ds-head-row .ds-h2 { margin: 0; }
.ds-alert { font-size: 16px; }
.ds-undo { margin: -8px 0 20px; }
.ds-note { background: var(--ds-warn-bg); border-radius: var(--ds-r); padding: 12px 14px; margin: 10px 0; }
.ds-note.is-bad { background: var(--ds-bad-bg); }
.ds-ok-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ds-ok-line i { color: var(--ds-ok); font-size: 20px; }
.ds-alert-panel.is-warn { background: var(--ds-warn-bg); border-color: transparent; }
.ds-alert-panel.is-bad { background: var(--ds-bad-bg); border-color: transparent; }
.ds-empty { text-align: left; padding: 32px; }
.ds-empty i { color: var(--ds-ok); font-size: 32px; }
.ds-empty h2 { font-family: Raleway, sans-serif; font-size: 1.375rem; color: var(--ds-accent); margin: 8px 0; }

/* ---------- Etiquettes ---------- */
.ds-tag { display: inline-block; padding: 2px 8px; border-radius: var(--ds-r-sm); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--ds-tint); color: var(--ds-accent); }
.ds-tag.is-ok { background: var(--ds-ok-bg); color: var(--ds-ok); }
.ds-tag.is-warn { background: var(--ds-warn-bg); color: var(--ds-warn); }
.ds-tag.is-bad { background: var(--ds-bad-bg); color: var(--ds-bad); }
.ds-tag.is-mute { background: #EEF1F1; color: var(--ds-ink-2); }

/* ---------- Liste "ce qui vous attend" ---------- */
.ds-queue { list-style: none; margin: 0 0 16px; padding: 0; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r); overflow: hidden; }
.ds-queue > li + li { border-top: 1px solid var(--ds-line); }
.ds-qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 20px; color: inherit; text-decoration: none; }
.ds-qrow:hover { background: var(--ds-tint); color: inherit; text-decoration: none; }
.ds-qrow:focus-visible { outline-offset: -2px; }
.ds-qrow-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.ds-qrow-type { font-size: 14px; font-weight: 600; color: var(--ds-ink-2); }
.ds-qrow-title { font-family: Raleway, sans-serif; font-weight: 600; font-size: 1.125rem; color: var(--ds-accent); font-feature-settings: "lnum"; }
.ds-qrow-meta { font-size: 15px; color: var(--ds-ink-2); }
.ds-qrow-text { color: var(--ds-ink); font-size: 16px; }
.ds-qrow-date { min-width: 96px; }

/* Jauge d'attente (signature) : se remplit vers 24 h, passe a l'ambre au-dela */
.ds-gauge { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; color: var(--ds-accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.ds-gauge-bar { display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--ds-tint); overflow: hidden; flex: none; }
.ds-gauge-bar > span { display: block; height: 100%; background: var(--ds-accent); }
.ds-gauge.is-late { color: var(--ds-warn); font-weight: 600; }
.ds-gauge.is-late .ds-gauge-bar { background: var(--ds-warn-bg); }
.ds-gauge.is-late .ds-gauge-bar > span { background: var(--ds-warn); }

/* ---------- Fiche plein ecran ---------- */
.ds-itembar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 16px; }
.houzez-dashboard-body .dashboard-content .ds-btn-ghost { border-color: transparent; background: transparent; color: var(--ds-accent); padding: 0 10px; }
.houzez-dashboard-body .dashboard-content .ds-btn-ghost:hover { background: var(--ds-tint); }
.ds-itemhead { margin: 0 0 20px; }
.ds-itemhead h2 { font-family: Raleway, sans-serif; font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--ds-accent); margin: 0 0 6px; font-feature-settings: "lnum"; }
.ds-itemhead p { margin: 0 0 6px; }
.ds-decision h3 { font-size: 1.125rem; }
.ds-decision-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.ds-decision-row > form, .ds-decision-row > p { margin: 0; }
.ds-decision-row > p { align-self: center; }
.ds-more { margin: 0; }
.ds-more > summary { list-style: none; cursor: pointer; }
.ds-more > summary::-webkit-details-marker { display: none; }
.ds-more[open] { flex-basis: 100%; }
.ds-more[open] > summary { background: var(--ds-tint); }
.ds-more.is-danger[open] > summary { background: var(--ds-bad-bg); }
.ds-act-form { display: grid; gap: 10px; margin: 0; }
.ds-more .ds-act-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ds-line); max-width: 760px; }
.ds-act-form label { font-weight: 600; font-size: 15px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ds-act-form textarea, .ds-act-form input, .ds-act-form select { font-size: 16px; min-height: 44px; border-color: var(--ds-line-strong); }
.ds-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds-chip { min-height: 40px; padding: 0 12px; border: 1px solid rgba(30,77,89,.3); border-radius: var(--ds-r); background: var(--ds-surface); color: var(--ds-accent); font-size: 14px; font-weight: 500; cursor: pointer; }
.ds-chip:hover { background: var(--ds-tint); border-color: var(--ds-line-strong); }
.ds-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ds-split-main { flex: 3 1 480px; min-width: 0; }
.ds-split-side { flex: 2 1 300px; min-width: 0; }
.ds-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 140px; gap: 6px; margin-bottom: 6px; }
.ds-photos a:first-child { grid-row: span 2; }
.ds-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ds-r-sm); display: block; }
.ds-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-facts dt { font-size: 14px; font-weight: 600; color: var(--ds-ink-2); }
.ds-facts dd { margin: 0; font-family: Raleway, sans-serif; font-weight: 600; font-size: 1.125rem; color: var(--ds-ink); font-feature-settings: "lnum"; }
.ds-desc { max-width: 70ch; }
.ds-score { margin: 4px 0; color: var(--ds-ink-2); }
.ds-score b { font-family: Raleway, sans-serif; font-size: 2.125rem; font-feature-settings: "lnum"; margin-right: 4px; }
.ds-score.is-bad b, .ds-score-txt.is-bad { color: var(--ds-bad); }
.ds-score.is-warn b, .ds-score-txt.is-warn { color: var(--ds-warn); }
.ds-score.is-ok b, .ds-score-txt.is-ok { color: var(--ds-ok); }
.ds-score-txt { font-weight: 600; margin: 0 0 10px; }
.ds-reasons { list-style: none; margin: 0; padding: 0; }
.ds-reasons li { padding: 8px 0; border-top: 1px solid var(--ds-line); font-size: 15px; }
.ds-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ds-line); }
.ds-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--ds-line); font-size: 15px; }
.ds-list > li.is-stack { flex-direction: column; }

/* ---------- Demande (espace pro et vendeurs) ---------- */
.ds-message { font-size: 1.0625rem; white-space: pre-line; max-width: 70ch; margin: 0 0 10px; }
.ds-req .ds-decision-row { margin-top: 12px; }
.ds-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ds-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ds-step {
	flex: 1 1 150px; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left;
	border: 1px solid rgba(30,77,89,.3); border-radius: var(--ds-r); background: var(--ds-surface); color: var(--ds-accent);
	font-size: 15px; font-weight: 600; cursor: pointer;
}
.ds-step:hover { background: var(--ds-tint); border-color: var(--ds-line-strong); }
.ds-step-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; font-size: 13px; }
.ds-step.is-done { background: var(--ds-tint); }
.ds-step.is-on { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }
.ds-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(30,77,89,.3); border-radius: var(--ds-r); background: var(--ds-surface); color: var(--ds-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.ds-seg a:hover { background: var(--ds-tint); color: var(--ds-accent); }
.ds-seg a.is-on { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }

/* ---------- Lignes et cartes ---------- */
.ds-rows { list-style: none; margin: 0 0 12px; padding: 0; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r); }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 18px; }
.ds-row + .ds-row { border-top: 1px solid var(--ds-line); }
.ds-row-main { flex: 1 1 260px; min-width: 0; font-weight: 600; }
.ds-row-stats { font-size: 15px; }
.ds-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds-card-row { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r); color: inherit; text-decoration: none; }
.ds-card-row:hover { background: var(--ds-tint); color: inherit; text-decoration: none; }
.ds-thumb { width: 72px; height: 72px; flex: none; border-radius: var(--ds-r-sm); object-fit: cover; background: var(--ds-tint); display: block; }
.ds-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.ds-card-title { font-weight: 600; color: var(--ds-accent); }
.ds-listing .ds-lead { margin: 10px 0; font-size: 1rem; }

/* ---------- Dossier ---------- */
.ds-progress-txt { margin: 0 0 6px; font-weight: 600; }
.ds-progress { display: block; height: 8px; border-radius: 4px; background: var(--ds-tint); overflow: hidden; margin: 0 0 14px; }
.ds-progress > span { display: block; height: 100%; background: var(--ds-accent); }
.ds-fold > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ds-accent); }
.ds-checks { list-style: none; margin: 0 0 16px; padding: 0; }
.ds-checks li { padding: 12px 0; border-bottom: 1px solid var(--ds-line); display: flex; flex-direction: column; gap: 8px; }
.ds-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; cursor: pointer; font-size: 16px; }
.ds-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ds-accent); flex: none; }
.ds-check-sub { margin: 0 0 0 34px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ds-ink-2); font-size: 15px; }
.ds-check-sub input { width: auto; min-height: 44px; }

/* ---------- Barre du bas sur telephone ---------- */
.ds-tabbar { display: none; }
@media (max-width: 991px) {
	.houzez-dashboard-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.ds-tabbar {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
		background: var(--ds-surface); border-top: 1px solid var(--ds-line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
		box-shadow: 0 -4px 16px rgba(22,58,70,.08);
	}
	.ds-tabbar a, .ds-tabbar button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
		color: var(--ds-ink-2); font-size: 12px; font-weight: 500; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
	}
	.ds-tabbar a.is-on { color: var(--ds-accent); font-weight: 600; }
	.ds-tab-ico { position: relative; font-size: 22px; line-height: 1; }
	.ds-tab-n { position: absolute; top: -6px; left: 14px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--ds-warn); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
}

/* ---------- Telephone ---------- */
@media (max-width: 767px) {
	.houzez-dashboard-body .heading-text h1 { font-size: 1.375rem; }
	.ds-itemhead h2 { font-size: 1.375rem; }
	.ds-qrow { padding: 14px 16px; gap: 6px 14px; }
	.ds-qrow-go { display: none; }
	.ds-gauge { min-width: 0; }
	.ds-panel { padding: 16px; }
	.ds-decision-row > form, .ds-decision-row > form .btn, .ds-decision-row > .btn, .ds-more, .ds-more > summary { width: 100%; }
	.ds-decision-row > form > div { width: 100%; }
	.ds-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 110px; }
	.ds-photos a:first-child { grid-column: span 2; grid-row: span 2; }
	.ds-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-slots { grid-template-columns: 1fr; }
	.ds-step { flex-basis: calc(50% - 4px); }
	.ds-row-stats { flex-basis: 100%; }
}
/* ==================================================================
 * Apercu des autres espaces (administrateurs, 30/10/2026) :
 * bouton "Voir un autre espace" et bandeau d'apercu en lecture seule.
 * ================================================================== */
.ds-rp { position: relative; }
.ds-rp-menu > summary { list-style: none; }
.ds-rp-menu > summary::-webkit-details-marker { display: none; }
.ds-rp-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer;
	border: 1px solid var(--ds-accent); border-radius: var(--ds-r); background: var(--ds-surface);
	color: var(--ds-accent); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.ds-rp-btn:hover, .ds-rp-menu[open] > .ds-rp-btn { background: var(--ds-tint); }
.ds-rp-btn i { font-size: 18px; }
.ds-rp-panel {
	position: absolute; left: 0; top: calc(100% + 6px); z-index: 1050; width: 340px; max-height: 70vh; overflow-y: auto;
	background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r);
	box-shadow: 0 8px 24px rgba(22,58,70,.14); padding: 14px 16px; color: var(--ds-ink); font-size: 15px;
}
.ds-rp-intro { margin: 0 0 6px; color: var(--ds-ink-2); font-size: 14px; }
.ds-rp-group { margin: 12px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-ink-2); }
.ds-rp-panel ul { display: block; list-style: none; margin: 0; padding: 0; }
.ds-rp-panel li a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px;
	border-radius: var(--ds-r); color: var(--ds-accent); text-decoration: none; font-weight: 600;
}
.ds-rp-panel li a:hover { background: var(--ds-tint); }
.ds-rp-panel li a[aria-current] { background: var(--ds-accent); color: #fff; }
.ds-rp-sub { font-size: 13px; font-weight: 500; color: inherit; opacity: .85; white-space: nowrap; }
.ds-rp-all { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--ds-line); }
.ds-rp-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 24px;
	background: var(--ds-warn-bg); border-bottom: 2px solid var(--ds-warn); color: var(--ds-ink); font-size: 16px;
}
.ds-rp-bar > i { color: var(--ds-warn); font-size: 22px; }
.ds-rp-bar p { flex: 1 1 320px; margin: 0; }
.ds-rp-bar b { color: var(--ds-accent); }
.ds-rp-warn { display: block; margin-top: 4px; color: var(--ds-bad); font-weight: 600; }
.ds-rp-bar .btn { min-height: 44px; padding: 0 18px; font-weight: 600; display: inline-flex; align-items: center; }
@media (max-width: 767px) {
	.ds-rp-btn { padding: 0 12px; font-size: 14px; }
	.ds-rp-panel { width: min(340px, calc(100vw - 80px)); }
	.ds-rp-bar { padding: 12px 16px; }
	.ds-rp-bar .btn { width: 100%; justify-content: center; }
}
/* Choix de la langue dans la barre du haut (30/10/2026) */
.ds-lang{display:inline-flex;border:1px solid var(--ds-line-strong);border-radius:var(--ds-r);overflow:hidden;background:var(--ds-surface)}
.ds-lang__item{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ds-tap);min-height:var(--ds-tap);padding:0 10px;font-size:15px;font-weight:600;color:var(--ds-ink-2);text-decoration:none}
.ds-lang__item+.ds-lang__item{border-left:1px solid var(--ds-line)}
.ds-lang__item:hover{background:var(--ds-tint);color:var(--ds-ink);text-decoration:none}
.ds-lang__item.is-current{background:var(--ds-accent);color:#fff}
.ds-lang__item:focus-visible{outline:3px solid var(--ds-accent-soft);outline-offset:-3px}
@media (max-width:575.98px){.ds-lang__item{min-width:40px;padding:0 6px;font-size:14px}}
