.publication-panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; background: #edf3e4; padding: 22px; border-radius: 12px; margin-bottom: 24px; }
.publication-panel > div:first-child { flex: 1; min-width: min(250px, 100%); }
.publication-panel h3 { margin: 0 0 8px; font-size: 23px; }
.publication-panel p { margin: 6px 0; }
.publication-panel [data-publication-confirm] { flex-basis: 100%; }
.publication-actions { display: grid; gap: 10px; }
.public-profile-link { display: inline-flex; justify-content: center; align-items: center; padding: 10px 15px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 600; text-decoration: none; }
.public-profile-link:hover { background: #edf2e8; }
/* Password fields: see brand.css (.password-field). */
.character-count { display: block; text-align: right; color: var(--muted); font-size: 12px; font-weight: 400; }
.workflow-heading, .workflow-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.workflow-heading { justify-content: space-between; }
.profile-progress { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.profile-progress progress { display: block; width: 100%; height: 10px; accent-color: var(--ink); margin: 16px 0; }
.profile-progress .meta { margin-bottom: 0; }
.profile-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-steps button { font-size: 14px; text-align: left; }
.profile-steps .step-complete { background: #e7f2cd; border-color: #b9ce99; }
.workflow-fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 0; scroll-margin-top: 18px; }
.workflow-fieldset legend { padding: 0 8px; font-weight: 700; font-size: 19px; }
.workflow-fieldset h3 { margin-top: 0; }
.workflow-fieldset .meta, .profile-draft-form .meta { font-size: 14px; }
.profile-photo-edit { display: flex; align-items: flex-start; gap: 18px; }
.profile-photo-edit > div { flex: 1; min-width: 0; }
.profile-photo-edit img { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; }
.draft-save-panel { display: grid; gap: 16px; background: #f2f5ed; padding: 22px; border-radius: 12px; }
.draft-save-panel p { margin: 0; }
.draft-save-panel [data-draft-status] { padding: 12px; border-radius: 8px; background: white; border: 1px solid var(--line); overflow-wrap: anywhere; }
.draft-save-panel [data-save-state="saved"] { border-color: #aac090; color: #254a31; }
.draft-save-panel [data-save-state="pending"], .draft-save-panel [data-save-state="saving"] { border-color: #dbc590; color: #70551a; }
.draft-save-panel [data-save-state="error"], .draft-save-panel [data-save-state="conflict"] { border-color: #c78471; color: #853623; }
.draft-save-panel .check { align-items: flex-start; }
.draft-save-panel .check input { margin-top: 3px; }
.draft-save-panel > .primary { justify-self: start; }
.private-preview { background: #fff4e7; border: 1px solid #eedbc3; border-radius: 12px; padding: 18px; margin-bottom: 22px; }
.private-preview p { margin: 0 0 12px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-gallery figure { margin: 0; min-width: 0; }
.project-gallery figure:only-child { grid-column: 1 / -1; }
.project-gallery img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; }
.project-gallery figcaption { font-size: 14px; overflow-wrap: anywhere; padding: 6px 0; }
.project-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.album-photo-editor { display: grid; gap: 16px; }
.album-photo-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.album-photo-item img { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; }
.album-photo-item .stack { gap: 10px; }
.album-photo-item .workflow-actions button { font-size: 14px; }
.managed-album { border-top: 1px solid var(--line); margin-top: 20px; padding-bottom: 16px; }
.managed-album .notice { margin-top: 14px; }
.my-albums { margin-top: 30px; }
.profile-sharing { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-sharing > button { width: 100%; min-height: 44px; }
.profile-sharing .meta { margin: 0; }
.profile-sharing input { font-size: 14px; }
.profile-sharing [data-share-message] { margin-bottom: 10px; }
@media (max-width: 650px) {
  .publication-actions { width: 100%; }
  .publication-panel, .workflow-fieldset, .profile-progress, .draft-save-panel { padding: 16px; }
  .profile-steps { grid-template-columns: 1fr; }
  .profile-photo-edit { flex-direction: column; }
  .draft-save-panel .workflow-actions, .draft-save-panel .primary { width: 100%; }
  .draft-save-panel .workflow-actions button { flex: 1 1 100%; }
  .album-photo-item { grid-template-columns: 1fr; padding: 12px; }
  .album-photo-item img { width: 100%; height: 180px; }
  .project-gallery:not(.paired) { grid-template-columns: 1fr; }
  .project-gallery.paired img { height: 130px; }
}

/* Guided filling (29 septembre 2026) : une étape visible à la fois. */
.publish { background: #1d7a3a; border-color: #1d7a3a; color: #fff; font-weight: 700; }
.publish:hover { background: #16632e; }
.publish:disabled { background: #1d7a3a; }
.wizard-steps { display: flex; gap: 6px; overflow-x: auto; list-style: none; padding: 2px 0 6px; margin: 10px 0 4px; scrollbar-width: thin; }
.wizard-steps li { flex: 0 0 auto; }
.wizard-steps button { font-size: 13px; min-height: 40px; padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
.wizard-steps button[aria-current="step"] { background: var(--brand-navy, #103c65); border-color: var(--brand-navy, #103c65); color: #fff; }
.wizard-steps button.step-complete::after { content: " ✓"; color: #1d7a3a; }
.wizard-steps button.step-complete[aria-current="step"]::after { color: #c9f0d5; }
.wizard-step > legend, .wizard-step > h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.wizard-nav [data-wizard-next] { margin-left: auto; }
.wizard-optional { border: 1px dashed var(--line, #dce3dd); border-radius: 8px; padding: 8px 12px; }
.wizard-optional summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.wizard-optional[open] summary { margin-bottom: 10px; }
.wizard-checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.wizard-checklist .done { color: #1d7a3a; font-weight: 600; }
.wizard-checklist .todo { color: #93311e; }
.wizard-step .publish { width: 100%; min-height: 50px; font-size: 17px; margin-top: 14px; }
/* Étape « Publier » (vérification finale de l’audit, 4 octobre 2026) : sur ordinateur, « Publier ma fiche », pleine largeur,
   écrasait « ← Précédent » sur deux lignes, et sa marge le plaçait 14 px plus bas ; les deux boutons sont alignés. */
.wizard-nav .publish { margin-top: 0; }
.wizard-nav [data-wizard-prev] { flex-shrink: 0; }
.wizard-people .contacts-editor { margin-top: 0; }
.album-photo-picker input { padding: 14px; border-style: dashed; }
@media (max-width: 650px) {
  .wizard-nav { position: sticky; bottom: 0; z-index: 3; flex-direction: row; align-items: center; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .wizard-nav button { min-height: 48px; }
  .wizard-nav [data-wizard-next] { flex: 1; }
  .wizard-nav [data-wizard-prev] { padding-inline: 10px; font-size: 14px; }
  .wizard-nav [data-wizard-next] { margin-left: 0; }
  .wizard-step > legend, .wizard-step > h3 { font-size: 18px; }
}
.service-suggestions, .service-retained { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-retained { margin-top: 12px; }
.service-retained > .meta { grid-column: 1 / -1; margin: 0; }
.service-option { min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; cursor: pointer; }
.service-option:has(input:checked) { border-color: var(--brand-navy, #103c65); background: #edf3f9; }
.service-option input { flex: none; width: 20px; height: 20px; margin: 0; }
.service-custom { display: flex; align-items: end; gap: 10px; margin-top: 14px; }
.service-custom label { flex: 1; min-width: 0; }
.service-custom button { min-height: 48px; }
.email-confirm-notice h3 { margin-top: 0; font-size: 18px; }
.email-confirm-notice .workflow-actions button { min-height: 44px; }
.profile-photo-edit [data-photo-status] { overflow-wrap: anywhere; }
@media (max-width: 380px) { .service-suggestions, .service-retained { grid-template-columns: 1fr; } }
/* Fieldsets and grid items default to their content width: without this the
   horizontally scrolling step row widened the whole form past the phone screen. */
.profile-wizard, .profile-wizard > *, .wizard-step, .wizard-people, .wizard-steps { min-width: 0; max-width: 100%; }
.wizard-step p, .wizard-checklist li { overflow-wrap: anywhere; }
/* Big, readable photo buttons on phones instead of the tiny native control. */
.profile-wizard input[type="file"]::file-selector-button, .album-photo-picker input[type="file"]::file-selector-button,
.contacts-editor input[type="file"]::file-selector-button {
  background: var(--brand-navy, #103c65); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 14px; margin-right: 10px; font-weight: 600; cursor: pointer;
}
/* Completion score: a clear percentage with its bar. */
.profile-progress [data-progress-count] { font-weight: 700; color: #1d7a3a; }
.profile-progress progress { width: 100%; height: 10px; accent-color: #1d7a3a; }
.wizard-checklist .recommended { color: var(--muted, #596962); }
/* Optional items: the link stays next to « Facultatif : », left-aligned when it wraps (3 October 2026). */
.wizard-checklist .recommended button.text { text-align: left; padding-left: 0; padding-right: 0; }
@media (max-width: 650px) {
  .publication-panel h3 { font-size: 18px; margin: 4px 0; }
  .publication-panel .eyebrow { display: none; }
  .publication-panel p { font-size: 14px; margin: 4px 0; }
}

/* Réalisations sous les prestations : albums compacts, photos à la demande. */
.profile-albums { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--line); }
.profile-albums > .meta { margin: 0 0 12px; }
.album-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.album-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; border-radius: 12px; background: #fff; font-weight: 400; }
.album-card:hover { background: #f4f7f1; box-shadow: 0 6px 18px #183b3620; }
.album-card-cover { position: relative; display: flex; height: 150px; background: #e7ece6; }
.album-card-cover img { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; }
.album-card-cover.paired img + img { border-left: 2px solid #fff; }
.album-card-empty { margin: auto; color: var(--muted); font-size: 14px; }
.album-card-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 20px; background: #183b36e6; color: #fff; font-size: 13px; font-weight: 700; }
.album-card-body { display: grid; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.album-card-body strong { overflow-wrap: anywhere; }
.album-card-body .meta { overflow-wrap: anywhere; }
.album-viewer { width: min(980px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); background: #101714; color: #fff; }
.album-viewer::backdrop { background: #080e0cd9; }
.album-viewer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.album-viewer-top h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.album-viewer .meta { color: #c9d4cf; margin: 4px 0 0; }
.album-viewer-close { flex: none; min-height: 44px; background: #fff; }
.album-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(62dvh, 640px); margin: 0; background: #000; touch-action: pan-y; user-select: none; }
.album-viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-drag: none; }
.album-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #ffffffe0; font-size: 30px; line-height: 1; }
.album-viewer-nav[data-step="-1"] { left: 10px; }
.album-viewer-nav[data-step="1"] { right: 10px; }
.album-viewer-caption { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 16px 0; font-size: 15px; overflow-wrap: anywhere; }
.album-viewer-caption [data-album-count] { flex: none; color: #c9d4cf; }
.album-viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; }
.album-viewer-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: none; opacity: .65; }
.album-viewer-thumbs button[aria-current="true"] { border-color: var(--green); opacity: 1; }
.album-viewer-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-viewer .project-description { margin: 12px 0 0; padding: 0 16px; }
.album-viewer-foot { margin: 0; padding: 12px 16px 18px; font-size: 15px; }
.album-viewer-foot a { color: var(--green); }
@media (max-width: 650px) {
  .album-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .album-card-cover { height: 120px; }
  .album-card-body { padding: 8px 10px 10px; font-size: 15px; }
  .album-viewer { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .album-viewer-stage { height: 56dvh; }
}

/* Contrôles de l'entreprise : coche verte, point d'exclamation orange, croix rouge (30 septembre 2026). */
.company-checks { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.company-checks h3 { margin: 0 0 8px; font-size: 17px; }
.company-checks ul, .card-checks, .company-checks-inline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.company-checks .meta { margin: 10px 0 0; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; line-height: 1.35; }
.check-sign { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 13px/1 system-ui, sans-serif; color: #fff; }
.check-ok .check-sign { background: #1d7a3a; }
.check-warn .check-sign { background: #d97706; }
.check-bad .check-sign { background: #c0262d; }
.check-none .check-sign { background: #e4e8e6; color: #5f6b66; }
.check-none { color: var(--muted); }
.check-bad { color: #9b1c22; font-weight: 700; }
.check-warn { color: #8a4b06; font-weight: 600; }
.card-checks { margin: 8px 0; }
.card-checks .check { font-size: 13px; }
.card-checks .check-sign { width: 18px; height: 18px; font-size: 11px; }
.company-checks-inline { margin: 4px 0 8px; }
/* Fiche : ce qui n'est pas encore vérifié devient un conseil, « À demander avant de signer » ; espace de l'artisan :
   « 2 contrôles sur 5 » et la prochaine démarche (4 octobre 2026, audit B13). */
.checks-advice { margin: 4px 0 16px; padding: 12px 14px; border-left: 4px solid var(--brand-navy, #103c65); border-radius: 0 10px 10px 0; background: #f0f4f8; }
.checks-advice p { margin: 0; }
.checks-advice .meta { margin-top: 4px; }
.trust-progress { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.trust-progress > p { margin: 0 0 10px; }
.trust-progress .meta { margin: 8px 0 0; }
.trust-progress-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brand-navy, #103c65); }
.trust-progress button.text { min-height: 44px; padding: 10px 0; font-weight: 700; }

/* Première fiche (4 octobre 2026, audit B11) : l’e-mail à confirmer sur une ligne, « Préparez votre fiche » dans l’en-tête de
   progression, une seule liste à l’étape « Publier », les actions de l’e-mail sous le bouton, puis le panneau de réussite. */
.email-confirm-notice > p { margin: 0; }
.email-confirm-notice .email-closure { margin-top: 6px; font-weight: 600; }
.email-confirm-notice [role="status"]:empty { margin: 0; }
.email-confirm-notice [role="status"]:not(:empty) { margin-top: 6px; }
.profile-progress .progress-intro { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.profile-progress .progress-intro strong { color: var(--brand-navy, #103c65); }
.profile-progress.first-run progress { margin: 10px 0; }
.wizard-checklist .inline-action { display: inline; min-height: 0; padding: 0; margin: 0; font-weight: 700; text-align: left; }
/* Revue du lot 4, sur téléphone : chaque action de la liste se touche sur 44 px de haut (24 px avant). Une ligne avec une action
   (with-action) a 10 px de marge intérieure au-dessus et au-dessous, que la zone invisible de son action recouvre, sans déborder
   sur la ligne voisine ; les autres lignes restent à 6 px l’une de l’autre, comme avant. */
@media (max-width: 650px) {
  .wizard-checklist { gap: 0; }
  .wizard-checklist li { padding: 3px 0; }
  .wizard-checklist li.with-action { padding: 10px 0; }
  .wizard-checklist .inline-action { position: relative; }
  .wizard-checklist .inline-action::after { content: ""; position: absolute; top: -10px; right: 0; bottom: -10px; left: 0; }
}
.wizard-checklist .item-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #f0f4f8; color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.wizard-checklist .recommended-tag { background: var(--brand-soft, #fff0e6); color: var(--orange); }
.publish-email { margin-top: 12px; padding: 12px 14px; border: 1px solid #eedbc3; border-radius: 10px; background: #fff4e7; color: #74512b; }
.publish-email p { margin: 0 0 10px; }
.publish-email .workflow-actions button { min-height: 44px; }
.publish-email [role="status"] { margin: 8px 0 0; }
.publish-email [role="status"]:empty { margin: 0; }
.publish-success-lead { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.publish-success-steps { display: grid; gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: success; }
.publish-success-steps > li { counter-increment: success; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 12px; }
.publish-success-steps > li::before { content: counter(success); position: absolute; left: 14px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft, #fff0e6); color: var(--orange); font-weight: 800; }
.publish-success-steps button { min-height: 44px; }
.publish-success-steps .meta { margin: 6px 0 0; }
.share-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-options > .meta { flex-basis: 100%; margin: 0; }
.share-options .share-link { flex-basis: 100%; }
@media (max-width: 650px) {
  .publish-success-steps > li > button, .share-options > * { width: 100%; }
}

/* Demandes de devis : téléphone et photos visibles dans la page. */
.quote-phone { font-weight: 700; }
.quote-phone a { font-size: 17px; }
.quote-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.quote-photo { width: 84px; height: 84px; padding: 0; overflow: hidden; border-radius: 10px; }
.quote-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* « Ce que les moteurs de recherche peuvent afficher » (assets/search-preview.js): a plain sketch of a result, in the site's own
   colours, under the presentation of the step « Activité ». */
.search-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; background: #fbfcf9; }
.search-preview-heading { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.search-preview-result { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.search-preview-title { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.search-preview-text { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.search-preview-empty { font-style: italic; }
.search-preview .meta { margin: 8px 0 0; }
