/* Jetons (couleurs, police, tailles) : Theme.css, seul endroit ou changer l'apparence. Un @import doit preceder toute
   regle, sinon le navigateur l'ignore (c'est ce qui empechait Inter de se charger jusqu'au 24/10/2026). */
@import url('Theme.css');

/* =====================================================================================================================
   v3, etape 3, sous-etape 2 (24/10/2026) : les deux blocs qui se disputaient les memes classes (un bloc « moderne »
   place AVANT le bloc d'origine, ou l'ancien gagnait a !important egal) sont FUSIONNES. Chaque propriete garde la
   declaration qui gagnait jusqu'ici, avec son !important s'il en avait un : le rendu ne change pas (captures avant /
   apres identiques, tools/v3/captures.js). Un !important reste necessaire la ou il l'emporte sur un style ecrit dans
   la balise par le PHP (WizForm.php : tailles des formulaires, fond des boutons de couleur).
   ===================================================================================================================== */

body
{
	background: var(--color-bg-hero) !important;	/* etait #dde1e7, adouci par l'ancien bloc moderne */
	min-height: 1200px;
	font-size: var(--text);
	/* Inter, comme le site, chargee par un <link> dans Menu.php (sous-etape 1, 24/10/2026). Etait « Helvetica New »
	   (le vrai nom est « Helvetica Neue ») : aucune police de ce nom, d'ou la police sans empattement par defaut. */
	font-family: var(--font);
}
/* Les controles de formulaire n'heritent pas de la police de la page : ils suivent la police du corps (24/10/2026) */
button, input, select, textarea
{
	font-family: inherit;
}

/* ==================================================================
   EN-TETE de l'appli (Menu.php SetMenu), au-dessus du menu existant.
   v3, sous-etape 3 (25/10/2026) : en-tete BLANC du site (Site_Dpe3cl/style.css, .site-header / .nav) : 64 px,
   filet gris, logo, nom du DPE au centre, compte et « Acces au site » a droite. Textes de 16 px au moins (decision A).
   ================================================================== */
.app-modern-header {
	background: var(--color-bg);
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
	font-family: var(--font);
	font-size: var(--text-small);
	margin-bottom: 8px;
}
.amh-inner {
	max-width: 1180px;
	height: 64px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.amh-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--color-text) !important;
	text-decoration: none;
	background: transparent;
	flex-shrink: 0;
}
.amh-brand img {
	width: 36px;
	height: 36px;
	border-radius: 6px;
}
.amh-doc {
	flex: 1;
	min-width: 0;
	text-align: center;
	font-size: var(--text);
	font-weight: 600;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.amh-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	white-space: nowrap;
}
.amh-account {
	color: var(--color-text-soft);
	font-weight: 500;
	font-size: var(--text-small);
}
/* Comme le bouton « Connexion » du site : contour indigo, plein au survol. Pas sur le bandeau de l'Express, dont la
   page dessine elle-meme ce lien en pastille sur telephone. */
.amh-login, .app-modern-header .amh-back {
	border: 1px solid var(--color-primary);
	color: var(--color-primary) !important;
	padding: 8px 16px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: var(--text-small);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.amh-login:hover, .app-modern-header .amh-back:hover {
	background: var(--color-primary);
	color: white !important;
}
@media (max-width: 768px) {
	.amh-inner { gap: 8px; }
	.amh-doc, .amh-account { display: none; }
}
@media (max-width: 480px) {
	.amh-brand span { display: none; }
}

/* Synthese du DPE dans l'en-tete (Protected/DpeTabs.php, v3, 25/10/2026) : classe, energie primaire, facture */
.amh-dpe {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	white-space: nowrap;
}
.amh-class {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}
.amh-dpe-txt {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.amh-ep {
	font-weight: 600;
	font-size: var(--text-small);
	color: var(--color-text);
}
.amh-bill {
	font-size: var(--text-small);
	color: var(--color-text-soft);
}
@media (max-width: 768px) {
	.amh-dpe-txt { display: none; }
}

/* Onglets du DPE sous le menu (Protected/DpeTabs.php, v3, 25/10/2026) : l'onglet courant est blanc, souligne
   d'indigo ; un onglet sans destination pour l'instant (bilan pas encore possible...) reste lisible mais grise. */
.dpe-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 8px 0 0;
	padding: 0 24px;
	border-bottom: 1px solid var(--color-border-strong);
	font-family: var(--font);
}
.dpe-tab {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 24px;
	margin-bottom: -1px;
	box-sizing: border-box;
	font-size: var(--text);
	color: var(--color-text-soft) !important;
	text-decoration: none;
	border-bottom: 4px solid transparent;
	border-radius: 8px 8px 0 0;
}
a.dpe-tab:hover {
	color: var(--color-primary-dark) !important;
	background: var(--color-bg-soft);
	border-bottom-color: var(--color-border-strong);
}
a.dpe-tab:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: -3px;
}
.dpe-tab[aria-current="page"] {
	font-weight: 700;
	color: var(--color-text) !important;
	background: var(--color-bg);
	border-bottom-color: var(--color-primary);
}
.dpe-tab-off {
	color: var(--color-text-faint) !important;
	cursor: not-allowed;
}
/* Deux barres au lieu de trois (31/10/2026, demande user : 60 px de plus pour le plan) : les onglets du DPE dans l'en-tete,
   a court libelle. Le nom du DPE cede sa place le premier, puis la facture sous 1340 px. Sous 1180 px, ils passent sur une
   seconde ligne de l'en-tete ; le telephone garde ses regles. Annuler et Retablir : leurs mots seulement si la largeur le
   permet (titre au survol). */
.tab-more { display: none; }
.amh-app .amh-inner { max-width: 1600px; }
/* La note ne cede jamais (classe, energie, facture). Le nom du compte est limite sous 1500 px ; le nom du DPE prend ce qui reste. */
.amh-app .amh-menu:has(#Menu_DocName) { flex: 0 1 auto; min-width: 170px; }
.amh-app .amh-mode { display: inline-flex; }
.amh-app .mode-switch { margin: 0 4px; padding: 0; white-space: nowrap; }
@media (min-width: 601px) {
	.amh-app .dpe-tabs { flex: none; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; border-bottom: 0; }
	.amh-app .dpe-tab { min-height: 64px; padding: 0 12px; margin-bottom: 0; background: none; border-radius: 0; white-space: nowrap; }
}
@media (max-width: 1599px) {
	.amh-app .amh-undo-txt { display: none; }
	.amh-app .amh-undo { min-width: 40px; font-size: var(--text); }
}
@media (max-width: 1340px) {
	.amh-app .amh-bill { display: none; }
	.amh-app .amh-menu:has(#Menu_DocName) { min-width: 130px; }
}
@media (min-width: 601px) and (max-width: 1340px) {
	.amh-app .dpe-tab { padding: 0 8px; }
}
@media (max-width: 1200px) {
	.sub-tab { padding: 0 9px; gap: 5px; }
}
@media (min-width: 601px) and (max-width: 1250px) {
	.amh-app .amh-inner { display: grid; grid-template-columns: auto minmax(110px, 1fr) auto auto; height: auto; min-height: 64px; padding-top: 8px; }
	.amh-app .amh-right { margin-left: 0; flex: none; }
	.amh-app .amh-menu:has(#Menu_DocName) { min-width: 110px; }
	.amh-app .dpe-tabs { grid-row: 2; grid-column: 1 / -1; }
	.amh-app .dpe-tab { min-height: 44px; }
}
@media (max-width: 600px) {
	.amh-app .dpe-tabs { order: 5; flex: 1 0 100%; }
}

/* Carte d'invitation (v3, 25/10/2026) : niveau vide dans l'editeur de plan, logement sans plan dans la liste des
   niveaux. Grandes cibles, texte de 16 px au moins (decision A du 24/10). */
.pe-card {
	max-width: 540px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 28px;
	box-sizing: border-box;
	background: var(--color-bg);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-lg);
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
	font-family: var(--font);
	color: var(--color-text);
	text-align: left;
}
.pe-card h2 { margin: 0; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.pe-card p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--color-text-soft); }
.pe-card p[hidden] { display: none; }
.pe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pe-actions button {
	font: inherit;
	font-size: var(--text-small);
	font-weight: 600;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--color-primary);
	border-radius: var(--radius);
	background: var(--color-bg);
	color: var(--color-primary);
	cursor: pointer;
}
.pe-actions button:hover { background: var(--color-bg-soft); }
.pe-actions .pe-main { background: var(--color-primary); color: #fff; }
.pe-actions .pe-main:hover { background: var(--color-primary-dark); }
.pe-actions button:focus-visible, .pe-skip:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.pe-skip { align-self: flex-start; font-size: var(--text-small); color: var(--color-primary) !important; }
/* Onglet « Saisie du DPE » de la v3 (25/10/2026, maquette du 18/10) : une carte par rubrique (SheetPage,
   Protected/SheetCards.php). Toute la carte est le bouton de la rubrique ; l'etat est dit en mots dans l'etiquette. */
.sheet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sheet-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--color-bg);
	border: 1px solid var(--color-border-strong);
	border-radius: 12px;
}
.sheet-card:hover:has(.sc-main:not(:disabled)) { border-color: var(--color-primary); }
.sc-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	text-align: left;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
}
.sc-main:disabled { cursor: default; }
.sc-main:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
/* Etiquette toujours sous le nom : meme place sur chaque carte, quelle que soit la longueur du nom */
.sc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sc-label { font-size: 19px; font-weight: 700; }
.sc-badge { font-size: var(--text-small); font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.sc-detail { font-size: var(--text-small); line-height: 1.4; color: var(--color-text-soft); overflow-wrap: anywhere; }
.sc-see { align-self: flex-start; margin: -4px 16px 12px; font-size: var(--text-small); font-weight: 600; color: var(--color-primary) !important; }
.is-plan .sc-badge { background: var(--c-badge-plan-bg); color: var(--c-badge-plan-ink); }
.is-done .sc-badge, .is-calc .sc-badge { background: var(--c-badge-done-bg); color: var(--c-badge-done-ink); }
.is-todo .sc-badge { background: var(--c-badge-todo-bg); color: var(--c-badge-todo-ink); }
.is-opt .sc-badge, .is-off .sc-badge, .is-none .sc-badge { background: var(--c-badge-none-bg); color: var(--c-badge-none-ink); }
.is-off, .is-none { background: var(--color-bg-soft); }
.is-off .sc-label, .is-none .sc-label { color: var(--color-text-muted); }
/* En-tete de l'appli avec ses menus (Protected/AppHeader.php, v3, 25/10/2026) : il remplace l'ancienne barre de menu
   et la barre Annuler / Retablir. Le nom du DPE est le menu du document ; rouge quand il n'est pas enregistre. */
.amh-app .amh-inner { justify-content: flex-start; gap: 12px; }
.amh-app .amh-right { margin-left: auto; gap: 6px; flex: none; }
.amh-menu { position: relative; display: flex; min-width: 0; }
.amh-app .amh-doc, .amh-item {
	font-family: var(--font);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.amh-app .amh-doc { flex: 0 1 auto; max-width: 30vw; padding: 6px 10px; font-size: var(--text); font-weight: 600; color: var(--color-text); text-align: left; }
.amh-app .amh-doc.doc-modified { color: var(--color-modified); }
.amh-item { padding: 7px 10px; font-size: var(--text-small); font-weight: 500; color: var(--color-text-soft); }
.amh-app .amh-account { max-width: 180px; }
@media (max-width: 1500px) {
	.amh-app .amh-inner { gap: 8px; }
	.amh-app .amh-account { max-width: 110px; }
}
.amh-menu > button:not(:disabled)::after { content: " ▾"; font-size: 0.8em; }
/* Menus de l'en-tete (30/10/2026) : le libelle se coupe seul (points de suspension), la fleche reste visible ; sinon un
   nom de DPE trop long perdait sa fleche et ne se lisait plus comme un menu (telephone) */
.amh-menu > button:has(> .amh-label) { display: inline-flex; align-items: center; }
.amh-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amh-menu > button:has(> .amh-label):not(:disabled)::after { content: "▾"; margin-left: 0.3em; flex-shrink: 0; }
/* Menu ☰ du telephone (AppHeader, 30/10/2026, decision user) : remplace Administration, Compte et Aide sous 600 px */
.amh-burger { display: none; }
.amh-menu.amh-burger > button:not(:disabled)::after { content: none; }
.amh-burger .amh-menu-list { max-height: 70vh; overflow-y: auto; }
.amh-menu-list .amh-head { padding: 8px 16px 4px; font-family: var(--font); font-size: var(--text-small); font-weight: 600; color: var(--color-text-soft); }
.amh-sub > summary { padding: 9px 16px; cursor: pointer; font-family: var(--font); font-size: var(--text-small); color: var(--color-text); }
.amh-sub > ul { margin: 0; padding: 0 0 0 12px; list-style: none; }
.amh-app .amh-doc:hover:not(:disabled), .amh-item:hover:not(:disabled) { background: var(--color-bg-hero); }
.amh-app .amh-doc:focus-visible, .amh-item:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; }
.amh-app .amh-doc:disabled, .amh-item:disabled { cursor: default; color: var(--color-text-faint); }
.amh-app .amh-doc.doc-modified:disabled { color: var(--color-modified); }
.amh-menu-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 1000;
	min-width: 220px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: var(--color-bg);
	border: 1px solid var(--color-border-strong);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.15);
}
.amh-menu:has(> .amh-doc) .amh-menu-list { left: 0; right: auto; }
.amh-menu-list[hidden] { display: none; }
.amh-menu-list button, .amh-menu-list a {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 9px 16px;
	text-align: left;
	font-family: var(--font);
	font-size: var(--text-small);
	color: var(--color-text) !important;
	background: none;
	border: 0;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.amh-menu-list button:hover, .amh-menu-list a:hover { background: var(--color-bg-hero); }
.amh-menu-list button:focus-visible, .amh-menu-list a:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.amh-app .doc-undo-bar { display: flex; align-items: center; gap: 4px; }
.amh-undo {
	font-family: var(--font);
	font-size: var(--text-small);
	padding: 6px 10px;
	border: 1px solid var(--color-border-strong);
	border-radius: 8px;
	background: var(--color-bg);
	color: var(--color-text);
	cursor: pointer;
	white-space: nowrap;
}
.amh-undo:hover:not(:disabled) { border-color: var(--color-primary); }
.amh-undo:disabled { color: var(--color-text-faint); cursor: default; }
.amh-undo-msg { margin-right: 6px; font-size: var(--text-small); color: var(--c-badge-done-ink); white-space: nowrap; }
.amh-off { pointer-events: none; opacity: 0.6; }
/* Le mot « Accueil » a cote du logo, a la place du texte « DPE3CL » retire le 30/10/2026 (01/11/2026, user : difficile de deviner
   que le logo y mene). Sur telephone : logo seul, le menu ☰ porte l'entree */
.amh-app .amh-brand { gap: 6px; font-size: var(--text); font-weight: 600; }
@media (max-width: 1200px) {
	.amh-app .amh-back { display: none; }
	.amh-app .amh-dpe-txt { display: none; }
}
@media (max-width: 768px) {
	.amh-app .amh-doc { display: block; max-width: 160px; }
	.amh-app .amh-menu:has(#Menu_DocName) { min-width: 90px; }
	.amh-app .amh-account { display: block; max-width: 110px; }
}
/* Fenetre etroite et telephone (29/10/2026, etendu de 600 a 1000 px le 30/10/2026 : entre les deux, le nom du DPE etait
   ecrase a 0 px sur une seule ligne) : l'en-tete passe sur deux lignes s'il le faut, le nom du DPE prend la place qui
   reste a cote du logo, les menus passent a la ligne plutot que de deborder (compte administrateur sur telephone) */
@media (max-width: 1000px) {
	.amh-app .amh-inner { flex-wrap: wrap; row-gap: 6px; height: auto; min-height: 64px; padding: 8px 12px; }
	.amh-app .amh-menu:has(> .amh-doc) { flex: 1 1 0; min-width: 45%; }   /* le nom du DPE a cote du logo, jamais ecrase */
	.amh-app .amh-doc { flex: 1 1 auto; max-width: none; }
	.amh-app .amh-right { flex-wrap: wrap; flex-shrink: 1; min-width: 0; justify-content: flex-end; row-gap: 6px; }
}
/* Telephone (la v3 en mode simple, SaisieMode::PhoneV3, 29/10/2026) : Annuler et Retablir en pictogrammes (cible plus
   grande), onglets du DPE resserres. 30/10/2026 (decision user) : en-tete sur deux lignes (Annuler, Retablir et le menu
   ☰ sur la seconde), onglets du DPE sur une ligne (« Plans », « Saisie »), parties de la saisie sur une bande qui
   defile au doigt (pastilles : une zone qui defile couperait la marge negative des onglets) */
@media (max-width: 600px) {
	.amh-app .amh-wide { display: none; }
	.amh-app .amh-brand span { display: none; }
	.amh-app .amh-mode { display: inline-flex; }   /* l'interrupteur reste visible : dans le seul menu, on ne le trouvait pas (user) */
	.amh-app .amh-right { flex: 1 0 100%; }
	.amh-app .amh-burger { display: flex; margin-left: auto; }
	.dpe-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 8px; gap: 0; }
	.dpe-tab { flex: none; padding: 0 10px; min-height: 48px; margin-bottom: 0; }
	/* nav.sub-tabs, .sub-tabs .sub-strip : ces classes sont definies plus bas dans la feuille */
	nav.sub-tabs { padding: 8px 8px 0; }
	.sub-tabs .sub-strip { display: flex; flex: 1 0 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
	.sub-strip .sub-tab { flex: none; margin-bottom: 0; border-radius: 8px; }
	.sub-strip .sub-tab[aria-current="page"] { border-color: var(--color-primary); }
	.amh-app .amh-undo-txt { display: none; }
	.amh-app .amh-undo { padding: 6px 14px; font-size: var(--text); }
	/* Formulaires 2.5 (WizForm) des pages passees en v3 (html.phone-v3, Menu.php ; 30/10/2026, decision user : style
	   commun, verifie page par page). Les largeurs et hauteurs en em ecrites sur chaque cellule ne s'imposent plus ;
	   une ligne « libelle + champ » (ou bouton, liste de cases ul.listbox, valeur calculee input-static-style) met le libelle au-dessus, le champ sur toute la largeur. */
	.phone-v3 form table, .phone-v3 table[style^="width: "][style$="em"] { width: 100% !important; }   /* 2e : GetTableStyle, hors formulaire */
	.phone-v3 .phone-hide { display: none; }   /* mot ou precision qui ne tient pas sur telephone (« Aide MaPrimeRénov' ») */
	.phone-v3 .phone-scroll { overflow-x: auto; }   /* grille de chiffres d'expert (besoins, depensier) : defile dans sa boite */
	.phone-v3 form td, .phone-v3 form th { width: auto !important; height: auto !important; }
	.phone-v3 form tr:is(:has(> td:nth-child(2):last-child > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, button, ul.listbox)), :has(> td:nth-child(2):last-child.input-static-style)) { display: flex; flex-direction: column; }
	.phone-v3 form tr:is(:has(> td:nth-child(2):last-child > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, button, ul.listbox)), :has(> td:nth-child(2):last-child.input-static-style)) > td { text-align: left !important; }
	.phone-v3 form td > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { width: 100% !important; box-sizing: border-box; }
	/* Barres de boutons (SetButtons et semblables : la 1re cellule porte deja un bouton) : les boutons passent a la ligne,
	   deux par ligne (celle du mode avance de la fiche faisait 677 px) */
	.phone-v3 form tr:has(> td:first-child > :is(.button-style, .button-disabled-style)) { display: flex; flex-wrap: wrap; gap: 8px; }
	/* padding 0 : SetButtons pose cellpadding="20px", 40 px de plus par cellule, qui en mettait une seule par ligne */
	.phone-v3 form tr:has(> td:first-child > :is(.button-style, .button-disabled-style)) > td { flex: 1 1 40%; min-width: 0; padding: 0; }
	/* Libelle de bouton trop long (« Rénovation — impact… ») : sur deux lignes plutot qu'un bouton plus large que l'ecran */
	.phone-v3 form :is(.button-style, .button-disabled-style) { white-space: normal; height: auto !important; min-height: 2.4em; }
	/* Blocs d'etat hors formulaire (FillStatus FC_TABLE : table a 50 % et 20 px d'espacement) : toute la largeur */
	.phone-v3 table[style*="width: 50%"] { width: 100% !important; border-spacing: 0 8px !important; }
	.phone-v3 td.title-style { width: auto !important; height: auto !important; }
	/* Importer (UploadPage, 07/11/2026) : toutes les lignes l'une sous l'autre sur toute la largeur. Sans le display:block, une
	   ligne repliee ne prenait que la 1re colonne du tableau (la ligne d'aide, sur deux colonnes, le garde a deux colonnes).
	   La boite champ + boutons (.upload-line) va a la ligne : « Numéro de DPE » et « Aucun fichier » etaient coupes. */
	.phone-v3 #upload table, .phone-v3 #upload tbody { display: block; }
	.phone-v3 #upload tr { display: flex; flex-direction: column; }
	.phone-v3 #upload tr > td:not(.title-style) { text-align: left !important; }   /* titre centre, comme sur les autres pages */
	.phone-v3 #upload .upload-line { flex-wrap: wrap !important; }
	.phone-v3 #upload .upload-line > input[type=text] { flex: 1 1 100% !important; min-height: 2.4em; }
	/* Sous-etape 4 de l'apparence (09/11/2026) : carte du formulaire moins large ; intitule au-dessus de son champ, sans
	   trait entre les deux ; une case a cocher tient sur une ligne, intitule a gauche (jamais nowrap : « J'accepte de
	   recevoir... » elargissait Mon compte a 727 px) ; mot de passe en pleine largeur, « Afficher » dessous (cote a cote,
	   ils elargissaient le tableau) ; ligne de resultat (une boite div, pas un champ) repliee comme les autres. */
	.phone-v3 form > table:has(td.title-style, td.label-style) { padding: 4px 14px 14px; margin-top: 10px; border-radius: 14px; }
	.phone-v3 form > table > tbody > tr:first-child > td.title-style { font-size: 22px !important; }
	.phone-v3 form > table td.label-style { border-bottom: 0 !important; padding-bottom: 2px !important; }
	/* Ligne a case a cocher (12/11/2026) : la cellule de la case ne retrecit plus (elle retrecissait sous un intitule long et
	   « inclure » passait sous sa case) et prend au moins 9em (« indisponible » y tient), une colonne commune ou toutes les
	   cases s'alignent. Quand son texte ne tient pas a cote de l'intitule (« J'accepte de recevoir... »), elle passe DESSOUS
	   sur toute la largeur, comme les autres champs (flex-wrap ; base de l'intitule 6em : ligne entiere des 320 px d'ecran).
	   Case et texte cote a cote : un texte long se replie a cote de la case, la case face a sa 1re ligne. Rangee alignee sur
	   la ligne de base : « inclure » face a la 1re ligne de l'intitule (mesure : centre/decale de 5 px avant). */
	.phone-v3 form tr:has(> td:nth-child(2):last-child.check-label-style) {
		display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px;
		border-bottom: 1px solid var(--c-row-line);
	}
	.phone-v3 form tr:has(> td:nth-child(2):last-child.check-label-style) > td.label-style {
		flex: 1 1 6em; min-width: 0; text-align: left !important; padding-right: 0 !important; border-bottom: 0 !important;
	}
	.phone-v3 form tr:has(> td:nth-child(2):last-child.check-label-style) > td:last-child {
		flex: 0 0 auto; min-width: 9em; max-width: 100%; border-bottom: 0 !important;
	}
	.phone-v3 form tr:has(> td:nth-child(2):last-child.check-label-style) > td:last-child > label.check-style {
		display: flex; align-items: baseline;
	}
	.phone-v3 form tr:has(> td:nth-child(2):last-child.check-label-style) > td:last-child > label.check-style > input[type=checkbox] {
		flex: none; align-self: flex-start; margin-top: 1px;
	}
	.phone-v3 td.checklabel-style > input.password-style { display: block; width: 100% !important; margin-bottom: 6px; }
	.phone-v3 td.checklabel-style > input[type=checkbox] { margin-left: 0; }
	.phone-v3 form tr:has(> td:nth-child(2):last-child > div.input-style) { display: flex; flex-direction: column; }
	.phone-v3 form tr:has(> td:nth-child(2):last-child > div.input-style) > td { text-align: left !important; }
}
/* Onglet « Saisie du DPE » : « votre logement en bref » (Protected/SheetBrief.php, SheetPage, 25/10/2026). Phrases et
   questions en texte courant, une seule action mise en avant (la prochaine), le reste en mode avance. */
.brief {
	max-width: 900px;
	margin: 28px auto 48px;
	padding: 0 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: var(--font);
	color: var(--color-text);
}
.brief-head { display: flex; flex-direction: column; gap: 8px; }
.brief-head h2 { margin: 0; font-size: 32px; line-height: 1.2; }
.brief-head p { margin: 0; font-size: var(--text); color: var(--color-text-soft); }
.brief-progress { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.brief-bar { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.brief-bar span { height: 10px; border-radius: 5px; background: var(--color-border-strong); }
.brief-bar span.is-done { background: var(--color-primary); }
.brief-progress > span { font-size: var(--text-small); color: var(--color-text-soft); white-space: nowrap; }
.brief-status { margin: 0; font-size: var(--text-small); color: var(--color-text-soft); }
.brief-status:empty { display: none; }
.brief-list { display: flex; flex-direction: column; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; }
.brief-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 18px 26px; border-bottom: 1px solid var(--color-border); }
.brief-row:last-child { border-bottom: 0; }
.brief-txt { flex: 1 1 380px; min-width: 0; }
.brief-title { font-size: var(--text-small); color: var(--color-text-muted); }
/* Pastille « N parois réglées en mode avancé » (dec-06, 12/11/2026) : couleurs du plan, ni verte (decrit) ni orange (a faire).
   Titre en flex : la pastille passe sous le titre sans retrait quand la place manque (telephone), et se replie elle-meme
   plutot que de deborder de la carte (« 10 fenêtres… » : 298 px pour 272). */
.brief-title:has(> .brief-detail) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.brief-detail { max-width: 100%; padding: 1px 10px; font-size: var(--text-small); font-weight: 600; text-wrap: balance;
	color: var(--c-badge-plan-ink); background: var(--c-badge-plan-bg); border-radius: 12px; }
.brief-text { margin: 2px 0 0; font-size: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
/* Seule la prochaine partie est teintee : cinq lignes orange intimideraient (remarque user du 25/10) */
.brief-row.is-next-row { background: var(--c-todo-row); }
.brief-row.is-next-row .brief-title { color: var(--c-badge-todo-ink); font-weight: 600; }
.brief-row.is-next-row .brief-text { font-weight: 600; }
.brief-row.is-off .brief-text { color: var(--color-text-muted); }
.brief-acts { display: flex; align-items: center; gap: 16px; }
.brief-see { font-size: var(--text-small); font-weight: 600; color: var(--color-primary) !important; white-space: nowrap; }
.brief-btn {
	min-height: 48px;
	padding: 0 22px;
	font-family: var(--font);
	font-size: 17px;
	font-weight: 700;
	color: var(--color-primary);
	background: var(--color-bg);
	border: 1px solid var(--color-primary);
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
}
.brief-btn:hover:not(:disabled) { background: var(--color-bg-hero); }
.brief-btn.is-next { color: #fff; background: var(--color-primary); }
.brief-btn.is-next:hover:not(:disabled) { background: var(--color-primary-dark); }
.brief-btn.is-link { min-height: 44px; padding: 0 6px; font-size: var(--text-small); font-weight: 600; text-decoration: underline; background: transparent; border-color: transparent; }
.brief-btn:disabled { color: var(--color-text-faint); border-color: var(--color-border); background: transparent; cursor: default; }
.brief-btn.is-link:disabled { border-color: transparent; text-decoration: none; }
.brief-btn:focus-visible, .brief-see:focus-visible, .brief-go:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.brief-extra-head { padding: 14px 26px 6px; font-size: var(--text-small); font-weight: 600; color: var(--color-text-muted); background: var(--color-bg-soft); }
.brief-row.is-extra { padding-top: 10px; padding-bottom: 10px; background: var(--color-bg-soft); }
.brief-row.is-extra .brief-text { font-size: var(--text-small); color: var(--color-text-soft); }
.brief-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brief-result > span { font-size: var(--text-small); color: var(--color-text-soft); }
.brief-go {
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	padding: 0 34px;
	font-family: var(--font);
	font-size: 19px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	background: var(--color-primary);
	border: 0;
	border-radius: 12px;
}
.brief-go:hover { background: var(--color-primary-dark); }
.brief-go:disabled { color: var(--color-text-muted) !important; background: var(--color-border); cursor: default; }
/* Fiche du mode avance (SheetAdvancedSection) : la grille de toutes les rubriques, puis les commandes */
.brief-wide { max-width: 1240px; }
.sheet-cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.sheet-cmds > h3 { flex: 0 0 100%; margin: 0; font-size: 20px; color: var(--color-text); }
/* Onglet « Résultats » de la v3 (Protected/DpeResults.php, DpePage, 25/10/2026, maquette du 18/10) : étiquette avec la
   position du logement, frais annuels (méthode officielle), où part la chaleur ; le détail d'avant replié dessous. */
.res {
	max-width: 1100px;
	margin: 28px auto 20px;
	padding: 0 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-family: var(--font);
	color: var(--color-text);
}
.res-head h2 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; }
.res-head p { margin: 0; max-width: 72ch; font-size: var(--text-small); color: var(--color-text-soft); }
.res-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.res-label { flex: 1 1 520px; min-width: 0; }
.res-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.res-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 16px; }
.res-card h3 { margin: 0; font-size: 20px; }
.res-unit { margin: -6px 0 2px; font-size: var(--text-small); color: var(--color-text-muted); }
.res-scale { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.res-row { display: flex; align-items: center; gap: 12px; }
.res-arrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 170px;
	height: 36px;
	padding: 0 24px 0 12px;
	box-sizing: border-box;
	font-size: var(--text-small);
	clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.res-arrow b { font-size: 20px; }
.res-row.is-here .res-arrow { height: 48px; font-weight: 700; }
.res-row.is-here .res-arrow b { font-size: 26px; }
.res-here { padding: 6px 12px; font-size: var(--text-small); color: #fff; background: var(--color-text); border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .res-card { padding: 16px; } }   /* telephone (29/10/2026) : la classe et son etiquette tiennent */
/* Telephone etroit (30/10/2026, mesure a 360 px : 416) : « Votre logement : 300 » passe sous la fleche de sa classe ; le
   detail du calcul (tableau 2.5 de 764 px, pour les experts) defile dans sa boite, la page garde la largeur de l'ecran */
@media (max-width: 600px) {
	.res-row.is-here { flex-wrap: wrap; row-gap: 4px; }
	.res-detail { overflow-x: auto; padding: 14px 16px 0; }
}
.res-ges, .res-note { margin: 4px 0 0; font-size: var(--text-small); color: var(--color-text-soft); }
.res-cost { margin: 0; font-size: var(--text); }
.res-cost b { font-size: 28px; color: var(--color-text); white-space: nowrap; }
.res-small { margin: 0; font-size: var(--text-small); color: var(--color-text-muted); }
.res-losses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.res-losses li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: var(--text-small); }
.res-loss-bar { height: 12px; background: var(--color-bg-hero); border-radius: 6px; overflow: hidden; }
.res-loss-bar span { display: block; height: 100%; background: var(--c-loss); }
.res-loss-pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.res-link { align-self: flex-start; font-size: var(--text-small); font-weight: 600; color: var(--color-primary) !important; }
.res-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 26px;
	font-size: 18px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	background: var(--color-primary);
	border-radius: 12px;
}
.res-cta:hover { background: var(--color-primary-dark); }
.res-cta:focus-visible, .res-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.res-detail { max-width: 1100px; margin: 0 auto 24px; padding: 14px 24px 0; box-sizing: border-box; border-top: 1px solid var(--color-border-strong); font-family: var(--font); }
.res-detail > summary { margin-bottom: 12px; cursor: pointer; font-size: var(--text-small); color: var(--color-text-soft); }
.res-detail > summary b { color: var(--color-text); }
/* Propositions du plan de travaux chiffre (TravauxPage, v3, 03/11/2026, maquette du 18/10) : une carte par proposition au
   lieu du tableau a 5 colonnes. Travaux en clair, classe avant -> apres, cout, aide, reste a charge, economie par an ; la
   1re encadree. Cliquable une fois le calcul fini (role="button", ouvre la fenetre de detail) ; .is-static = apercu des
   visiteurs, jamais cliquable. */
.tvx-list { display: flex; flex-direction: column; gap: 14px; font-family: var(--font); font-size: var(--text); color: var(--color-text); text-align: left; }
.tvx-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	padding: 18px 22px;
	background: var(--color-bg);
	border: 2px solid var(--color-border-strong);
	border-radius: var(--radius-lg);
}
.tvx-card.is-best { border: 3px solid var(--color-primary); background: var(--c-choice-bg); }
.tvx-list:not(.is-running) .tvx-card:not(.is-static) { cursor: pointer; }
.tvx-list:not(.is-running) .tvx-card:not(.is-static):hover { border-color: var(--color-primary-dark); }
.tvx-card.is-selected { box-shadow: 0 0 0 3px var(--color-primary-dark); }
.tvx-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.tvx-main { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tvx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tvx-rank { font-size: var(--text-small); font-weight: 600; color: var(--color-text-soft); }
.tvx-badge { padding: 3px 12px; font-size: var(--text-small); font-weight: 700; color: #fff; background: var(--color-primary); border-radius: 999px; }
.tvx-title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--color-text); }
.tvx-classes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: var(--text-small); color: var(--color-text-soft); }
.tvx-class { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 8px; box-sizing: border-box; font-size: 22px; font-weight: 700; border-radius: 8px; }
.tvx-arrow { font-size: 24px; font-weight: 700; color: var(--color-text); }
.tvx-money { flex: 1 1 250px; max-width: 340px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tvx-money > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tvx-money dt { color: var(--color-text-soft); }
.tvx-money dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tvx-money .is-aid dd { color: var(--c-badge-done-ink); }
.tvx-money .is-net { padding-top: 4px; border-top: 1px solid var(--color-border-strong); }
.tvx-money .is-net dt { font-weight: 700; color: var(--color-text); }
.tvx-money .is-net dd { font-size: 22px; font-weight: 700; }
.tvx-money .is-net:first-child { padding-top: 0; border-top: 0; }   /* sans les aides : le cout seul, rien a totaliser */
.tvx-money .is-saving dd { font-weight: 700; color: var(--c-badge-done-ink); }
.tvx-money .is-more dd { font-weight: 700; color: var(--c-badge-todo-ink); }
.tvx-empty { padding: 24px; text-align: center; font-style: italic; color: var(--color-text-soft); }
.tvx-hint { padding: 10px 0 2px; text-align: center; font-size: var(--text-small); color: var(--color-text-soft); }
.tvx-example { margin-bottom: 10px; text-align: center; font-style: italic; color: var(--color-modified); }
/* Telephone : la colonne des montants passe sous les travaux, pleine largeur */
@media (max-width: 600px) {
	.tvx-card { padding: 14px 16px; }
	.tvx-money { max-width: none; }
}
/* Onglets de la saisie (DpeTabs::SaisieTabsHtml, v3, 25/10/2026) : un par partie, comme les onglets des niveaux sous les
   plans ; coche verte = partie décrite, pastille orange = à décrire ; « Plus » ouvre le reste de la fiche. */
.sub-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 6px;
	margin-bottom: 12px;
	padding: 8px 24px 0;
	border-bottom: 2px solid var(--color-border-strong);
	font-family: var(--font);
}
.sub-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	margin-bottom: -2px;
	box-sizing: border-box;
	font-family: var(--font);
	font-size: var(--text-small);
	color: var(--color-text-soft) !important;
	text-decoration: none;
	white-space: nowrap;
	background: var(--color-border);
	border: 2px solid var(--color-border-strong);
	border-radius: 8px 8px 0 0;
	cursor: pointer;
}
a.sub-tab:hover, button.sub-tab:hover:not(:disabled) { color: var(--color-primary-dark) !important; background: var(--color-bg-soft); }
.sub-tab[aria-current="page"] { font-weight: 700; color: var(--color-text) !important; background: var(--color-bg); border-bottom-color: var(--color-bg); }
.sub-tab.is-off, button.sub-tab:disabled { color: var(--color-text-faint) !important; cursor: not-allowed; }
.sub-tab:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.sub-done { flex: none; color: var(--c-badge-done-ink); }
.sub-todo { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d9822b; }
.sub-more .amh-menu-list { right: auto; left: 0; }
.sub-strip { display: contents; }   /* bande des parties : une ligne qui defile, sur telephone seulement (plus haut) */
/* Listes en cartes sur telephone (Protected/PhoneCards.php, 30/10/2026) : projets, ponts thermiques, optimisations. Une
   carte par element, qu'on touche pour la choisir (bord indigo) ; son nom, une ligne de detail, puis ses resultats */
.lc-cards { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 12px; font-family: var(--font); }
.lc-cards h2 { margin: 4px 0; font-size: 22px; line-height: 1.3; }
.lc-none, .lc-sum { margin: 0; font-size: var(--text); color: var(--color-text-soft); }
.lc-sum { font-size: var(--text-small); font-weight: 600; }
.lc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; box-sizing: border-box;
	padding: 14px 16px; text-align: left; font-family: var(--font); font-size: var(--text-small); color: var(--color-text);
	background: var(--color-bg); border: 2px solid var(--color-border-strong); border-radius: 12px; cursor: pointer; }
.lc-card.is-sel { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); }
.lc-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.lc-name { font-size: var(--text); font-weight: 700; }
.lc-sub { color: var(--color-text-soft); }
.lc-line { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lc-note { white-space: nowrap; }
.lc-class { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; font-weight: 700; text-align: center; }
.amh-menu-list .sub-sep { height: 1px; margin: 4px 0; background: var(--color-border); }
/* Interrupteur « Mode avancé », a droite des onglets de la saisie (Protected/Simple/SaisieMode.php, 25/10/2026) */
.mode-switch {
	position: relative;
	margin-left: auto;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 4px;
	font-size: var(--text-small);
	color: var(--color-text-soft);
	cursor: pointer;
	user-select: none;
}
.mode-short { display: none; }
@media (max-width: 400px) { .mode-full { display: none; } .mode-short { display: inline; } }   /* sinon ☰ Menu passe a la ligne */
.mode-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.mode-track { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--color-border-strong); transition: background .15s; }
.mode-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: left .15s; }
.mode-switch input:checked + .mode-track { background: var(--color-primary); }
.mode-switch input:checked + .mode-track .mode-knob { left: 23px; }
.mode-switch input:focus-visible + .mode-track { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.mode-switch:has(input:disabled) { color: var(--color-text-faint); cursor: not-allowed; }
/* Ecrans simples de la saisie (Protected/Simple/*Screen.php, pilote : Ventilation, 25/10/2026). Une question, des
   cartes a cliquer, « Je ne sais pas » ; le detail d'avant reste a un clic. Memes mesures que « votre logement en bref ». */
.simple {
	max-width: 900px;
	margin: 28px auto 48px;
	padding: 0 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: var(--font);
	color: var(--color-text);
}
.simple-head { display: flex; flex-direction: column; gap: 8px; }
.simple-head h2 { margin: 0; font-size: 32px; line-height: 1.2; }
.simple-head p { margin: 0; font-size: var(--text); color: var(--color-text-soft); }
.simple-sub { margin: 12px 0 0; font-size: 22px; line-height: 1.3; }
.simple-custom { margin: 0; padding: 14px 18px; font-size: var(--text-small); line-height: 1.5; color: var(--c-badge-todo-ink); background: var(--c-badge-todo-bg); border-radius: 12px; }
.simple-custom a { font-weight: 700; color: inherit !important; }
.simple-form { display: flex; flex-direction: column; gap: 20px; }
.simple-choice { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; border: 0; }
.simple-choice legend { padding: 0; margin-bottom: 6px; font-size: var(--text-small); font-weight: 600; color: var(--color-text); }   /* la question se lit avant les reponses (09/11/2026) */
.simple-choice.is-stack { flex-direction: column; gap: 0; }
.simple-choice.is-question { margin-top: 8px; }
.simple-choice.is-question legend { font-size: var(--text); line-height: 1.45; color: var(--color-text); }
.simple-choice label, .simple-dontknow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--text); cursor: pointer; }
.simple-choice input, .simple-dontknow input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary); }
.simple-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.simple-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 100px;
	padding: 16px 44px 16px 18px;
	box-sizing: border-box;
	font-family: var(--font);
	text-align: left;
	color: var(--color-text);
	background: var(--color-bg);
	border: 2px solid var(--color-border-strong);
	border-radius: 14px;
	cursor: pointer;
}
.simple-card:hover:not(:disabled) { border-color: var(--color-primary); }
/* Carte impossible ici (la chaudiere du chauffage sans chauffage chaudiere...) : estompee, bord en pointilles */
.simple-card:disabled { opacity: .55; border-style: dashed; cursor: not-allowed; }
.simple-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.simple-card.is-selected { border-color: var(--color-primary); background: var(--c-choice-bg); }
.simple-card.is-selected::after {
	content: "✓";
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--color-primary);
	border-radius: 50%;
}
.simple-icon { flex: none; width: 64px; height: 64px; color: var(--color-text-soft); }
.simple-icon svg { display: block; width: 100%; height: 100%; }
.simple-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.simple-txt b { font-size: var(--text); line-height: 1.3; }
.simple-txt span { font-size: var(--text-small); line-height: 1.4; color: var(--color-text-soft); }
.simple-field { display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.simple-field > span { font-size: var(--text-small); font-weight: 600; color: var(--color-text); }
.simple-field > .simple-hint { font-weight: 400; color: var(--color-text-soft); line-height: 1.45; }
.simple-field select, .simple-field input {
	min-height: 48px;
	padding: 0 12px;
	box-sizing: border-box;
	font-size: var(--text);
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-border-strong);
	border-radius: 10px;
}
.simple-field input:disabled { color: var(--color-text-muted); background: var(--color-bg-soft); }
.simple-field select:focus-visible, .simple-field input:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; }
/* Precisions de la carte choisie (ecran Chauffage) : groupees sous les cartes, filet a gauche */
.simple-details { display: flex; flex-direction: column; gap: 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--color-border-strong); }
.simple-note { margin: 0; font-size: var(--text-small); line-height: 1.5; color: var(--color-text-soft); }
/* Photo de la plaque sous les cartes, puissance utile saisie dans les precisions (ecran Chauffage, 11/11/2026) */
.simple-plate, .simple-pn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.simple-plate .simple-note, .simple-pn .simple-note { flex: 1 1 100%; }
.simple-pn > span:first-child { font-size: var(--text); color: var(--color-text); }
/* Numero de DPE, en tete de l'ecran Logement (SimpleOpenData, 30/10/2026) ; message d'echec bien visible, grand et contraste */
.simple-import { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 14px 16px; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: 12px; }
.simple-import .simple-field { flex: 1 1 220px; }
.simple-import .simple-note, .simple-import-msg { flex: 1 1 100%; }
.simple-import-msg { margin: 0; padding: 12px 16px; font-size: var(--text); font-weight: 600; line-height: 1.4; color: #7c2d12; background: #fef3c7; border: 2px solid #f59e0b; border-radius: 8px; }
.simple-year { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; }
.simple-year .simple-field { width: 240px; }
.simple-btn { min-height: 48px; padding: 0 20px; font-family: var(--font); font-size: var(--text-small); font-weight: 700; color: var(--color-primary); background: var(--color-bg); border: 1px solid var(--color-primary); border-radius: 10px; cursor: pointer; }
.simple-btn:hover { background: var(--color-bg-hero); }
/* Contour sans plan (SimpleContourScreen, 27/10/2026) : un mur par ligne, vignettes des formes, bouton principal */
.simple-btn.is-primary { color: #fff; background: var(--color-primary); }
.simple-btn.is-primary:hover { filter: brightness(1.1); }
.simple-enter { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.simple-walls { display: flex; flex-direction: column; gap: 14px; }
.simple-wall { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; margin: 0; padding: 14px 18px; border: 1px solid var(--color-border-strong); border-radius: 12px; }
.simple-wall legend { padding: 0 6px; font-size: var(--text); font-weight: 700; color: var(--color-text); }
.simple-wall .simple-field { width: 200px; }
.simple-shapes { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.simple-shape { flex-direction: column; justify-content: center; padding: 16px; font-size: var(--text-small); }
.simple-shape svg { width: 100%; height: auto; max-height: 280px; }
.simple-shape polygon { fill: var(--c-choice-bg); stroke: var(--color-primary); }
.simple-shape.is-selected polygon { fill: var(--color-bg); }
/* Forme de depart (SimpleShape) : pictogrammes des cartes, pictogramme cote en grand, apercu a l'echelle */
.simple-shape-pick .simple-icon polygon { fill: none; stroke: currentColor; stroke-width: 8; stroke-linejoin: round; }
.simple-shape-pick .is-selected .simple-icon { color: var(--color-primary); }
.simple-shape-edit { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 32px; }
.simple-key { flex: none; width: 300px; max-width: 100%; margin: 0; }
.simple-key svg { display: block; width: 100%; height: auto; }
.simple-key polygon { fill: var(--c-choice-bg); stroke: var(--color-primary); stroke-width: 3; stroke-linejoin: round; }
.simple-key text { font-family: var(--font); font-size: 22px; font-weight: 700; fill: var(--color-text); }
.simple-shape-fields { display: flex; flex-direction: column; gap: 14px; flex: 1 1 240px; }
.simple-shape-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 520px; padding: 16px; font-size: var(--text-small); border: 1px solid var(--color-border-strong); border-radius: 12px; }
.simple-shape-preview svg { width: 100%; height: auto; max-height: 360px; }
.simple-shape-preview polygon { fill: var(--c-choice-bg); stroke: var(--color-primary); }
.simple-shape-preview text { fill: var(--color-text); font-family: var(--font); }
.simple-shape text { fill: var(--color-text); font-family: var(--font); }
.simple-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: -8px; }
.simple-aside .simple-hint { flex: 1 1 320px; font-size: var(--text-small); line-height: 1.5; color: var(--color-text-soft); }
.simple-btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.simple-now { margin: 0; padding: 14px 18px; font-size: var(--text); line-height: 1.45; color: var(--color-text-soft); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow-wrap: anywhere; }
.simple-now b { color: var(--color-text); }
.simple-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.simple-foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-small); font-weight: 600; color: var(--color-primary) !important; }
.simple-foot a:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
/* « ← Accueil » d'une page detaillee (HomeBack::FootHtml(true), regle des chemins, 07/11/2026) : centre sous les boutons de la page */
.simple-foot.page-foot { justify-content: center; margin: 16px auto; }

/* ==================================================================
   Menu existant : couleurs adoucies + sous-menu vertical en popup
   ================================================================== */
nav .menu li {
	background: var(--color-bg) !important;
	color: var(--color-text) !important;
	font-family: var(--font) !important;
	font-weight: 500;
}
/* Exception : Menu_DocName (nom DPE) a du contenu blanc/transparent qui se fond
   avec le fond blanc des autres cellules. On lui applique un gris clair
   pour qu'il retrouve le poids visuel des boutons image voisins. */
nav .menu li#Menu_DocName {
	background: var(--color-menu-docname) !important;
}
/* Document modifié : doc-modified posée par Menu.php quand bModified=true. Le rouge
   inline est sinon écrasé par le color !important de "nav .menu li" plus haut. */
nav .menu li#Menu_DocName.doc-modified {
	color: var(--color-modified) !important;
}
/* Bouton admin 🔧 : actif = fond legerement teinte pour matcher la
   perception visuelle des autres boutons icones (fond blanc + image grise eclaircie).
   Emoji desature + assombri pour ressembler aux icones sombres des autres boutons.
   Disabled = grise via opacity. */
nav .menu li.menu-admin-btn {
	background: var(--color-menu-admin) !important;
}
nav .menu li.menu-admin-btn p {
	filter: grayscale(1) brightness(0.35);
}
nav .menu li.menu-admin-btn.menu-disabled {
	background: var(--color-menu-docname) !important;
	opacity: 0.55;
	pointer-events: none;
}
/* Tactile : :hover ne fonctionne pas. On force l'ouverture du sub-menu du bouton
   🔧 admin via la classe .open posee par JS au tap. */
#AdminMenuBtn.open .sub-menu,
#AdminMenuBtn.open .sub-menu li {
	transform: scale(1) !important;
}
/* Logos d'apparence transparente sur fond menu (l'inline PHP ajoute parfois un bg gris).
   brightness(1.25) eclaircit le fond gris des JPG d'icones pour qu'ils s'harmonisent
   avec le fond blanc des cellules et le 🔧 admin. */
.menu-logo, .menu-logo-left, .menu-logo-right {
	background: transparent !important;
	filter: brightness(1.25);
}
nav .menu > li:first-child {
	border-radius: var(--radius) 0 0 var(--radius) !important;
}
nav .menu > li:last-child {
	border-radius: 0 var(--radius) var(--radius) 0 !important;
}
nav .menu li:hover {
	background: var(--color-bg-hero) !important;
	color: var(--color-primary) !important;
	filter: none !important;
}
/* Le menu original ne positionne pas le sous-menu (il s'étale horizontalement
   dans le flux). On le bascule en popup absolu, items empilés verticalement,
   sans toucher Menu.css. */
nav .menu > li {
	position: relative !important;
}
nav .sub-menu {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	z-index: 1000 !important;
	background: rgba(255, 255, 255, 0.78) !important;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15) !important;
	border-radius: 8px !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 12em !important;
	width: max-content !important;
}
nav .sub-menu li {
	float: none !important;
	display: block !important;
	width: 100% !important;
	background: rgba(255, 255, 255, 0.78) !important;
	color: var(--color-text) !important;
	font-family: var(--font) !important;
	font-weight: 400;
}
nav .sub-menu li:first-child {
	border-radius: 8px 8px 0 0 !important;
}
nav .sub-menu li:last-child {
	border-radius: 0 0 8px 8px !important;
}
nav .sub-menu li:hover {
	background: rgba(243, 244, 246, 0.95) !important;
	color: var(--color-primary) !important;
	filter: none !important;
}

/* ==================================================================
   Formulaires (WizForm.php) : une regle par classe
   Sous-etape 4 de l'apparence (09/11/2026, apercu valide par l'user) : formulaire en carte blanche sans grille, action
   principale en indigo plein, autres boutons blancs, champs arrondis, aide lisible, listes en lignes, couleurs de sens B
   (saisie qui remplace le calcul) et C (a completer). Les couleurs ecrites dans les balises par WizForm (constantes
   HT_BLUE, LT_PINK, HT_GREEN, HT_YELLOW) sont reprises par [style*=...] : aucun fichier PHP ne change.
   ================================================================== */

/* Boutons. Le !important de la taille l'emporte sur celle ecrite dans la balise (GetButtonStyle) ; le fond aussi : un
   bouton est blanc, sauf ceux que les regles suivantes colorent (action principale, actions de calcul). */
.button-style
{
	width: 90%;
	height: 90%;
	min-height: 44px;
	margin: 0px;
	padding: 0 18px !important;
	text-align: center;
	font-family: var(--font) !important;
	font-weight: 600 !important;
	font-size: 17px !important;
	color: var(--color-text) !important;
	background-color: var(--c-button-bg) !important;
	border: 1px solid var(--c-button-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
	filter: none !important;
	transform: none !important;
	transition: border-color 0.12s ease, color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
	cursor: pointer;
}
.button-style:hover
{
	color: var(--color-primary) !important;
	border-color: var(--c-button-border-hover) !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10) !important;
}
/* Action principale : Suivant / Terminer / Enregistrer d'un assistant, bouton d'une ligne de formulaire (FillButtonRow,
   sauf Annuler / Retour : formnovalidate, ou rose et jaune ecrits dans la balise), bleu HT_BLUE ecrit dans la balise */
input.button-style[name=WizNext], input.button-style[name=WizOk],
td.label-style + td > input.button-style:not([formnovalidate]):not([style*="ffe0e0" i]):not([style*="ffffe0" i]),
input.button-style[style*="d0d0f0" i]
{
	color: #fff !important;
	background-color: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
}
input.button-style[name=WizNext]:hover, input.button-style[name=WizOk]:hover,
td.label-style + td > input.button-style:not([formnovalidate]):not([style*="ffe0e0" i]):not([style*="ffffe0" i]):hover,
input.button-style[style*="d0d0f0" i]:hover
{
	color: #fff !important;
	background-color: var(--color-primary-dark) !important;
	border-color: var(--color-primary-dark) !important;
}
/* Vert HT_GREEN : actions de calcul (Recalculer, Besoins...) */
input.button-style[style*="d0f0d0" i]
{
	color: var(--c-action-ink) !important;
	background-color: var(--c-action-bg) !important;
	border-color: var(--c-action-line) !important;
}
/* « ← Accueil » (WizSheet) : un lien, comme sur les ecrans de la v3 */
input.button-style[name=WizSheet]
{
	width: auto !important;
	min-height: 0;
	padding: 6px 4px !important;
	color: var(--color-primary) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.button-disabled-style
{
	width: 90%;
	height: 90%;
	min-height: 44px;
	margin: 0px;
	padding: 0 18px !important;
	text-align: center;
	font-size: 17px !important;
	font-family: var(--font) !important;
	font-weight: 500 !important;
	color: var(--color-text-faint) !important;
	background-color: var(--c-off-bg) !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	cursor: not-allowed;
	opacity: 1;
}
/* Cases a cocher : plus de cadre mauve ni de fond bleu */
.check-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	vertical-align: middle;
	padding-left: 5px;
	color: var(--color-text) !important;
	background-color: transparent !important;
}
.check-label-style
{
	width: 100%;
	height: 100%;
	font-size: 17px !important;
	font-family: inherit;
	text-align: start;
	vertical-align: middle;
	padding-left: 5px;
	color: var(--color-text) !important;
	background-color: transparent !important;
	border: 1px solid var(--c-button-bg);
}
td.check-label-style input[type=checkbox], td.checklabel-style input[type=checkbox], label.check-style input[type=checkbox]
{
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: -3px;
	accent-color: var(--color-primary);
}
td.checklabel-style > input[type=checkbox] { margin-left: 12px; }
/* Intitules (colonne de gauche des formulaires) : texte gris fonce, sans case */
.label-style
{
	font-family: var(--font) !important;
	font-size: 17px !important;
	font-weight: 500;
	text-align: end;
	padding-right: 18px !important;
	color: var(--color-text-soft) !important;
	background-color: transparent !important;
	border: 1px solid var(--color-border) !important;
}
.label-disabled-style
{
	font-family: var(--font) !important;
	font-size: 17px !important;
	font-weight: 500;
	text-align: end;
	padding-right: 18px !important;
	color: var(--color-text-faint) !important;
	background-color: transparent !important;
	border: 1px solid var(--color-border) !important;
}
/* Champs de saisie : coins arrondis, bordure gris clair, contour indigo quand on y tape */
.input-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: var(--c-legacy-ink);
	background-color: var(--color-bg);
	border: 1px solid var(--c-legacy-border);
}
input.input-style, select.input-style, textarea.input-style, input.input-blue-style, select.input-blue-style,
input.input-disabled-style, select.input-disabled-style, input.password-style, form > table textarea
{
	box-sizing: border-box;
	min-height: 40px;
	padding: 6px 12px !important;
	font-size: 17px !important;
	color: var(--color-text) !important;
	background-color: #fff;
	border: 1px solid var(--c-legacy-border) !important;
	border-radius: 8px !important;
}
input.input-style:focus, select.input-style:focus, textarea:focus, input.input-blue-style:focus, input.password-style:focus
{
	outline: 3px solid rgba(79, 70, 229, 0.3) !important;
	outline-offset: 0;
	border-color: var(--color-primary) !important;
}
/* Valeur affichee (non modifiable) : du texte, pas une fausse case. Un long nom sans espace passe a la ligne au lieu
   d'elargir la page (Exporter debordait de 601 px au telephone). */
.input-static-style
{
	width: 100%;
	height: 100%;
	font-size: 17px !important;
	font-family: inherit;
	text-align: start;
	padding-left: 2px !important;
	color: var(--color-text) !important;
	background-color: transparent !important;
	border: 1px solid var(--c-legacy-border);
	overflow-wrap: anywhere;
}
.input-static-style legend { color: inherit; overflow-wrap: anywhere; }
.input-disabled-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: var(--color-text-muted) !important;
	background-color: var(--c-off-bg) !important;
	border: 1px solid var(--c-legacy-border);
}
/* Champ fige ou desactive : apres la regle des champs, qui fixe la couleur du texte avec la meme force */
input.input-disabled-style, select.input-disabled-style, input.input-style:disabled, select.input-style:disabled
{
	color: var(--color-text-muted) !important;
	background-color: var(--c-off-bg) !important;
}
/* B : valeur saisie qui remplace le calcul (classe, ou couleur HT_BLUE ecrite dans la balise) */
.input-blue-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: var(--c-manual-ink) !important;
	background-color: var(--c-manual-bg) !important;
	border: 1px solid var(--c-manual-line) !important;
}
input.input-style[style*="d0d0f0" i], select.input-style[style*="d0d0f0" i]
{
	color: var(--c-manual-ink) !important;
	background-color: var(--c-manual-bg) !important;
	border-color: var(--c-manual-line) !important;
}
/* C : a completer (LT_PINK ecrite dans la balise) */
input.input-style[style*="ffe0e0" i], select.input-style[style*="ffe0e0" i]
{
	color: var(--c-todo-ink) !important;
	background-color: var(--c-todo-bg) !important;
	border-color: var(--c-todo-line) !important;
}
/* Zone de resultat (Exporter, Importer) : une boite, meme vide */
form > table div.input-style
{
	min-height: 3em;
	color: var(--color-text) !important;
	background: var(--color-bg-soft) !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 8px;
}
/* Titres de page des formulaires (la 1re ligne de la carte) : comme les titres de la v3, a gauche. La meme classe sert
   aux messages d'etat (FillStatus), dont l'aide sous les listes : ceux-la sont un encadre clair, en texte courant. */
.title-style
{
	font-family: var(--font) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.6;
	text-align: left !important;
	padding: 14px 18px !important;
	color: var(--color-text-soft) !important;
	background: #fff !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 12px !important;
}
form > table > tbody > tr:first-child > td.title-style
{
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.3;
	padding: 14px 0 12px !important;
	color: var(--color-text) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}
.title-style legend { font-size: inherit; font-weight: inherit; color: inherit; }
.title-style h1
{
	color: var(--color-primary);
	font-weight: 700;
}
/* Lignes d'aide : un encadre clair, du texte lisible */
.help-style
{
	font-family: var(--font) !important;
	font-size: 16px !important;
	line-height: 1.6;
	text-align: start;
	vertical-align: top;
	padding: 14px 18px !important;
	color: var(--color-text-soft) !important;
	background-color: var(--color-bg-soft) !important;
	border: 0 !important;
	border-radius: 12px;
	text-wrap: wrap;
	height: auto !important;
}
.help-style legend { line-height: inherit; }
.unused-style
{
	font-family: inherit;
	text-align: center;
	padding-right: 0px;
	color: var(--c-legacy-ink);
	background-color: var(--c-off-bg);
	border-left-style: solid;
	border-right-style: solid;
	border-width: 1px;
	border-color: var(--c-legacy-border);
}
/* Formulaire : une carte blanche, sans grille ; des lignes separees par un trait tres clair */
form > table:has(td.title-style, td.label-style)
{
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 16px;
	border-collapse: separate !important;
	border-spacing: 0;
	padding: 8px 28px 20px;
	margin-top: 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
form > table:has(td.title-style, td.label-style) > tbody > tr > td
{
	border: 0 !important;
	border-bottom: 1px solid var(--c-row-line) !important;
	padding-top: 7px !important;
	padding-bottom: 7px !important;
}
form > table:has(td.title-style, td.label-style) > tbody > tr:last-child > td { border-bottom: 0 !important; }
/* Legendes : cellules de valeur des listes du mode avance (input) et valeurs affichees d'une ligne de formulaire (td,
   FC_PINK / FC_MANUAL : les couleurs de sens C et B) */
.legend-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: var(--font) !important;
	text-align: start;
	padding-left: 5px;
	color: var(--color-text) !important;
	background-color: var(--color-bg) !important;
	border: 1px solid var(--color-border) !important;
}
.legend-pink-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: var(--c-todo-ink);
	background-color: var(--c-todo-bg);
	border: 1px solid var(--c-legacy-border);
}
.legend-blue-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: var(--c-manual-ink);
	background-color: var(--c-manual-bg);
	border: 1px solid var(--c-legacy-border);
}
.legend-gray-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: var(--c-legacy-ink);
	background-color: var(--c-legacy-bg);
	border: 1px solid var(--c-legacy-border);
}
.legend-invert-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 5px;
	color: #ffffff;
	background-color: #000000;
	border: 1px solid var(--c-legacy-border);
}
/* Listes du mode avance (cellules = boutons input) : des lignes, plus une grille ; la ligne choisie en indigo clair
   (elle etait en noir) */
input.legend-style, input.legend-pink-style, input.legend-blue-style, input.legend-gray-style, input.legend-invert-style
{
	font-size: 17px !important;
	color: var(--color-text) !important;
	background-color: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--c-row-line) !important;
	border-radius: 0 !important;
	padding: 8px 8px !important;
	cursor: pointer;
}
tr:hover > td > input.legend-style { background-color: var(--c-row-hover) !important; }
input.legend-invert-style
{
	color: var(--c-manual-ink) !important;
	background-color: var(--c-manual-bg) !important;
	font-weight: 600 !important;
}
input.legend-pink-style { color: var(--c-todo-ink) !important; background-color: var(--c-todo-bg) !important; }
input.legend-blue-style { color: var(--c-manual-ink) !important; background-color: var(--c-manual-bg) !important; }
input.legend-gray-style { color: var(--color-text-muted) !important; background-color: var(--c-off-bg) !important; }
.colheader-style
{
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 600;
	text-align: center;
	padding: 8px 6px !important;
	color: var(--color-text-soft) !important;
	background-color: var(--c-legacy-bg) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--color-border) !important;
}
.password-style
{
	width: 100%;
	height: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: start;
	padding-left: 0px;
	color: var(--c-legacy-ink);
	border-style: solid;
	border-width: 0px;
}
.checklabel-style
{
	width: 100%;
	height: 100%;
	font-size: 17px !important;
	font-family: inherit;
	text-align: start;
	padding-left: 0px;
	color: var(--color-text) !important;
	background-color: var(--c-checklabel-bg) !important;
	border: 1px solid #606060;
}
.sort-style
{
	width: 100%;
	font-size: 100%;
	font-family: inherit;
	text-align: center;
	color: var(--c-legacy-ink);
	background-color: var(--c-button-bg);
	padding-left: 5px;
	padding-right: 5px;
	border: 1px solid var(--c-button-border-hover);
	cursor: pointer;
}

.listbox {
	overflow-y: auto;
	list-style:none;
	list-style-type:none;
	padding-left: 0;
	color: black;
	background: var(--c-search-bg);
	border: none;
  }
.listbox input[type="checkbox"] + label {
	/* Dans le flux, a cote de sa case (06/11/2026) : en position absolue, la ligne n'avait que la hauteur de la case (16 px)
	   et le libelle, a la police de la v3 (16 px, 20 px de haut), chevauchait la ligne suivante (listes a cocher des
	   Optimisations et des Projets : 12 lignes sur 13). Un libelle long passe a la ligne au lieu de deborder. */
	position: static;
	opacity: 100%;
	color: black;
	background: var(--c-search-bg);
}
.listbox input[type="checkbox"]:checked:focus + label {
	color: black;
	background: var(--c-search-bg);
}
.listbox label {
	cursor: pointer;
	user-select: none;
	color: black;
	background: var(--c-search-bg);
}

/* Barre de navigation basse smartphone. La classe n'existe dans le DOM que quand
   Menu.php detecte un UA smartphone (OnSmartphone) — donc ces regles ne s'appliquent
   jamais sur desktop, pas besoin de @media. */
.bottomnav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-around;
	align-items: stretch;
	background: var(--color-bg);
	border-top: 1px solid var(--color-border-strong);
	box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
	z-index: 9000;
	padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottomnav a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6px 4px;
	text-decoration: none;
	color: var(--color-primary);
	font-family: var(--font);
	font-size: 11px;
	font-weight: 600;
	min-height: 56px;
	background: transparent;
}
.bottomnav a:active {
	background: #eef2ff;
}
.bottomnav .bn-icon {
	font-size: 22px;
	line-height: 1;
	margin-bottom: 2px;
}
/* Reserve l'espace pour que la bottomnav (position fixed) ne masque pas le
   contenu en bas des pages (ex. boutons en bas de SheetPage). */
body.has-bottomnav { padding-bottom: 64px; }
.bottomnav a.bn-disabled {
	color: var(--color-text-faint);
	pointer-events: none;
	cursor: default;
	opacity: 0.55;
}

/* Chevron de repli/depli. Positionne au-dessus de la barre, centre horizontalement. */
.bottomnav {
	transition: transform 0.25s ease;
}
.bottomnav .bn-toggle {
	position: absolute;
	top: -16px;
	left: 50%;
	width: 44px;
	height: 18px;
	border: 1px solid var(--color-border-strong);
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	background: var(--color-bg);
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	z-index: 9001;
	box-shadow: 0 -2px 4px rgba(0,0,0,0.06);
	transform: translateX(-50%);
	transition: transform 0.25s ease;
}
/* Etat replie : la barre descend hors viewport, le chevron remonte de sa hauteur
   pour rester visible juste au-dessus du bord, et tourne pour pointer vers le haut. */
.bottomnav.collapsed {
	transform: translateY(100%);
}
.bottomnav.collapsed .bn-toggle {
	transform: translateX(-50%) translateY(-18px) rotate(180deg);
	border: 1px solid var(--color-border-strong);
	border-radius: 8px;
}

/* Popup "Menu complet" mobile : sous-menu (Nouveau DPE / Forum / Compte / etc.)
   declenche par le bouton "Menu" de la barre basse. Caché par défaut, affiché
   quand la classe .open est posée par le JS du bouton. Emis par Menu.php
   uniquement quand $bAndroid. */
.mobile-menu-popup {
	display: none;
	position: fixed;
	right: 8px;
	bottom: 72px;  /* au-dessus de la bottomnav (56px + marge) */
	z-index: 9100; /* > bottomnav (9000) */
	margin: 0;
	padding: 6px 0;
	min-width: 220px;
	max-height: calc(100vh - 90px);  /* laisse 90px pour bottomnav + marges */
	overflow-y: auto;                /* scrollable si trop d'items pour le viewport */
	-webkit-overflow-scrolling: touch;
	background: var(--color-bg);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	list-style: none;
	font-family: var(--font);
}
.mobile-menu-popup.open {
	display: block;
}
.mobile-menu-popup li {
	padding: 12px 18px;
	font-size: 15px;
	color: var(--color-text);
	cursor: pointer;
	border-top: 1px solid var(--color-bg-hero);
}
.mobile-menu-popup li:first-child {
	border-top: none;
}
.mobile-menu-popup li:active {
	background: #eef2ff;
}
