/* 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 sous l'aide, 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: var(--mh-primary); 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; }/* End custom CSS */