/* Demandes de service : composants locaux. Les variantes utilisent les tokens existants. */
.service-shell { padding: 42px 0 64px; color: var(--bd-text, #171717); }
.service-shell h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 16px; }
.service-shell > p { line-height: 1.65; color: var(--bd-muted, #53606e); }
.service-form { max-width: 820px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin-top: 24px; }
.service-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.service-field-wide { grid-column: 1 / -1; }
.service-field label { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--bd-text, #171717); }
.service-required { color: #b42318; }
html[data-design-theme="dark"] .service-required { color: #ffb4b4; }
/* Ne jamais donner la largeur d’un champ texte à une case à cocher. */
html[data-design-scope="site"] .bh-home .service-shell .service-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid var(--bd-border, #c8d1da);
  border-radius: 8px; background: var(--bd-card, #fff); color: var(--bd-text, #171717); font: inherit; font-size: 15px;
  box-shadow: none; box-sizing: border-box;
}
html[data-design-scope="site"] .bh-home .service-shell textarea.service-input { min-height: 130px; resize: vertical; line-height: 1.6; }
html[data-design-scope="site"] .bh-home .service-shell .service-input[type="file"] { background: var(--bd-soft, #f3f5f7); font-size: 13px; }
html[data-design-scope="site"] .bh-home .service-shell .service-input:is([type="checkbox"], [type="radio"]) {
  width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--bd-electric, #4169e1);
}
.service-input:focus-visible { outline: 3px solid var(--bd-focus, #8bb9f1); outline-offset: 2px; }
.service-field ul.errorlist, .service-errors, .service-shell ul.errorlist { color: #b42318; line-height: 1.6; font-size: 13px; margin: 0; padding-left: 18px; }
html[data-design-theme="dark"] .service-shell ul.errorlist { color: #ffb4b4; }
.service-checkbox-row { display: flex; align-items: flex-start; gap: 11px; }
.service-checkbox-row label { font-weight: 400; font-size: 13px; cursor: pointer; }
.service-form small { color: var(--bd-muted, #53606e); font-size: 12px; line-height: 1.6; }
.service-form button, .service-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; border: 0; border-radius: 8px;
  padding: 12px 22px; background: #4169e1; color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
.service-form button:hover, .service-actions button:hover { background: #3157c1; }
.service-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 25px; }
.service-actions form { display: inline; }
.service-shell dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 14px 24px; padding: 24px; border: 1px solid var(--bd-border, #dce4e8); border-radius: 12px; max-width: 900px; background: var(--bd-card, #fff); }
.service-shell dt { font-weight: 600; }
.service-shell dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.6; }
.service-notice { padding: 16px 20px; background: var(--bd-soft, #f3f5f7); border-left: 3px solid #4169e1; border-radius: 6px; margin: 20px 0; line-height: 1.6; }
.service-notice-error { border-color: #b42318; }
/* Demande et aperçu seulement : sections compactes, aucune modification de charte. */
.service-contact-page { box-sizing: border-box; width: calc(100% - 40px); max-width: 920px; margin: 0 auto; padding: 0 0 36px; }
.service-contact-heading { padding: 20px 0 24px; text-align: left; margin: 0; }
.service-contact-heading .bh-eyebrow { margin: 0 0 9px; }
.service-contact-heading h1 { margin: 0 0 9px; font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; color: var(--bd-text); }
.service-contact-heading > p:last-child { margin: 0; max-width: 690px; font-size: 14px; line-height: 1.6; color: var(--bd-muted); }
html[data-design-scope="site"] .bh-home .service-contact-card { max-width: none; margin: 0; padding: 24px 28px; border: 1px solid var(--bd-border); border-radius: 12px; background: var(--bd-card); box-shadow: 0 5px 22px #17284d05; }
.service-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.service-card-heading h2 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.45; color: var(--bd-text); }
.service-form-intro { font-size: 12px; margin: 0; color: var(--bd-muted); }
.service-contact-card .service-form { width: 100%; max-width: none; margin-top: 22px; gap: 22px; }
.service-form-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; min-width: 0; padding: 0; margin: 0; border: 0; }
.service-form-section legend { display: flex; align-items: center; gap: 9px; box-sizing: border-box; width: 100%; padding: 0 0 10px; margin-bottom: 14px; border-bottom: 1px solid var(--bd-border); font-size: 14px; font-weight: 650; color: var(--bd-text); }
.service-form-section legend span { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 7px; background: var(--bd-soft); color: var(--bd-link); font-size: 10px; font-weight: 700; }
.service-contact-card .service-field { gap: 6px; }
.service-contact-card .service-field label { font-size: 13px; line-height: 1.45; }
html[data-design-scope="site"] .bh-home .service-contact-card .service-input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; padding: 9px 12px; border-radius: 7px; font-size: 14px; line-height: 1.5; }
html[data-design-scope="site"] .bh-home .service-contact-card textarea.service-input { min-height: 104px; height: 104px; }
html[data-design-scope="site"] .bh-home .service-contact-card input[type="file"] { padding: 6px 8px; line-height: 1.65; }
.service-contact-card input[type="file"]::file-selector-button { border: 1px solid var(--bd-border); border-radius: 5px; padding: 5px 10px; margin-right: 10px; color: var(--bd-text); background: var(--bd-card); font: inherit; cursor: pointer; }
.service-contact-card .service-check-field label { font-size: 12px; font-weight: 400; line-height: 1.65; }
.service-contact-card .service-form small { font-size: 11px; line-height: 1.5; }
.service-retained-file { padding: 12px 14px; border-radius: 7px; background: var(--bd-soft); font-size: 12px; overflow-wrap: anywhere; }
.service-retained-file p { margin: 0 0 8px; }
.service-submit-row { display: flex; align-items: center; gap: 20px; padding-top: 18px; border-top: 1px solid var(--bd-border); }
.service-submit-row button { flex-shrink: 0; min-height: 44px; padding: 11px 18px; }
.service-submit-row p { max-width: 470px; margin: 0; color: var(--bd-muted); font-size: 11px; line-height: 1.65; }
.service-contact-direct { text-align: left; margin: 20px 0 0; font-size: 12px; color: var(--bd-muted); line-height: 1.65; }
.service-contact-direct h2 { color: var(--bd-text); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.service-contact-direct p { margin: 0; }
.service-contact-direct a { display: inline-block; margin: 0 16px 0 0; color: var(--bd-link); overflow-wrap: anywhere; }
.service-preview-status { padding: 4px 9px; border-radius: 6px; background: var(--bd-soft); color: var(--bd-muted); font-size: 11px; }
html[data-design-scope="site"] .bh-home .service-contact-card dl.service-preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; max-width: none; padding: 0; margin: 20px 0; border: 0; border-radius: 0; background: transparent; }
.service-preview-item { min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--bd-border); }
.service-preview-item dt { font-size: 11px; font-weight: 500; color: var(--bd-muted); margin: 0 0 5px; }
.service-preview-item dd { font-size: 14px; color: var(--bd-text); line-height: 1.65; }
.service-preview-actions { justify-content: space-between; margin-top: 20px; }
.service-correct-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--bd-border); border-radius: 7px; color: var(--bd-text); text-decoration: none; font-size: 13px; }
.service-correct-button:hover { background: var(--bd-soft); }
.service-contact-card .service-preview-footnote { font-size: 11px; line-height: 1.65; margin: 18px 0 0; color: var(--bd-muted); }
/* Administration : ne pas reprendre les couleurs publiques, garder les variables de console. */
.service-admin input:not([type="checkbox"]), .service-admin select, .service-admin textarea { border: 1px solid var(--console-border, #cbd5e1); border-radius: 8px; padding: 10px; max-width: 100%; width: 100%; }
.service-admin form p { display: grid; gap: 6px; margin-bottom: 18px; }
.boussole-crm .service-admin { color: var(--console-text); }
.boussole-crm .service-admin table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.boussole-crm .service-admin td, .boussole-crm .service-admin th { padding: 14px 16px; text-align: left; vertical-align: top; min-width: 110px; border-bottom: 1px solid var(--console-border); }
.boussole-crm .service-admin .button-secondary, .service-admin .btn-primary { padding: 11px 18px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.boussole-crm .service-admin h2 { line-height: 1.4; }
.boussole-crm .service-admin p { line-height: 1.6; }
.boussole-crm .service-admin .shadow { background: var(--console-gradient); border: 1px solid var(--console-border); border-radius: 20px; }
.boussole-crm .service-admin .crm-actions { margin-bottom: 24px; }
@media (max-width: 650px) {
  .service-contact-page { width: calc(100% - 28px); padding: 0 0 28px; }
  .service-contact-heading { padding: 14px 0 20px; }
  html[data-design-scope="site"] .bh-home .service-contact-card { padding: 20px 16px; border-radius: 10px; }
  .service-form-section { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-form { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .service-shell { padding: 30px 0 40px; }
  .service-shell dl { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .service-shell dd { margin-bottom: 14px; }
  .service-submit-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .service-submit-row, .service-submit-row button { width: 100%; }
  html[data-design-scope="site"] .bh-home .service-contact-card dl.service-preview-list { grid-template-columns: minmax(0, 1fr); }
  .service-preview-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .service-preview-actions form, .service-correct-button { width: 100%; justify-content: center; box-sizing: border-box; }
  .service-actions button { width: 100%; }
  .service-admin { overflow-wrap: anywhere; }
  .boussole-crm .service-admin td, .boussole-crm .service-admin th { font-size: 13px; min-width: 95px; }
  .boussole-crm .service-admin .crm-actions > a { flex: 1; min-width: 200px; }
}
