/*
 * Thème des pages publiques (objects/public_theme.php) : jetons de couleur et bouton soleil ou lune.
 *
 * Foncé reste l'apparence d'origine des pages ; clair reprend la palette du thème clair de l'app (style/ui_theme.css).
 * Une page publique écrit ses couleurs avec ces jetons, par exemple rgba(var(--pub-ink), 0.72) au lieu de
 * rgba(230, 231, 245, 0.72) : la même règle sert les deux thèmes et le foncé ne change pas d'un pixel.
 *
 *   --pub-ink      texte clair translucide du foncé (230, 231, 245), encre sombre en clair
 *   --pub-glass    voiles blancs du foncé (255, 255, 255), voiles sombres en clair
 *   --pub-blue     bleu AceMan translucide (169, 205, 253 ; --pub-blue-alt 166, 204, 255), bleu soutenu en clair
 *   --pub-text     texte courant (var(--light-color) en foncé)
 *   --pub-heading  titres (var(--white-color) en foncé)
 *   --pub-bg       fond de l'accueil (#1d1f26) ; --pub-page fond des autres pages (var(--dark-color))
 *   --pub-surface  barres et panneaux opaques (rgb 39, 41, 49)
 */
:root{
	--pub-bg: #1d1f26;
	--pub-bg-rgb: 29, 31, 38;
	--pub-page: #2A2C32;
	--pub-page-rgb: 42, 44, 50;
	--pub-surface: #24262d;
	--pub-surface-rgb: 39, 41, 49;
	--pub-text: #E6E7F5;
	--pub-heading: #ffffff;
	--pub-muted: rgba(230, 231, 245, 0.72);
	--pub-ink: 230, 231, 245;
	--pub-glass: 255, 255, 255;
	--pub-blue: 169, 205, 253;
	--pub-blue-alt: 166, 204, 255;
	--pub-link: #A9CDFD;
	--pub-green: #0CAC64;
	--pub-red: #D32335;
	--pub-shadow: 0, 0, 0;
}

/* index.css pose html, body { background-color: var(--dark-color) } : sans cette règle, une bande foncée paraît sous
   les pages claires plus courtes que l'écran ou quand on tire la page au-delà du bord. */
html[data-theme="light"]{
	color-scheme: light;
	background-color: var(--pub-page);
	--pub-bg: #ffffff;
	--pub-bg-rgb: 255, 255, 255;
	--pub-page: #f3f6fa;
	--pub-page-rgb: 243, 246, 250;
	--pub-surface: #ffffff;
	--pub-surface-rgb: 255, 255, 255;
	--pub-text: #252b35;
	--pub-heading: #141a23;
	--pub-muted: #5f6c7d;
	--pub-ink: 37, 43, 53;
	--pub-glass: 20, 26, 35;
	--pub-blue: 49, 95, 145;
	--pub-blue-alt: 49, 95, 145;
	--pub-link: #214d7c;
	--pub-green: #087a49;
	--pub-red: #b42335;
	--pub-shadow: 27, 39, 55;
}

html[data-theme="light"] ::selection{
	background: rgba(49, 95, 145, 0.2);
	color: #141a23;
}

/*
 * Bouton du thème (acemanPublicThemeSwitchHtml) : un rond avec une seule icône, le soleil en foncé et la lune en clair,
 * soit le thème où mène le geste. Les deux icônes sont dans la page et <html data-theme> choisit laquelle se voit.
 * !important sur la bordure, le fond et l'ombre : index.css et ui_theme.css habillent tous les boutons des pages
 * body.immoPage (!important).
 * Position et marges hors de :hover et :focus (9 novembre) : la page les règle (bouton posé en haut à droite de
 * l'en-tête sur téléphone) et le survol ne doit pas les reprendre, sinon le bouton retombait sous les liens dès que
 * la souris le touchait, puis remontait, en boucle.
 */
body .publicThemeSwitch{
	position: relative;
	margin: 0;
}

body .publicThemeSwitch,
body .publicThemeSwitch:hover,
body .publicThemeSwitch:focus{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	/* Taille : --pub-theme-toggle-size posé sur le bouton par une page (30px sur téléphone, par exemple). */
	width: var(--pub-theme-toggle-size, 34px);
	min-width: 0;
	height: var(--pub-theme-toggle-size, 34px);
	min-height: 0;
	padding: 0;
	border: 1px solid rgba(var(--pub-ink), 0.16) !important;
	border-radius: 50%;
	background: rgba(var(--pub-ink), 0.06) !important;
	box-shadow: none !important;
	color: var(--pub-heading);
	font: inherit;
	line-height: 1;
	text-transform: none;
	vertical-align: middle;
	cursor: pointer;
	transform: none;
	box-sizing: border-box;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
	-webkit-tap-highlight-color: transparent;
}

body .publicThemeSwitch:hover{
	border-color: rgba(var(--pub-blue), 0.46) !important;
	background: rgba(var(--pub-blue), 0.14) !important;
}

body .publicThemeSwitch:focus-visible{
	outline: 3px solid rgba(var(--pub-blue), 0.36);
	outline-offset: 2px;
}

.publicThemeIcon{
	display: block;
	width: 56%;
	height: 56%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.publicThemeIcon--moon,
html[data-theme="light"] .publicThemeIcon--sun{
	display: none;
}

html[data-theme="light"] .publicThemeIcon--moon{
	display: block;
}

/* == Section A : pages SEO, contact, légal, mission, équipe, pied de page commun == */
/*
 * Pages SEO (parts/public_seo_page.php, body.publicSeoPage) et famille body.publicPage (contact, légal, mission, équipe).
 * Leurs blocs <style> sont écrits en jetons. Ici : les règles de style/index.css (partagée avec l'app) qui colorent ces
 * pages, reprises en jetons pour le clair seulement, et les cadres posés en surfaces blanches comme dans l'app.
 */

/* Pages SEO : cadres blancs, ombre d'en-tête plus légère, petits textes au gris lisible. */
html[data-theme="light"] body.publicSeoPage .seoHeader{
	box-shadow: 0 10px 28px rgba(var(--pub-shadow), 0.08);
}

html[data-theme="light"] body.publicSeoPage :is(.seoVisual, .seoTableWrap, .seoFeature, .seoStep, .seoFaq details, .seoRelated a){
	background: var(--pub-surface);
}

html[data-theme="light"] body.publicSeoPage .seoRelated a:is(:hover, :focus-visible){
	background: rgba(var(--pub-blue), 0.1);
}

html[data-theme="light"] body.publicSeoPage .seoTableNote,
html[data-theme="light"] body.publicSeoPage .seoTable td::before{
	color: var(--pub-muted);
}

html[data-theme="light"] body.publicSeoPage .seoTable a:is(:hover, :focus-visible),
html[data-theme="light"] body.publicSeoPage .seoTableNote a:is(:hover, :focus-visible){
	color: var(--pub-heading);
}

/* Famille body.publicPage : fond, bande sous le pied de page (Safari iOS) à la couleur du pied de page. */
html[data-theme="light"] body.publicPage{
	background: linear-gradient(180deg, rgba(var(--pub-surface-rgb), 0.96), rgba(var(--pub-page-rgb), 1) 380px), var(--pub-page) !important;
	background-color: var(--pub-surface) !important;
	color: var(--pub-text) !important;
}

html[data-theme="light"] body.publicPage.legalPage,
html[data-theme="light"] body.publicPage.teamPage,
html[data-theme="light"] body.publicPage.dutyPage{
	background-color: var(--pub-surface) !important;
	background-image: linear-gradient(var(--pub-page), var(--pub-page)) !important;
}

html[data-theme="light"] body.publicPage.teamPage .team-page,
html[data-theme="light"] body.publicPage.dutyPage .duty-page{
	background: var(--pub-page) !important;
	background-color: var(--pub-page) !important;
}

/* En-tête et état de l'en-tête. */
html[data-theme="light"] body.publicPage .header{
	background: rgba(var(--pub-surface-rgb), 0.94) !important;
	color: var(--pub-text) !important;
	border-bottom-color: rgba(var(--pub-ink), 0.12);
	box-shadow: 0 10px 28px rgba(var(--pub-shadow), 0.08) !important;
}

html[data-theme="light"] body.publicPage #title{
	color: var(--pub-text) !important;
}

html[data-theme="light"] body.publicPage .appHeaderStatus{
	border-color: rgba(var(--pub-ink), 0.18);
	background: rgba(var(--pub-glass), 0.04);
	color: rgba(var(--pub-ink), 0.84);
}

html[data-theme="light"] body.publicPage .appHeaderStatus.is-processing{
	color: var(--pub-link);
	border-color: rgba(var(--pub-blue), 0.38);
	background: rgba(var(--pub-blue), 0.1);
}

html[data-theme="light"] body.publicPage .appHeaderStatus.is-ok{
	color: var(--pub-green);
	border-color: rgba(8, 122, 73, 0.38);
	background: rgba(8, 122, 73, 0.1);
}

html[data-theme="light"] body.publicPage .appHeaderStatus.is-warning{
	color: #945b00;
	border-color: rgba(148, 91, 0, 0.38);
	background: #fff4dc;
}

html[data-theme="light"] body.publicPage .appHeaderStatus.is-error{
	color: var(--pub-red);
	border-color: rgba(180, 35, 53, 0.38);
	background: #fdecef;
}

/* Pied de page commun (parts/footer.php). */
html[data-theme="light"] body.publicPage .footer,
html[data-theme="light"] body.publicPage .footer #footer{
	background: var(--pub-surface) !important;
	color: var(--pub-text) !important;
	border-top-color: rgba(var(--pub-ink), 0.12);
}

html[data-theme="light"] body.publicPage .footer a,
html[data-theme="light"] body.publicPage .footer a:visited{
	color: rgba(var(--pub-ink), 0.86) !important;
}

html[data-theme="light"] body.publicPage .footer a:hover,
html[data-theme="light"] body.publicPage .footer a:focus-visible{
	color: var(--pub-heading) !important;
}

/* Boutons teintés et lien « Lire la mission ». Le bouton Envoyer du contact garde sa teinte bleue (contact.php). */
html[data-theme="light"] body.publicPage .button,
html[data-theme="light"] body.publicPage button.button,
html[data-theme="light"] body.publicPage .team-mission-link{
	border-color: rgba(var(--pub-ink), 0.2) !important;
	background: rgba(var(--pub-ink), 0.06) !important;
	color: var(--pub-text) !important;
}

html[data-theme="light"] body.publicPage .button:hover,
html[data-theme="light"] body.publicPage .button:focus-visible,
html[data-theme="light"] body.publicPage .team-mission-link:hover,
html[data-theme="light"] body.publicPage .team-mission-link:focus-visible{
	border-color: rgba(var(--pub-ink), 0.34) !important;
	background: rgba(var(--pub-ink), 0.1) !important;
	color: var(--pub-heading) !important;
}

/* Contenu : titres, textes et cadres blancs. */
html[data-theme="light"] body.publicPage :is(.annex-page, .team-page, .duty-page, .team-founder, .team-future, .duty-band, .duty-proof){
	color: var(--pub-text) !important;
}

html[data-theme="light"] body.publicPage :is(.annex-hero h1, .team-hero h1, .duty-hero h1, .team-copy h2, .team-future h2, .duty-section-title h2, .duty-proof h2, .team-card h2, .duty-mission-item h3, .duty-signal strong){
	color: var(--pub-heading) !important;
}

html[data-theme="light"] body.publicPage :is(.annex-hero p, .team-hero p, .duty-hero-lead){
	color: rgba(var(--pub-ink), 0.8) !important;
}

html[data-theme="light"] body.publicPage :is(.team-copy p, .team-card p, .team-future-item span, .team-future-lead, .duty-section-title p, .duty-mission-item p, .duty-proof-item span, .duty-signal span){
	color: rgba(var(--pub-ink), 0.76) !important;
}

html[data-theme="light"] body.publicPage :is(.annex-panel, .team-card, .team-future-item, .duty-signal, .duty-mission-item, .duty-proof-item){
	border-color: rgba(var(--pub-ink), 0.14) !important;
	background: var(--pub-surface) !important;
	color: var(--pub-text) !important;
}

html[data-theme="light"] body.publicPage :is(.team-copy, .duty-section-title){
	border-color: rgba(var(--pub-ink), 0.12);
	background: var(--pub-surface);
}

html[data-theme="light"] body.publicPage .team-mark{
	background: rgba(var(--pub-blue-alt), 0.1) !important;
	color: var(--pub-link) !important;
	border-color: rgba(var(--pub-blue-alt), 0.36);
}

html[data-theme="light"] body.publicPage.teamPage .team-future-item strong,
html[data-theme="light"] body.publicPage.dutyPage .duty-proof-item strong{
	color: var(--pub-link) !important;
}

/* Formulaire de contact. */
html[data-theme="light"] body.publicPage :is(.contact-form .formText, .authField .formText, textarea.formText){
	border-color: rgba(var(--pub-ink), 0.2) !important;
	background: var(--pub-page) !important;
	color: var(--pub-text) !important;
}

html[data-theme="light"] body.publicPage :is(.contact-form .formText, textarea.formText)::placeholder{
	color: rgba(var(--pub-ink), 0.6) !important;
}

/* Documents légaux. */
html[data-theme="light"] body.publicPage.legalPage main{
	background: var(--pub-surface) !important;
	color: var(--pub-text) !important;
	border-color: rgba(var(--pub-ink), 0.14) !important;
}

html[data-theme="light"] body.publicPage.legalPage :is(h1, h2, h3){
	color: var(--pub-heading) !important;
}

html[data-theme="light"] body.publicPage.legalPage h2{
	border-bottom-color: rgba(var(--pub-ink), 0.2) !important;
}

html[data-theme="light"] body.publicPage.legalPage :is(p, li, td, th){
	color: rgba(var(--pub-ink), 0.82) !important;
}

html[data-theme="light"] body.publicPage.legalPage .last-updated{
	color: var(--pub-muted) !important;
}

html[data-theme="light"] body.publicPage.legalPage .placeholder{
	color: #945b00;
}

html[data-theme="light"] body.publicPage.legalPage .legal-note{
	background: #fff8e6 !important;
	border-color: rgba(148, 91, 0, 0.24) !important;
	border-left-color: rgba(201, 138, 20, 0.85) !important;
}

html[data-theme="light"] body.publicPage.legalPage nav.legal-nav{
	background: rgba(var(--pub-ink), 0.04) !important;
	border-color: rgba(var(--pub-ink), 0.12) !important;
}

html[data-theme="light"] body.publicPage.legalPage nav.legal-nav button{
	color: rgba(var(--pub-ink), 0.78) !important;
}

html[data-theme="light"] body.publicPage.legalPage nav.legal-nav button:hover,
html[data-theme="light"] body.publicPage.legalPage nav.legal-nav button:focus-visible{
	background: rgba(var(--pub-ink), 0.07) !important;
	color: var(--pub-heading) !important;
}

html[data-theme="light"] body.publicPage.legalPage nav.legal-nav button.active{
	background: rgba(var(--pub-blue), 0.12) !important;
	color: var(--pub-heading) !important;
	border-color: rgba(var(--pub-blue), 0.5) !important;
}

html[data-theme="light"] body.publicPage.legalPage :is(th, td){
	border-color: rgba(var(--pub-ink), 0.14) !important;
}

html[data-theme="light"] body.publicPage.legalPage th{
	background: rgba(var(--pub-ink), 0.05) !important;
}

html[data-theme="light"] body.publicPage.legalPage a{
	color: var(--pub-link) !important;
}

html[data-theme="light"] body.publicPage.legalPage a:hover,
html[data-theme="light"] body.publicPage.legalPage a:focus-visible{
	color: var(--pub-heading) !important;
}

html[data-theme="light"] body.publicPage.legalPage .footer a,
html[data-theme="light"] body.publicPage.legalPage .footer a:visited{
	color: rgba(var(--pub-ink), 0.86) !important;
}

html[data-theme="light"] body.publicPage.legalPage .footer a:hover,
html[data-theme="light"] body.publicPage.legalPage .footer a:focus-visible{
	color: var(--pub-heading) !important;
}
/* == Fin section A == */

/* == Section B : connexion, inscription, mot de passe, vérification d'un document, montre == */
/*
 * Connexion (login.php, body.loginBody, fenêtres « Créer un compte » et « Réinitialiser le mot de passe »), inscription
 * (signup_immo.php, body.signupImmoBody), nouveau mot de passe (password.php, body.passwordResetBody), vérification d'un
 * document (verify_document.php) et montre (montre.php), ces deux-là de la famille body.docAccessBody. Les autres pages
 * docAccess (download_doc.php, pdf_access_page.php, inventory_appointment_page.php) ne chargent pas cette feuille.
 * Règles d'index.css (partagée avec l'app) reprises pour le clair seulement, aux couleurs du thème clair de l'app
 * (style/ui_theme.css) ; le foncé ne change pas. En-tête : bouton du thème à droite, avant le bouton de la page.
 */

/* Fond de la racine : index.css le pose en var(--dark-color) (html, body) et login, inscription et mot de passe le
   reprenaient en style sur <html> ; en clair, la page plus longue que l'écran montrait ce foncé sous le contenu. */
html:has(> :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody)){
	background-color: var(--pub-page);
}

html:has(> :is(body.loginBody, body.signupImmoBody)){
	color: var(--pub-text);
}

/* En-tête : le bouton du thème se range à gauche du bouton de la page (S'inscrire!, Se déconnecter). */
:is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeaderSection .header_section_right{
	gap: 10px;
}

/* Téléphone : la marque et les boutons sur la première ligne, l'état de la page dessous sur toute la largeur (comme
   l'inscription, index.css « Se déconnecter dans l'en-tête »), au lieu d'une pastille serrée entre les deux. */
@media (max-width: 700px){
	:is(body.loginBody, body.passwordResetBody, body.docAccessBody) .appHeaderSection{
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		justify-items: stretch;
		gap: 8px 12px;
	}

	:is(body.loginBody, body.passwordResetBody, body.docAccessBody) .appHeaderSection .header_section_title{
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		min-width: 0;
	}

	:is(body.loginBody, body.passwordResetBody, body.docAccessBody) .appHeaderSection .header_section_right{
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	:is(body.loginBody, body.passwordResetBody, body.docAccessBody) .appHeaderSection .appHeaderStatus{
		grid-column: 1 / -1;
		grid-row: 2;
		position: static;
		width: 100%;
		max-width: 100%;
		margin-top: 0;
		transform: none;
		white-space: normal;
	}

	:is(body.loginBody, body.signupImmoBody) .appHeaderSection .header_section_right{
		gap: 8px;
	}
}

/* ---- Clair : jetons communs ---- */
html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody, body.immoPage){
	--pubB-border: #d9e1eb;
	--pubB-border-strong: #bec9d7;
	--pubB-subtle: #7c8796;
	--pubB-accent: #315f91;
	--pubB-accent-rgb: 49, 95, 145;
	--pubB-accent-strong: #214d7c;
	--pubB-accent-soft: #e7f0fa;
	--pubB-focus: rgba(49, 95, 145, 0.2);
	--pubB-surface-alt: #f7f9fc;
	--pubB-surface-soft: #edf2f7;
	--pubB-success: #087a49;
	--pubB-success-soft: #e8f7ef;
	--pubB-warning: #945b00;
	--pubB-warning-soft: #fff4dc;
	--pubB-danger: #b42335;
	--pubB-danger-soft: #fdecef;
	--pubB-panel-shadow: 0 24px 52px rgba(var(--pub-shadow), 0.1);
}

/* Teintes d'action (index.css « Shared semantic language for business actions ») : boutons clairs de l'app. */
html[data-theme="light"] :is(body.loginBody, body.signupImmoBody){
	--action-tone-blue: #214d7c;
	--action-tone-blue-bg: #e7f0fa;
	--action-tone-blue-border: #b7cbe1;
	--action-tone-blue-hover: #173b61;
	--action-tone-blue-hover-bg: #d8e6f5;
	--action-tone-blue-hover-border: #8fb0d3;
	--action-tone-green: #17623e;
	--action-tone-green-bg: #dff1e7;
	--action-tone-green-border: #83bfa1;
	--action-tone-green-hover: #0f5534;
	--action-tone-green-hover-bg: #cde8d9;
	--action-tone-green-hover-border: #66aa87;
	--action-tone-red: #8b2634;
	--action-tone-red-bg: #f4dfe3;
	--action-tone-red-border: #d58b95;
	--action-tone-red-hover: #731c29;
	--action-tone-red-hover-bg: #eccdd2;
	--action-tone-red-hover-border: #c5727e;
	--action-tone-neutral: #3c4755;
	--action-tone-neutral-bg: #e9edf2;
	--action-tone-neutral-border: #b9c4d0;
	--action-tone-neutral-hover: #273442;
	--action-tone-neutral-hover-bg: #dde4eb;
	--action-tone-neutral-hover-border: #9eacbb;
}

/* ---- Clair : fond, en-tête, pied de page ---- */
html[data-theme="light"] :is(body.signupImmoBody, body.passwordResetBody, body.docAccessBody){
	background: var(--pub-page);
	color: var(--pub-text);
}

html[data-theme="light"] body.loginBody{
	background:
		radial-gradient(circle at 22% 28%, rgba(49, 95, 145, 0.09), transparent 34rem),
		radial-gradient(circle at 82% 18%, rgba(16, 135, 214, 0.06), transparent 30rem),
		var(--pub-page);
}

html[data-theme="light"] body.loginBody .loginMain{
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
		transparent;
}

/* Même en-tête que les pages publiques (section A) ; !important : couleurs de l'en-tête de login.php en style. */
html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeader{
	background: rgba(var(--pub-surface-rgb), 0.94) !important;
	border-bottom-color: rgba(var(--pub-ink), 0.12);
	color: var(--pub-text) !important;
	box-shadow: 0 10px 28px rgba(var(--pub-shadow), 0.08) !important;
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeader #title{
	color: var(--pub-text);
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeaderStatus{
	border-color: rgba(var(--pub-ink), 0.18);
	background: rgba(var(--pub-glass), 0.04);
	color: rgba(var(--pub-ink), 0.84);
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeaderStatus.is-processing{
	border-color: rgba(var(--pub-blue), 0.38);
	background: rgba(var(--pub-blue), 0.1);
	color: var(--pub-link);
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeaderStatus.is-ok{
	border-color: rgba(8, 122, 73, 0.38);
	background: rgba(8, 122, 73, 0.1);
	color: var(--pub-green);
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeaderStatus.is-warning{
	border-color: rgba(148, 91, 0, 0.38);
	background: #fff4dc;
	color: #945b00;
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .appHeaderStatus.is-error{
	border-color: rgba(180, 35, 53, 0.38);
	background: #fdecef;
	color: var(--pub-red);
}

html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) .footer,
html[data-theme="light"] :is(body.loginBody, body.signupImmoBody, body.passwordResetBody, body.docAccessBody) #footer{
	background-color: var(--pub-page);
	color: var(--pub-text);
}

/* ---- Clair : connexion (login.php) ---- */
html[data-theme="light"] body.loginBody .loginVisual{
	color: var(--pub-text);
}

html[data-theme="light"] body.loginBody .loginVisual img{
	filter: drop-shadow(0 24px 42px rgba(var(--pub-shadow), 0.16));
}

html[data-theme="light"] body.loginBody .loginVisual p{
	color: rgba(var(--pub-ink), 0.82);
}

html[data-theme="light"] body.loginBody .loginCard{
	border-color: var(--pubB-border);
	background: var(--pub-surface);
	box-shadow: 0 24px 64px rgba(var(--pub-shadow), 0.12);
}

html[data-theme="light"] body.loginBody .authEyebrow,
html[data-theme="light"] body.loginBody .loginIntro .authEyebrow{
	color: var(--pubB-accent) !important;
}

html[data-theme="light"] body.loginBody .loginIntro h1{
	color: var(--pub-heading);
}

html[data-theme="light"] body.loginBody .loginIntro p{
	color: var(--pub-muted);
}

html[data-theme="light"] body.loginBody .loginCard .authField,
html[data-theme="light"] body.loginBody .loginCard .authField label,
html[data-theme="light"] body.loginBody .loginCard .authField > span{
	color: var(--pub-text);
}

html[data-theme="light"] body.loginBody .loginRemember{
	color: var(--pub-text);
}

html[data-theme="light"] body.loginBody .loginRemember input{
	accent-color: var(--pubB-accent);
}

/* Champs de la carte et des fenêtres : surface blanche, bordure de l'app, anneau bleu au focus. */
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .formText,
html[data-theme="light"] body.loginBody .loginField,
html[data-theme="light"] body.loginBody .loginCard .authField .formText,
html[data-theme="light"] body.loginBody .loginCard .loginField{
	border-color: var(--pubB-border-strong);
	background-color: var(--pub-surface);
	color: var(--pub-text);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .formText::placeholder,
html[data-theme="light"] body.loginBody .loginField::placeholder,
html[data-theme="light"] body.loginBody .loginCard .authField .formText::placeholder,
html[data-theme="light"] body.loginBody .loginCard .loginField::placeholder{
	color: var(--pubB-subtle);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .formText:focus,
html[data-theme="light"] body.loginBody .loginField:focus{
	border-color: var(--pubB-accent);
	background-color: var(--pub-surface);
	box-shadow: 0 0 0 3px var(--pubB-focus);
}

/* Fenêtres « Créer un compte » et « Réinitialiser le mot de passe » (#signup a ses propres règles !important), sur la
   page de connexion comme sur l'accueil (body.immoPage, 9 novembre : étiquettes et mot de passe y restaient foncés). */
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal{
	border-color: var(--pubB-border);
	background: var(--pub-surface) !important;
	background-color: var(--pub-surface) !important;
	color: var(--pub-text);
	box-shadow: 0 24px 64px rgba(var(--pub-shadow), 0.18);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModalHeader{
	border-bottom-color: var(--pubB-border);
	background: var(--pubB-surface-alt);
	color: var(--pub-heading);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal .close-button,
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal .modal-header .close-button{
	border-color: var(--action-tone-neutral-border) !important;
	background: var(--action-tone-neutral-bg) !important;
	color: var(--action-tone-neutral) !important;
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal .close-button:hover,
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal .close-button:focus-visible{
	border-color: var(--action-tone-neutral-hover-border) !important;
	background: var(--action-tone-neutral-hover-bg) !important;
	color: var(--action-tone-neutral-hover) !important;
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModalLead,
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authLegal{
	color: var(--pub-muted);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authLegal a{
	color: var(--pub-link);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField{
	color: var(--pub-text);
}

/* Étiquettes posées sur la bordure des champs : fond de la fenêtre. */
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal .authField label,
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authModal .authField > span,
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authAccountSwitchLabel,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField label,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField > span,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authAccountSwitchLabel{
	background: var(--pub-surface) !important;
	background-color: var(--pub-surface) !important;
	color: var(--pub-muted);
}

/* Mot de passe et sa jauge : la bordure se remplit de la couleur de la force (script de login.php). */
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .passwordStrengthInput,
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .passwordStrengthInput:focus,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField .passwordStrengthInput,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField .passwordStrengthInput:focus{
	border: 1px solid var(--pubB-border-strong) !important;
	border-color: var(--pubB-border-strong) !important;
	background: var(--pub-surface) !important;
	background-color: var(--pub-surface) !important;
	background-image: none !important;
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .passwordStrengthInput:focus,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField .passwordStrengthInput:focus{
	border-color: var(--pubB-accent) !important;
	box-shadow: 0 0 0 3px var(--pubB-focus);
}

html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .passwordStrengthInput.is-strength-active:not(:placeholder-shown),
html[data-theme="light"] :is(body.loginBody, body.immoPage) .authField .passwordStrengthInput.is-strength-active:not(:placeholder-shown):focus,
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField .passwordStrengthInput.is-strength-active:not(:placeholder-shown),
html[data-theme="light"] :is(body.loginBody, body.immoPage) #signup.authModal .authField .passwordStrengthInput.is-strength-active:not(:placeholder-shown):focus{
	border: 1px solid transparent !important;
	border-color: transparent !important;
	background:
		linear-gradient(var(--pub-surface), var(--pub-surface)) padding-box,
		linear-gradient(
			90deg,
			var(--password-strength-color) 0%,
			var(--password-strength-color) var(--password-strength-width),
			var(--pubB-border-strong) var(--password-strength-width),
			var(--pubB-border-strong) 100%
		) border-box !important;
	background-color: transparent !important;
}

/* Invitation d'un cabinet (login.php?ref=… ou ?code=…). */
html[data-theme="light"] body.loginBody .signupFirmOffer{
	border-color: #b7cbe1;
	background: var(--pubB-accent-soft);
}

html[data-theme="light"] body.loginBody .signupFirmName{
	color: var(--pub-heading);
}

html[data-theme="light"] body.loginBody .signupFirmOffer p{
	color: var(--pub-text);
}

html[data-theme="light"] body.loginBody .signupFirmOffer .authEyebrow{
	color: var(--pubB-accent-strong) !important;
}

html[data-theme="light"] body.loginBody #overlay{
	background-color: rgba(var(--pub-shadow), 0.42);
}

/* Messages sous les mots de passe (connexion et nouveau mot de passe). */
html[data-theme="light"] :is(body.loginBody, body.passwordResetBody, body.immoPage) .authLiveStatus.has-message{
	border-color: var(--pubB-border-strong);
	background: var(--pubB-surface-alt);
	color: var(--pub-text);
}

html[data-theme="light"] :is(body.loginBody, body.passwordResetBody, body.immoPage) .authLiveStatus.is-ok{
	border-color: #acd9c1;
	background: var(--pubB-success-soft);
	color: var(--pubB-success);
}

html[data-theme="light"] :is(body.loginBody, body.passwordResetBody, body.immoPage) .authLiveStatus.is-error{
	border-color: #e7b4bb;
	background: var(--pubB-danger-soft);
	color: var(--pubB-danger);
}

html[data-theme="light"] :is(body.loginBody, body.passwordResetBody, body.immoPage) .authLiveStatus.is-warn{
	border-color: #ebcd91;
	background: var(--pubB-warning-soft);
	color: var(--pubB-warning);
}

/* ---- Clair : cartes de l'inscription, du nouveau mot de passe et de la famille docAccess ---- */
html[data-theme="light"] body.signupImmoBody{
	--account-accent-color: var(--pubB-accent);
	--account-accent-rgb: var(--pubB-accent-rgb);
}

html[data-theme="light"] body.docAccessBody{
	--doc-access-accent-color: var(--pubB-accent);
	--doc-access-accent-rgb: var(--pubB-accent-rgb);
}

html[data-theme="light"] body.signupImmoBody .signupImmoPanel,
html[data-theme="light"] body.passwordResetBody .passwordResetPanel,
html[data-theme="light"] body.docAccessBody .docAccessPanel{
	border-color: var(--pubB-border);
	background: var(--pub-surface);
	box-shadow: var(--pubB-panel-shadow);
	color: var(--pub-text);
}

html[data-theme="light"] body.signupImmoBody .signupImmoEyebrow,
html[data-theme="light"] body.passwordResetBody .passwordResetEyebrow,
html[data-theme="light"] body.docAccessBody .docAccessEyebrow{
	color: var(--pub-text);
}

html[data-theme="light"] body.signupImmoBody .signupImmoPanel h1,
html[data-theme="light"] body.passwordResetBody .passwordResetPanel h1,
html[data-theme="light"] body.docAccessBody .docAccessPanel h1{
	color: var(--pub-heading);
}

html[data-theme="light"] body.signupImmoBody :is(.signupImmoLead, .signupImmoMessagePanel p),
html[data-theme="light"] body.passwordResetBody .passwordResetLead,
html[data-theme="light"] body.docAccessBody .docAccessLead{
	color: var(--pub-muted);
}

html[data-theme="light"] body.signupImmoBody .signupImmoLead strong{
	color: var(--pub-heading);
}

/* Encadrés : voile neutre et filet de couleur ; erreurs en rouge clair de l'app. */
html[data-theme="light"] body.signupImmoBody .signupImmoNotice,
html[data-theme="light"] body.passwordResetBody .passwordResetNotice,
html[data-theme="light"] body.docAccessBody .docAccessNotice{
	background: var(--pubB-surface-alt);
	color: var(--pub-text);
}

html[data-theme="light"] body.signupImmoBody .signupImmoNotice.is-error,
html[data-theme="light"] body.passwordResetBody .passwordResetNotice.is-error,
html[data-theme="light"] body.docAccessBody .docAccessNotice.is-error{
	border-left-color: var(--pubB-danger);
	background: var(--pubB-danger-soft);
	color: var(--pubB-danger);
}

/* Étiquettes et champs. */
html[data-theme="light"] body.signupImmoBody .signupImmoField > :is(span, label),
html[data-theme="light"] body.passwordResetBody .passwordResetField span,
html[data-theme="light"] body.docAccessBody .docAccessField span{
	color: var(--pub-muted);
}

html[data-theme="light"] body.signupImmoBody .signupImmoField input,
html[data-theme="light"] body.passwordResetBody .passwordResetField input,
html[data-theme="light"] body.docAccessBody .docAccessField input{
	border-color: var(--pubB-border-strong);
	background: var(--pub-surface);
	color: var(--pub-heading);
}

html[data-theme="light"] body.signupImmoBody .signupImmoField input::placeholder,
html[data-theme="light"] body.passwordResetBody .passwordResetField input::placeholder,
html[data-theme="light"] body.docAccessBody .docAccessField input::placeholder{
	color: var(--pubB-subtle);
}

html[data-theme="light"] body.signupImmoBody .signupImmoField input:focus,
html[data-theme="light"] body.passwordResetBody .passwordResetField input:focus,
html[data-theme="light"] body.docAccessBody .docAccessField input:focus{
	border-color: var(--pubB-accent);
	background: var(--pub-surface);
	box-shadow: 0 0 0 3px var(--pubB-focus);
}

html[data-theme="light"] body.signupImmoBody .signupImmoField input.is-invalid{
	border-color: var(--pubB-danger);
	background: var(--pubB-danger-soft);
}

html[data-theme="light"] body.signupImmoBody .signupImmoField input[readonly]{
	color: var(--pub-muted);
}

html[data-theme="light"] body.signupImmoBody .signupImmoField input[readonly]:not(.signupImmoPhonePrefix){
	background: var(--pubB-surface-soft);
}

/* Indicatif et numéro dans un même cadre (les deux champs restent transparents dedans). */
html[data-theme="light"] body.signupImmoBody .signupImmoPhoneControl{
	border-color: var(--pubB-border-strong);
	background: var(--pub-surface);
}

html[data-theme="light"] body.signupImmoBody .signupImmoPhoneControl:focus-within{
	border-color: var(--pubB-accent);
	background: var(--pub-surface);
	box-shadow: 0 0 0 3px var(--pubB-focus);
}

html[data-theme="light"] body.signupImmoBody .signupImmoPhoneControl.is-invalid{
	border-color: var(--pubB-danger);
	background: var(--pubB-danger-soft);
}

html[data-theme="light"] body.signupImmoBody .signupImmoPhoneControl :is(.signupImmoPhonePrefix, .signupImmoPhoneNumber),
html[data-theme="light"] body.signupImmoBody .signupImmoPhoneControl :is(.signupImmoPhonePrefix, .signupImmoPhoneNumber):is(:focus, .is-invalid){
	border-color: var(--pubB-border);
	background: transparent;
	box-shadow: none;
}

html[data-theme="light"] body.signupImmoBody .signupImmoSecondary:is(.is-disabled, :disabled){
	border-color: var(--pubB-border);
	background: var(--pubB-surface-alt);
	color: #687482;
}

/* Nouveau mot de passe : icône de clé, filet du surtitre, jauge et boutons. */
html[data-theme="light"] body.passwordResetBody .passwordResetStatus{
	border-color: rgba(var(--pubB-accent-rgb), 0.42);
	background: var(--pubB-accent-soft);
}

html[data-theme="light"] body.passwordResetBody .passwordResetStatus span,
html[data-theme="light"] body.passwordResetBody .passwordResetStatus span::before{
	border-color: var(--pubB-accent);
}

html[data-theme="light"] body.passwordResetBody .passwordResetStatus span::after,
html[data-theme="light"] body.passwordResetBody .passwordResetEyebrow::before{
	background-color: var(--pubB-accent);
}

html[data-theme="light"] body.passwordResetBody .passwordResetStatusKey span::after{
	background:
		linear-gradient(var(--pubB-accent), var(--pubB-accent)) right 0 bottom -4px / 5px 5px no-repeat,
		linear-gradient(var(--pubB-accent), var(--pubB-accent)) right 2px bottom -4px / 4px 8px no-repeat,
		var(--pubB-accent);
}

html[data-theme="light"] body.passwordResetBody .passwordResetField .passwordStrengthInput,
html[data-theme="light"] body.passwordResetBody .passwordResetField .passwordStrengthInput:focus{
	border-color: var(--pubB-border-strong);
	background-color: var(--pub-surface);
	background-image: none;
}

html[data-theme="light"] body.passwordResetBody .passwordResetField .passwordStrengthInput:focus{
	border-color: var(--pubB-accent);
	box-shadow: 0 0 0 3px var(--pubB-focus);
}

html[data-theme="light"] body.passwordResetBody .passwordResetField .passwordStrengthInput.is-strength-active:not(:placeholder-shown),
html[data-theme="light"] body.passwordResetBody .passwordResetField .passwordStrengthInput.is-strength-active:not(:placeholder-shown):focus{
	border: 1px solid transparent;
	background:
		linear-gradient(var(--pub-surface), var(--pub-surface)) padding-box,
		linear-gradient(
			90deg,
			var(--password-strength-color) 0%,
			var(--password-strength-color) var(--password-strength-width),
			var(--pubB-border-strong) var(--password-strength-width),
			var(--pubB-border-strong) 100%
		) border-box;
}

html[data-theme="light"] body.passwordResetBody .passwordResetAction,
html[data-theme="light"] body.docAccessBody .docAccessAction{
	border-color: #b7cbe1;
	background: var(--pubB-accent-soft);
	color: var(--pubB-accent-strong);
}

html[data-theme="light"] body.passwordResetBody .passwordResetAction:is(:hover, :focus-visible),
html[data-theme="light"] body.docAccessBody .docAccessAction:is(:hover, :focus-visible){
	border-color: #8fb0d3;
	background: #d8e6f5;
	color: #173b61;
}

html[data-theme="light"] body.passwordResetBody .passwordResetSecondary{
	border-color: #b9c4d0;
	background: #e9edf2;
	color: #3c4755;
}

html[data-theme="light"] body.passwordResetBody .passwordResetSecondary:is(:hover, :focus-visible){
	border-color: #8fb0d3;
	background: var(--pubB-accent-soft);
	color: var(--pubB-accent-strong);
}

/* ---- Clair : vérification d'un document (verify_document.php) ---- */
html[data-theme="light"] body.docAccessBody .documentVerifyMethod{
	border-color: var(--pubB-border);
	background: var(--pubB-surface-alt);
}

html[data-theme="light"] body.docAccessBody .documentVerifyMethod--pdf{
	border-color: rgba(var(--pubB-accent-rgb), 0.24);
	background: rgba(var(--pubB-accent-rgb), 0.045);
}

html[data-theme="light"] body.docAccessBody .documentVerifyMethodIndex{
	color: var(--pubB-accent);
}

html[data-theme="light"] body.docAccessBody .documentVerifyMethod h2{
	color: var(--pub-heading);
}

html[data-theme="light"] body.docAccessBody .documentVerifyMethodLead,
html[data-theme="light"] body.docAccessBody .documentVerifyPrivacy{
	color: var(--pub-muted);
}

html[data-theme="light"] body.docAccessBody .documentVerifyUploadField input[type="file"]{
	border-color: var(--pubB-border-strong);
	background: var(--pub-surface);
	color: var(--pub-text);
}

html[data-theme="light"] body.docAccessBody .documentVerifyUploadField input[type="file"]::file-selector-button{
	background: #dde9f6;
	color: var(--pubB-accent-strong);
}

html[data-theme="light"] body.docAccessBody .documentVerifyClientError{
	border-left-color: var(--pubB-danger);
	background: var(--pubB-danger-soft);
	color: var(--pubB-danger);
}

html[data-theme="light"] body.docAccessBody .documentVerifyResult.is-ok{
	border-left-color: var(--pubB-success);
	background: var(--pubB-success-soft);
	color: var(--pubB-success);
}

html[data-theme="light"] body.docAccessBody .documentVerifyResult.is-warning{
	border-left-color: #c18d43;
	background: var(--pubB-warning-soft);
	color: #744700;
}

html[data-theme="light"] body.docAccessBody .documentVerifyDetails{
	border-top-color: rgba(var(--pub-ink), 0.14);
	color: var(--pub-text);
}

html[data-theme="light"] body.docAccessBody .documentVerifyDetails dt{
	color: var(--pub-muted);
}

html[data-theme="light"] body.docAccessBody .documentVerifyDetails code{
	color: var(--pub-heading);
}

html[data-theme="light"] body.docAccessBody .documentVerifyNote{
	border-top-color: var(--pubB-border);
	color: var(--pub-muted);
}

html[data-theme="light"] body.docAccessBody .documentVerifyNote strong{
	color: var(--pub-text);
}

html[data-theme="light"] body.docAccessBody .documentVerifyNoteLimit{
	border-top-color: var(--pubB-border);
}

html[data-theme="light"] body.docAccessBody .documentVerifySwitchOption:focus-visible{
	outline-color: var(--pubB-accent);
}

/* ---- Clair : montre (montre.php, couleurs d'accent de son bloc <style>) ---- */
html[data-theme="light"] .watchPairBody.is-approved{
	--doc-access-accent-color: var(--pubB-success);
	--doc-access-accent-rgb: 8, 122, 73;
}

html[data-theme="light"] .watchPairBody.is-refused{
	--doc-access-accent-color: var(--pubB-danger);
	--doc-access-accent-rgb: 180, 35, 53;
}

html[data-theme="light"] .watchPairBody.is-expired{
	--doc-access-accent-color: var(--pubB-warning);
	--doc-access-accent-rgb: 148, 91, 0;
}

html[data-theme="light"] .watchPairBody .watchPairAction.is-refuse{
	border-color: #d58b95;
	background: #f4dfe3;
	color: #8b2634;
}

html[data-theme="light"] .watchPairBody .watchPairAction.is-refuse:is(:hover, :focus-visible){
	border-color: #c5727e;
	background: #eccdd2;
	color: #731c29;
}

html[data-theme="light"] .watchPairBody .watchPairError{
	color: var(--pubB-danger);
}
/* == Fin section B == */

/* == Section C : accueil == */
/* == Fin section C == */
