/* Start custom CSS *//* Consultation privée (page 66, Figma Consultation-privée) — même structure et mêmes IDs que l'Estimation ; comportement dans maison-harri-scripts/js/mh-5-estimation.js. */

/* Stepper : étape en cours = rond or + libellé marine ; étape faite = rond beige + coche */
#mh-est-stepper > a { cursor: pointer; transition: opacity 0.2s; }
#mh-est-stepper > a:hover { opacity: 0.8; }
#mh-est-stepper > a.is-current { color: var(--mh-primary) !important; }
#mh-est-stepper > a.is-current > span, #mh-est-stepper > a.is-current > p { font-weight: 500; }
#mh-est-stepper > a.is-current > div { background-color: var(--mh-accent) !important; border-color: var(--mh-accent) !important; color: var(--mh-primary); }
#mh-est-stepper > a.is-current > div span { font-weight: 500; }
#mh-est-stepper > a.is-done > div { background-color: #DDD5C8 !important; border-color: #DDD5C8 !important; }
#mh-est-stepper > a.is-done > div > span { display: none; }
#mh-est-stepper > a.is-done > div > .e-svg-base, #mh-est-stepper > a.is-done > div > div { display: inline-block !important; }

/* Libellés : astérisque rouge, lien souligné */
#mh-estimation label strong { color: #B34C4B; font-weight: inherit; }
#mh-estimation label u { text-decoration: underline; }
#mh-estimation input::placeholder, #mh-estimation textarea::placeholder { color: #6B7280; opacity: 1; }
#mh-estimation input[type="checkbox"]:checked { background-color: var(--mh-accent) !important; border-color: var(--mh-accent) !important; }
#est-etape-3 p a { color: var(--mh-primary); font-weight: 500; text-decoration: underline; }

/* Étape 3 : 3 x 2 champs (écart vertical non exporté par Elementor) */
#est-etape-3 [data-interaction-id="4b97380"] { row-gap: 25px; column-gap: 36px; }

/* Étape 3 : récapitulatif (Figma) — icône = celle de la modalité choisie (--mh-ico copiée par le script), icônes Tabler en trait */
#mh-recap-icone { background-color: var(--mh-text-strong); -webkit-mask: var(--mh-ico) center / 24px 24px no-repeat; mask: var(--mh-ico) center / 24px 24px no-repeat; }
#mh-est-recap svg { fill: none; }

/* Étape 3 : liste « Nature du projet » = même champ que les autres, chevron du site, texte gris tant que rien n'est choisi */
#mh-f-nature { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background: url("/wp-content/uploads/2026/10/chevron-dark.svg") right 14px center / 16px 16px no-repeat; cursor: pointer; }
#mh-f-nature:invalid { color: #6B7280; }

/* Étape 1 : 3 cartes de modalité ; survol = bord or, icône or, titre Jost 700 marine ; choisie (Figma) = bord or, fond blanc, icône #494949, titre #1B1B1B */
#est-etape-1 > div:first-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
@media (max-width: 767px) { #est-etape-1 > div:first-child { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
#est-etape-1 > div:first-child > div:hover > span:nth-of-type(1) { color: #080C39; font-weight: 700; }
#est-etape-1 > div:first-child > :has(> input:checked) { border-color: var(--mh-accent) !important; background-color: var(--mh-surface) !important; }
#est-etape-1 > div:first-child > :has(> input:checked) > span:nth-of-type(1) { color: #1B1B1B; font-weight: 500; }
#est-etape-1 > div:first-child > :has(> input:checked) > span:nth-of-type(2) { color: #606060; }
#est-etape-1 > div:first-child > :has(> input:focus-visible) { outline: 2px solid var(--mh-accent); outline-offset: 2px; }
#est-etape-1 > div:first-child > div > div { width: 24px !important; height: 24px !important; background-color: #A4A6B6; -webkit-mask: var(--mh-ico) center / 24px 24px no-repeat; mask: var(--mh-ico) center / 24px 24px no-repeat; transition: background-color 0.2s; }
#est-etape-1 > div:first-child > div > div svg { display: none; }
#est-etape-1 > div:first-child > div:hover > div { background-color: var(--mh-accent); }
#est-etape-1 > div:first-child > div:has(> input:checked) > div { background-color: #494949; }
#est-etape-1 > div:first-child > div:has(> input:checked):hover > div { background-color: var(--mh-accent); }
/* Icônes des modes = SVG du designer (last_touches/notes/consultation-privee/icons-svg, médias 812–814, note C1) */
#est-etape-1 [data-interaction-id="6c53dead"] { --mh-ico: url("/wp-content/uploads/2026/10/icone-consultation-telephone.svg"); }
#est-etape-1 [data-interaction-id="178fa6b0"] { --mh-ico: url("/wp-content/uploads/2026/10/icone-consultation-visio.svg"); }
#est-etape-1 [data-interaction-id="2db80672"] { --mh-ico: url("/wp-content/uploads/2026/10/icone-consultation-domicile.svg"); }

/* Étape 2 : créneaux, même cadre que le calendrier */
#mh-est-creneaux .mh-slots { border-color: #E9D9C3; }

/* Étape 3 : calendrier */
.mh-cal { font-family: var(--mh-font-body), sans-serif; color: var(--mh-primary); }
.mh-cal.is-loading { min-height: 281px; background: linear-gradient(90deg, #FFFFFF 0%, #FAF7F3 50%, #FFFFFF 100%); }
.mh-cal-tete { display: flex; align-items: center; justify-content: space-between; height: 53px; padding: 0 24px; border-bottom: 1px solid #E9D9C3; }
#mh-estimation .mh-cal-mois { margin: 0; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 3.6px; text-transform: uppercase; color: var(--mh-primary); }
.mh-cal-nav { width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--mh-primary); font-size: 22px; line-height: 1; cursor: pointer; }
.mh-cal-nav:disabled { color: #C9CAD3; cursor: default; }
.mh-cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; padding: 12px 24px 18px; }
#mh-estimation .mh-cal-jsem { padding: 6px 0 8px; font-size: 11px; line-height: 16px; color: #6A6C80; text-align: center; }
.mh-cal-jour { height: 30px; padding: 0; border: 0; background: none; font: 400 13px/30px var(--mh-font-body), sans-serif; color: #C9CAD3; text-align: center; cursor: default; }
.mh-cal-jour.is-libre { color: var(--mh-primary); cursor: pointer; transition: background-color 0.2s; }
.mh-cal-jour.is-libre:hover { background-color: #FAF7F3; }
.mh-cal-jour.is-selected, .mh-cal-jour.is-selected:hover { background-color: var(--mh-accent); color: #FFFFFF; font-weight: 500; }
.mh-cal-jour:focus-visible, .mh-cal-nav:focus-visible, .mh-slot:focus-visible { outline: 2px solid var(--mh-accent); outline-offset: 1px; }

/* Étape 3 : créneaux du jour choisi */
.mh-slots { padding: 24px; border: 1px solid #E9D9C3; background: var(--mh-surface); }
#mh-estimation .mh-slots-titre { margin: 0 0 16px; font: 600 12px/16px var(--mh-font-body), sans-serif; letter-spacing: 3.6px; text-transform: uppercase; color: var(--mh-primary); text-align: center; }
.mh-slots-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* Écart titre → créneaux : la marge du titre (p) est annulée par un « p { margin-bottom: 0 !important } » global (frontend.css d'une extension) ; l'écart est porté par la grille (note E1 du designer) */
#mh-estimation .mh-slots-grille { margin-block-start: 16px; }
.mh-slot { height: 35px; padding: 0; border: 1px solid #E9D9C3; background: var(--mh-surface); font: 400 13px/33px var(--mh-font-body), sans-serif; color: #6A6C80; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.mh-slot:hover { border-color: var(--mh-accent); }
.mh-slot.is-selected { background: var(--mh-accent); border-color: var(--mh-primary); color: var(--mh-primary); }
#mh-estimation .mh-resa-statut { margin: 12px 0 0; font: 400 13px/20px var(--mh-font-body), sans-serif; color: var(--mh-primary); text-align: center; }
#mh-estimation .mh-resa-statut.is-erreur { color: var(--mh-error); }

/* Confirmation après réservation */
.mh-est-ok { padding: 40px; border: 1px solid var(--mh-accent); background: var(--mh-surface); font-family: var(--mh-font-body), sans-serif; }
#mh-estimation .mh-est-ok-label { margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 4.2px; text-transform: uppercase; color: #86663A; }
#mh-estimation .mh-est-ok-titre { margin: 16px 0 0; font: italic 500 34px/40px var(--mh-font-heading), serif; letter-spacing: 0; color: var(--mh-primary); }
.mh-est-ok-boite { margin-top: 24px; padding: 20px 22px; border: 1px solid #E9D9C3; background: #FAF7F3; }
#mh-estimation .mh-est-ok-k { margin: 0; font-size: 11px; line-height: 16px; letter-spacing: 2.2px; text-transform: uppercase; color: #494949; }
#mh-estimation .mh-est-ok-j { margin: 6px 0 0; font-size: 18px; font-weight: 500; line-height: 26px; color: var(--mh-primary); }
#mh-estimation .mh-est-ok-h { margin: 0; font-size: 16px; line-height: 24px; color: var(--mh-primary); }
#mh-estimation .mh-est-ok-txt { margin: 20px 0 0; font-size: 14px; line-height: 22px; color: #606060; }


/* Calendrier et créneaux : tons de la maquette, identiques sur Estimation et Consultation privée (rapport client 6.2, 2026-11-03) :
   pas de fond blanc, le fond de la page (#FFFDF9) partout ; bordures #DDD5C8 ; seuls le jour et l'heure choisis sont en or. */
#mh-est-calendrier { background-color: transparent !important; border-color: #DDD5C8 !important; }
.mh-cal-tete { border-bottom-color: #DDD5C8; }
.mh-cal.is-loading { background: linear-gradient(90deg, transparent 0%, #F8F4ED 50%, transparent 100%); }
.mh-slots, #mh-est-creneaux .mh-slots { background: transparent; border-color: #DDD5C8; }
.mh-slot { background: transparent; border-color: #DDD5C8; }
/* 6 créneaux visibles (2 lignes de 3), les autres derrière « Voir plus de créneaux » (mh-5-estimation.js, rapport client 2.4) */
.mh-slot[hidden] { display: none; }
.mh-slots:has(.mh-slots-plus) { padding-block-end: 14px; }
.mh-slots-plus { display: block; margin: 14px auto 0; padding: 0 0 1px; border: 0; border-bottom: 1px solid var(--mh-accent); background: none; font: 500 11px/16px var(--mh-font-body), sans-serif; letter-spacing: 2.2px; text-transform: uppercase; color: var(--mh-primary); cursor: pointer; transition: color 0.2s; }
.mh-slots-plus:hover { color: #86663A; }
.mh-slots-plus:focus-visible { outline: 2px solid var(--mh-accent); outline-offset: 3px; }
/* Étape 2 : plus de phrase au-dessus des créneaux (rapport client 6.1) : le bloc commence à la hauteur du calendrier ; la ligne d'aide passe dessous
   et ne s'affiche que pour le créneau choisi ou une erreur (mh-5-estimation.js la vide au chargement). */
#mh-est-aide { order: 2; margin-block-start: 12px; }
#mh-est-aide:empty { display: none; }

/* Étape 2 « Choisir un créneau » : géométrie des calques Figma (Consultation-privée, cadre 3299:93870), mesurée le 2026-11-03.
   Pas de libellé « Choisissez une date » au-dessus du calendrier (gardé pour les lecteurs d'écran) : calendrier et créneaux commencent 40px sous le stepper, à la même hauteur ;
   calendrier 388px, créneaux 436px, 40px entre les deux ; en-tête des jours 39px, cases 48 x 31 ; bloc des créneaux 21px / 25px de marge intérieure ;
   aucune phrase sous les créneaux (le créneau choisi est en or ; la ligne ne s'affiche que pour une erreur) ; boutons séparés de 16px. */
#est-etape-2 [data-interaction-id="1e93c07f"] { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0 !important; }
@media (min-width: 1025px) {
	#est-etape-2 [data-interaction-id="163114ea"] { gap: 40px; align-items: flex-start; }
	#est-etape-2 [data-interaction-id="28ceaccc"] { flex: 0 0 388px; max-width: 388px; }
	#est-etape-2 [data-interaction-id="1aa053c5"] { flex: 0 0 436px; max-width: 436px; }
}
#est-etape-2 [data-interaction-id="28ceaccc"], #est-etape-2 [data-interaction-id="1aa053c5"] { gap: 0; padding-block-start: 0 !important; }
#est-etape-2 .mh-cal-grille { padding: 0 24px 20px; row-gap: 3.5px; }
#mh-estimation #est-etape-2 .mh-cal-jsem { padding: 16px 0 8px; line-height: 15px; }
#est-etape-2 .mh-cal-jour { height: 31px; line-height: 31px; }
#est-etape-2 .mh-slots { padding: 21px 25px; }
#est-etape-2 .mh-slots:has(.mh-slots-plus) { padding-block-end: 14px; }
#est-etape-2 .mh-slots-grille { column-gap: 8.5px; }
#mh-est-aide:not([style*="error"]) { display: none; }
#est-etape-2 [data-interaction-id="223b9ffa"] { gap: 16px; }

/* Étape 1 (cadre Figma 3299:93813) : dans les cartes, titre 12px sous l'icône et sous-titre 12px sous le titre (le site les mettait à 18px / 8px). */
#est-etape-1 :is([data-interaction-id="358b9150"], [data-interaction-id="4e55af9d"], [data-interaction-id="29045034"]) { position: relative; top: -6px; }
#est-etape-1 :is([data-interaction-id="57f46fc1"], [data-interaction-id="18e2982a"], [data-interaction-id="d5bdf44"]) { position: relative; top: -3px; }

/* Étape 3 (cadre Figma 3299:94018) : récapitulatif 115px de haut (marges 20 / 16px, 24px entre « Récapitulatif » et la ligne), deux colonnes de 388px ;
   champs : 24px sous le filet (30px avant), 12px entre libellé et champ, 24px entre deux lignes. */
@media (min-width: 1025px) {
	#mh-est-recap { padding: 20px 16px !important; gap: 24px !important; }
	#mh-est-recap [data-interaction-id="31fd7390"] { gap: 56px !important; }
	#mh-est-recap :is([data-interaction-id="d9e2a3c"], [data-interaction-id="3bb45a89"]) { flex: 0 0 388px; max-width: 388px; }
}
#est-etape-3 [data-interaction-id="4b97380"] { row-gap: 24px; margin-block-start: -6px; }
#est-etape-3 [data-interaction-id="4b97380"] > div { gap: 12px !important; }

/* Bande avant le pied de page (7ac6c8a2) : filet or de 8px en haut, puis 31px de blanc, comme la maquette et l'Estimation (e214809). */
body .elementor [data-interaction-id="7ac6c8a2"] { border-top: 8px solid var(--mh-accent); }

/* Étape 1 : cartes comme la maquette (Consultation-privée.png) : bord de 2px (#D7D6DC, or sur la carte choisie, même taille de carte) ;
   la carte choisie garde son aspect sous la souris (titre #1B1B1B 500, sous-titre #606060, icône or — demande de l’utilisateur du 2026-11-03, fond blanc). */
#est-etape-1 > div:first-child > div { border-width: 2px !important; border-color: #D7D6DC !important; }
#est-etape-1 > div:first-child > div:hover { border-color: var(--mh-accent) !important; }
#est-etape-1 > div:first-child > div:has(> input:checked) { border-color: var(--mh-accent) !important; background-color: #FFFFFF !important; }
#est-etape-1 > div:first-child > div:has(> input:checked) > span:nth-of-type(1) { color: #1B1B1B; font-weight: 500; }
#est-etape-1 > div:first-child > div:has(> input:checked) > span:nth-of-type(2) { color: #606060; }
#est-etape-1 > div:first-child > div:has(> input:checked) > div, #est-etape-1 > div:first-child > div:has(> input:checked):hover > div { background-color: var(--mh-accent); }/* End custom CSS */