/* En-tête (.dt) et pied (.df) communs — partials/chrome.php.
   Autonome : se charge aussi bien sous le design system que sous Elementor, sans
   domiceo-ds.css. Tout sélecteur porte deux classes (0,2,0) pour passer devant
   le reset de Hello (a, summary) et le kit Elementor (.elementor-kit-6 a).
   Couleurs : particuliers bleu, pros vert, mêmes rampes que palettes.css. */

.dt, .df, .dt__dd--part, .dt__mgroup--part, .df__col--part {
	--c: #17638A; --c-deep: #15527A; --c-ink: #0E3F5C; --c-light: #EDF5FF; --c-tint: #F5FAFF;
	--c-line: #D5E4F0; --c-shadow: rgba(23,99,138,.6);
}
.dt--pro, .df--pro, .dt__dd--pro, .dt__mgroup--pro, .df__col--pro {
	--c: #1A6B42; --c-deep: #165B3B; --c-ink: #0E3F26; --c-light: #EFFBF5; --c-tint: #F7FDFA;
	--c-line: #CFE8DA; --c-shadow: rgba(26,107,66,.6);
}
.df .df__col--agence { --c: #0E3F5C; }

.dt *, .dt *::before, .dt *::after, .df *, .df *::before, .df *::after { box-sizing: border-box; }
.dt a:focus-visible, .dt summary:focus-visible, .df a:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.dt summary::-webkit-details-marker { display: none; }
.dt summary::marker { content: ""; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.dt {
	position: sticky; top: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100;
	font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px; line-height: 1.5; color: #101828; -webkit-font-smoothing: antialiased;
	border-bottom: 1px solid #E6E4DA;
}
/* Le flou vit sur un pseudo-élément : posé sur .dt, backdrop-filter ferait de
   l'en-tête le bloc conteneur du panneau mobile en position:fixed. */
.dt::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(254,254,248,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dt .dt__bar {
	max-width: 1160px; margin: 0 auto; height: 62px; padding: 0 12px 0 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dt .dt__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dt .dt__brand img { display: block; width: 36px; height: 36px; max-width: none; border-radius: 8px; }
.dt .dt__name {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 19px;
	line-height: 1; letter-spacing: -.02em; color: var(--c-ink);
}

/* Navigation bureau */
.dt .dt__nav { display: none; }
.dt .dt__item {
	display: flex; align-items: center; gap: 6px; margin: 0; padding: 9px 13px; border-radius: 9px;
	font-family: inherit; font-weight: 600; font-size: 15.5px; line-height: 1.2; color: #475467;
	text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap;
	transition: color .18s, background .18s;
}
.dt .dt__item:hover, .dt .dt__dd[open] > .dt__item { color: var(--c-ink); background: var(--c-light); }
.dt .dt__item svg { transition: transform .18s; }
.dt .dt__dd[open] > .dt__item svg { transform: rotate(180deg); }
.dt .dt__dd { position: relative; }
.dt .dt__panel {
	position: absolute; top: calc(100% + 12px); left: -8px; width: 400px; padding: 8px;
	display: flex; flex-direction: column; gap: 2px;
	background: #fff; border: 1px solid #E6E4DA; border-radius: 16px;
	box-shadow: 0 18px 40px -12px rgba(16,24,40,.18), 0 2px 6px rgba(16,24,40,.06);
}
.dt .dt__card { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 11px; text-decoration: none; }
.dt .dt__card:hover { background: var(--c-tint); }
.dt .dt__ico {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px;
	display: flex; align-items: center; justify-content: center; background: var(--c-light); color: var(--c);
}
.dt .dt__txt { display: flex; flex-direction: column; gap: 2px; }
.dt .dt__t { font-weight: 700; font-size: 16px; line-height: 1.3; color: #101828; }
.dt .dt__d { font-size: 14px; line-height: 1.4; color: #475467; }
.dt .dt__more {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin: 6px 4px 2px; padding: 12px 8px 6px; border-top: 1px solid #E6E4DA;
	font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--c); text-decoration: none;
}
.dt .dt__more:hover { color: var(--c-ink); }

/* Actions */
.dt .dt__actions { display: flex; align-items: center; gap: 6px; }
.dt .dt__tel {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px;
	padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: 16.5px; line-height: 1;
	color: var(--c-ink); white-space: nowrap; text-decoration: none; transition: background .2s;
}
.dt .dt__tel:hover { background: var(--c-light); color: var(--c-ink); }
.dt .dt__tel svg { color: var(--c); }
.dt .dt__telnum { display: none; }
.dt .dt__cta { display: none; }

/* Menu mobile */
.dt .dt__m { margin: 0; }
.dt .dt__mbtn {
	position: relative; z-index: 2; display: flex; align-items: center; height: 44px; padding: 0 14px;
	border-radius: 11px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink);
	font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; list-style: none; user-select: none;
}
.dt .dt__mopen, .dt .dt__mclose { display: flex; align-items: center; gap: 8px; }
.dt .dt__mclose, .dt .dt__m[open] .dt__mopen { display: none; }
.dt .dt__m[open] .dt__mclose { display: flex; }
.dt .dt__m[open] .dt__mbtn { border-color: var(--c); background: var(--c-light); }
.dt .dt__mpanel {
	position: fixed; z-index: 1; left: 0; right: 0; bottom: 0;
	top: calc(62px + var(--wp-admin--admin-bar--height, 0px));
	display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
	background: #FEFEF8; border-top: 1px solid #E6E4DA;
}
html:has(.dt__m[open]) { overflow: hidden; }
.dt .dt__mnav { padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.dt .dt__mgroup { display: flex; flex-direction: column; }
.dt .dt__mtitle {
	margin: 0 0 6px; font-weight: 700; font-size: 12px; line-height: 1.4; letter-spacing: .12em;
	text-transform: uppercase; color: var(--c);
}
.dt .dt__mlink {
	display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid #E6E4DA;
	font-weight: 600; font-size: 16.5px; line-height: 1.3; color: #101828; text-decoration: none;
}
.dt .dt__mlink .dt__ico { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
.dt .dt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dt .dt__chip {
	display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 11px;
	background: #fff; border: 1px solid #E6E4DA; font-weight: 600; font-size: 15.5px; color: #101828; text-decoration: none;
}
.dt .dt__mfoot {
	position: sticky; bottom: 0; margin-top: auto; padding: 14px 16px 22px;
	display: flex; flex-direction: column; gap: 10px; background: #FEFEF8; border-top: 1px solid #E6E4DA;
}
.dt .dt__mcta, .dt .dt__mtel {
	display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px;
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none;
}
.dt .dt__mcta { min-height: 54px; background: var(--c); color: #fff; }
.dt .dt__mtel { min-height: 48px; border: 1.5px solid var(--c-line); color: var(--c-ink); }
.dt .dt__mtel svg { color: var(--c); }

/* Bandeau : bureau seulement. Sur mobile il coûte 34 px au-dessus du formulaire
   pour répéter la réassurance du hero (mesuré le 14/09, menage-ville.css). */
.dt .dt__value {
	display: none; background: var(--c); color: #fff; font-weight: 700; font-size: 12px; line-height: 1.25;
	text-align: center; padding: 5px 12px; letter-spacing: -.015em;
}
.dt .dt__value b { font-weight: 800; }

@media (min-width: 1024px) {
	.dt .dt__bar { height: 66px; padding: 0 20px; gap: 14px; }
	.dt .dt__brand { gap: 11px; }
	.dt .dt__brand img { width: 40px; height: 40px; border-radius: 9px; }
	.dt .dt__name { font-size: 20.5px; }
	.dt .dt__nav { display: flex; align-items: center; gap: 4px; }
	.dt .dt__m { display: none; }
	.dt .dt__actions { gap: 10px; }
	.dt .dt__cta {
		display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px;
		border-radius: 11px; background: var(--c); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2;
		white-space: nowrap; text-decoration: none; box-shadow: 0 10px 24px -8px var(--c-shadow);
		transition: background .2s, transform .18s;
	}
	.dt .dt__cta:hover { background: var(--c-deep); color: #fff; transform: translateY(-1px); }
	.dt .dt__value { display: block; font-size: 12.5px; }
}
@media (min-width: 1200px) {
	.dt .dt__telnum { display: inline; }
	.dt .dt__tel { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.dt .dt__item, .dt .dt__item svg, .dt .dt__cta, .dt .dt__tel { transition: none; }
}

/* ── Place laissée à l'ancien en-tête ────────────────────────────────────────
   L'en-tête Elementor #123 était en position:fixed : les gabarits PHP lui
   gardaient 45 à 60 px en haut, chaque page Elementor une marge sur son premier
   bloc (65 px au débarras, 90 px à la fin de chantier). L'en-tête commun est dans
   le flux : ces réserves deviennent des trous, on les retire. */
body.page-template-template-nettoyage-coproprietes, body .page-template-template-nettoyage-coproprietes,
body.page-template-template-debarras, body .page-template-template-debarras,
body.page-template-template-grand-menage-printemps, body .page-template-template-grand-menage-printemps,
body.page-template-template-diagnostic-copro, body .page-template-template-diagnostic-copro { padding-top: 0; }
/* Premier bloc visible à chaque taille : certaines pages ont un hero propre au mobile, caché ailleurs. */
@media (min-width: 1025px) {
	body [data-elementor-type="wp-page"] > .e-con.e-parent:nth-child(1 of .e-con:not(.elementor-hidden-desktop)) { --margin-top: 0px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	body [data-elementor-type="wp-page"] > .e-con.e-parent:nth-child(1 of .e-con:not(.elementor-hidden-tablet)) { --margin-top: 0px; }
}
@media (max-width: 767px) {
	body [data-elementor-type="wp-page"] > .e-con.e-parent:nth-child(1 of .e-con:not(.elementor-hidden-mobile)) { --margin-top: 0px; }
}

/* ── Pied ────────────────────────────────────────────────────────────────── */
.df {
	padding: 38px 0; background: #FEFEF8; border-top: 1px solid #E6E4DA; color: #475467;
	font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
/* Place pour la barre de devis collante des gabarits du design system (mobile). */
body:has(.mobilebar) .df { padding-bottom: 108px; }
.df .df__inner, .df .df__bottom { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.df .df__inner { display: grid; gap: 26px; }
.df .df__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.df .df__brand img { display: block; width: 32px; height: 32px; max-width: none; border-radius: 8px; }
.df .df__name {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 18px;
	line-height: 1; letter-spacing: -.02em; color: #0E3F5C;
}
.df .df__p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: #475467; }
.df .df__p b { color: #101828; font-weight: 700; }
.df .df__tel { font-weight: 700; color: #0E3F5C; text-decoration: none; }
.df .df__avis, .df .df__bottom .df__a {
	font-weight: 600; color: #0E3F5C; text-decoration: underline; text-underline-offset: 2px;
}
.df .df__sap { display: block; width: 110px; height: auto; margin-top: 6px; }
.df .df__cols { display: grid; gap: 22px; }
.df .df__h {
	margin: 0 0 10px; font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600;
	font-size: 17px; line-height: 1.3; color: var(--c);
}
.df .df__ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.df .df__ul li { margin: 0; padding: 0; list-style: none; }
.df .df__a { font-weight: 500; color: #475467; text-decoration: none; }
.df .df__a:hover { color: #0E3F5C; text-decoration: underline; }
.df .df__bottom {
	margin-top: 30px; padding-top: 18px;
	background: linear-gradient(#E6E4DA, #E6E4DA) 20px 0 / calc(100% - 40px) 1px no-repeat;
}
.df .df__bottom .df__p { font-size: 13.5px; margin-bottom: 4px; }

@media (min-width: 600px) {
	.df .df__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
	.df .df__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
}
@media (min-width: 980px) {
	body:has(.mobilebar) .df { padding-bottom: 38px; }
}
