.directory { position: relative; z-index: 1; padding-top: 32px; }
.catalogue-table-wrap { overflow-x: auto; }
.catalogue-tabs { display: flex; gap: 8px; margin-top: 12px; }
.catalogue-tab { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font-size: 14px; text-decoration: none; }
.catalogue-tab-current { background: var(--bf-bleu, #12304f); border-color: var(--bf-bleu, #12304f); color: white; }
.family-list { margin-top: 4px; }
.family-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 13px 8px; border-top: 1px solid var(--line); }
.family-row small { display: block; margin-top: 5px; color: var(--muted); }
.family-row strong { overflow-wrap: anywhere; }
.family-row > div { min-width: 0; }
@media (max-width: 560px) { .family-row { grid-template-columns: minmax(0, 1fr) auto; } .family-row > div { grid-column: 1 / -1; } }
.catalogue-sort label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.catalogue-sort select { min-height: 46px; max-width: 100%; padding: 10px; border: 1px solid #b7b8bd; border-radius: 8px; background: white; color: var(--ink); font: 15px 'Segoe UI', Arial, sans-serif; }
.catalogue-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.catalogue-table th { text-align: left; color: var(--muted); font-size: 12px; }
.catalogue-table th, .catalogue-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.catalogue-table td:first-child { min-width: 180px; overflow-wrap: anywhere; }
.catalogue-table small, .catalogue-table strong { display: block; }
.catalogue-table small { color: var(--muted); margin-bottom: 2px; font-size: 11px; }
.catalogue-table td strong { line-height: 1.25; }
.article-row-actions { white-space: nowrap; }
.catalogue-price-trigger { padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.catalogue-price-trigger:hover { color: var(--bf-bleu, #12304f); text-decoration: underline; text-underline-offset: 3px; }
.catalogue-price-trigger:focus-visible { outline: 2px solid var(--bf-bleu, #12304f); outline-offset: 3px; }
.catalogue-info-trigger { padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.catalogue-info-trigger:hover { color: var(--bf-bleu, #12304f); text-decoration: underline; text-underline-offset: 3px; }
.catalogue-info-trigger:focus-visible { outline: 2px solid var(--bf-bleu, #12304f); outline-offset: 3px; }
.catalogue-info-trigger-designation { font-weight: 700; line-height: inherit; }
.price-save-button, .price-cancel-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font: 14px 'Segoe UI', Arial, sans-serif; cursor: pointer; }
.price-cancel-button:hover { border-color: var(--bf-bleu, #12304f); color: var(--bf-bleu, #12304f); }
.price-save-button { border-color: var(--bf-bleu, #12304f); background: var(--bf-bleu, #12304f); color: white; font-weight: 600; }
.price-save-button:hover { background: var(--bf-bleu-fonce, #0b2138); }
.catalogue-price-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); box-shadow: 0 18px 55px rgb(22 25 31 / 25%); }
.catalogue-price-dialog::backdrop { background: rgb(22 25 31 / 42%); }
.price-dialog-form { padding: 22px; }
.price-dialog-form h2 { margin: 0; font-size: 21px; }
.price-dialog-designation { margin: 6px 0 20px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.price-dialog-fields { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.price-dialog-fields label { font-size: 14px; font-weight: 600; }
.price-dialog-fields select, .price-dialog-fields input { min-height: 40px; padding: 8px 10px; border: 1px solid #b7b8bd; border-radius: 7px; background: white; color: var(--ink); font: 15px 'Segoe UI', Arial, sans-serif; }
.info-dialog-field { margin: 0 0 16px; }
.info-dialog-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.info-dialog-field input, .info-dialog-field select { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #b7b8bd; border-radius: 7px; background: white; color: var(--ink); font: 15px 'Segoe UI', Arial, sans-serif; }
.price-dialog-amount { display: flex; align-items: center; gap: 8px; }
.price-dialog-amount input { width: 100%; }
.price-dialog-preview { min-height: 22px; margin: 16px 0; color: var(--muted); font-size: 14px; }
.price-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.article-status-dot { display: inline-block; width: 9px; height: 9px; margin: 0 9px 0 2px; padding: 0; border: 0; border-radius: 50%; vertical-align: middle; cursor: pointer; }
.article-status-dot:focus-visible { outline: 2px solid #202127; outline-offset: 3px; }
.article-status-dot:hover { box-shadow: 0 0 0 3px rgb(31 35 40 / 12%); }
.article-status-dot-active { background: #3b8f59; }
.article-status-dot-inactive { background: #c33d45; }
.article-status-confirm-note { margin: -10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-row-inactive { opacity: .68; }
.article-status-label { display: inline-block; margin: 2px 0 0 10px; padding: 3px 9px; border-radius: 999px; background: #edf8ef; color: #245831; font-size: 12px; font-weight: 600; vertical-align: middle; }
.article-status-label-inactive { background: #ececf0; color: #555761; }
.article-editor-title { display: flex; align-items: center; flex-wrap: wrap; }
.article-barcodes { grid-column: 1 / -1; border-top: 1px solid #e1e1e5; margin-top: 8px; padding-top: 14px; }
.article-barcodes h2 { font-size: 18px; margin: 0 0 12px; }
.article-internal-barcode { max-width: 420px; margin-bottom: 18px; }
.article-internal-barcode input[readonly] { background: #f2f2f4; color: #565963; }
.manufacturer-barcodes { border: 1px solid #dedee3; border-radius: 8px; padding: 12px; }
.manufacturer-barcodes-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.manufacturer-barcodes-heading h3 { font-size: 15px; margin: 0 0 4px; }
.manufacturer-barcodes-heading p { margin: 0; }
.manufacturer-barcode-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 8px 0; border-top: 1px solid #ededf0; }
.manufacturer-barcode-delete { display: flex; align-items: center; gap: 6px; padding: 9px 0; color: #585a62; font-size: 14px; }
.manufacturer-barcode-delete input { width: auto; }
@media (max-width: 600px) { .manufacturer-barcodes-heading { align-items: flex-start; flex-direction: column; } }
.article-status-actions { flex: 0 0 auto; margin: 0; }
.article-toggle-button { min-height: 40px; padding: 8px 13px; border-color: #d6a83f; color: #684d0d; font-size: 14px; }
.article-toggle-button:hover { background: #fff8e5; }
.family-search { margin-bottom: 8px; }
.family-search .catalogue-sort select { min-width: 220px; }
.catalogue-price { white-space: nowrap; }
.catalogue-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.directory-watermark { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(650px, 90vw); height: 90vh; object-fit: contain; opacity: 0.08; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.directory-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 18px; border: 1px solid var(--bf-bleu, #12304f); border-radius: 9px; background: white; color: var(--bf-bleu, #12304f); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 3px 8px rgb(32 33 38 / 8%); }
.back-link:hover { background: var(--bf-bleu-clair, #eef4fa); border-color: var(--bf-bleu-fonce, #0b2138); }
.clear-link { color: var(--bf-bleu, #12304f); text-underline-offset: 4px; font-size: 14px; }
.directory-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 24px 0; }
.catalogue-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.catalogue-actions form { margin: 0; }
.directory-header h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; margin: 0; }
.create-action { text-align: right; }
.create-action p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.action-button { border: 1px solid var(--bf-bleu, #12304f); border-radius: 8px; background: var(--bf-bleu, #12304f); color: white; padding: 12px 18px; font: 600 15px 'Segoe UI', Arial, sans-serif; cursor: pointer; min-height: 46px; }
.action-button:disabled { background: #e9e9ec; color: #62646a; border-color: #d8d8dc; cursor: default; }
.action-button:enabled:hover { background: var(--bf-bleu-fonce, #0b2138); }
.directory-panel { background: rgb(255 255 255 / 55%); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.search-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.search-field { flex: 1 1 300px; }
.search-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.search-field input { width: 100%; min-height: 46px; border: 1px solid #b7b8bd; border-radius: 8px; padding: 10px 14px; color: var(--ink); background: white; font: 16px 'Segoe UI', Arial, sans-serif; }
.clear-link { align-self: center; margin-top: 25px; }
.empty-state { text-align: center; padding: 60px 16px; margin-top: 24px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.empty-state svg { width: 42px; height: 42px; color: var(--bf-bleu, #12304f); }
.empty-state h2 { font-size: 20px; margin: 16px 0 8px; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.directory :focus-visible { outline: 3px solid var(--bf-bleu, #12304f); outline-offset: 3px; }
@media (max-width: 600px) { .directory-header { flex-direction: column; align-items: flex-start; } .create-action { text-align: left; } .directory-panel { padding: 16px; } .search-field { flex-basis: 100%; } .empty-state { padding: 36px 0; } }

.action-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.secondary-button { min-height: 46px; padding: 10px 18px; border: 1px solid #b7b8bd; border-radius: 8px; background: white; color: var(--ink); cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
/* Survol : même effet que le bouton Accueil, pour montrer que le bouton se clique. */
.secondary-button:not(:disabled):hover { background: var(--bf-bleu-clair, #eef4fa); border-color: var(--bf-bleu, #12304f); color: var(--bf-bleu, #12304f); }
.action-button, .danger-button, .back-link { transition: background-color .12s, border-color .12s; }
.form-grid, .details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.full-width { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #aeb0b7; border-radius: 7px; padding: 11px 12px; font: 16px 'Segoe UI', Arial, sans-serif; background: white; color: var(--ink); }
.form-field textarea { resize: vertical; }
.field-help, .form-intro { color: var(--muted); font-size: 13px; line-height: 1.5; }
.field-help { margin: 6px 0 0; }
.form-intro { margin: 0 0 22px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.errorlist, .form-error { color: #a41920; font-size: 14px; }
.errorlist { padding-left: 20px; }
.form-error { padding: 14px; border: 1px solid #a41920; background: #fff1f1; margin-bottom: 20px; }
.success-message { background: #edf8ef; border: 1px solid #72a97d; color: #245831; padding: 14px; border-radius: 8px; }
.warning-message { background: #fff8e5; border: 1px solid #d6a83f; color: #684d0d; padding: 14px; border-radius: 8px; }
.error-message { background: #fff1f1; border: 1px solid #a41920; color: #791118; padding: 14px; border-radius: 8px; }
.client-list { margin-top: 24px; }
.client-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.client-row { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr auto; align-items: center; gap: 16px; padding: 18px 12px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.client-row:hover { background: var(--bf-bleu-clair, #eef4fa); }
.client-row small { display: block; color: var(--muted); margin-top: 4px; }
.client-row .client-row-boat { color: var(--ink); font-size: 13px; }
.client-card-actions { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.client-create-bl { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--bf-bleu, #12304f); border-radius: 7px; background: var(--bf-bleu, #12304f); color: white; font: 600 12px 'Segoe UI', Arial, sans-serif; text-decoration: none; cursor: pointer; }
.client-create-bl:hover { background: var(--bf-bleu-fonce, #0b2138); border-color: var(--bf-bleu-fonce, #0b2138); }
.client-delete-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #e4b7b9; border-radius: 50%; background: white; color: #a41920; text-decoration: none; }
.client-delete-icon svg { display: block; width: 12px; height: 12px; }
.client-delete-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.client-delete-icon:hover { background: #fff1f1; border-color: #a41920; }
.client-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.client-sections > * { padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; font: 14px 'Segoe UI', Arial, sans-serif; }
.client-sections a { display: inline-flex; align-items: center; color: var(--ink); background: white; text-decoration: none; }
.client-sections a:hover { border-color: var(--bf-bleu, #12304f); color: var(--bf-bleu, #12304f); }
.client-sections button { color: #666; background: #eee; }
.current-section { background: var(--bf-bleu, #12304f); color: white; }
.client-sections a.current-section { border-color: var(--bf-bleu, #12304f); color: white; background: var(--bf-bleu, #12304f); }
.client-sections a.current-section:hover { color: white; }
.details-grid { margin: 0; }
.details-grid dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.details-grid dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.client-bl-panel { padding: 20px; }
.client-bl-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.client-bl-heading h2 { margin: 0; font-size: 20px; }
.client-bl-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.client-bl-heading .action-button { flex: 0 0 auto; }
.client-bl-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 8px; border-top: 1px solid var(--line); }
.client-bl-subject, .client-bl-date { min-width: 0; }
.client-bl-subject strong, .client-bl-subject small { display: block; overflow-wrap: anywhere; }
.client-bl-subject small, .client-bl-date span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.client-bl-date span, .client-bl-date strong { display: block; }
.client-bl-date strong { margin-top: 4px; font-size: 14px; font-weight: 500; }
.client-bl-status { padding: 5px 10px; border-radius: 999px; background: #edf8ef; color: #245831; font-size: 12px; font-weight: 600; white-space: nowrap; }
.client-bl-open { min-height: 38px; padding: 7px 12px; gap: 8px; white-space: nowrap; }
.client-bl-actions { display: flex; gap: 8px; align-items: center; }
.client-bl-actions .secondary-button { min-height: 38px; padding: 7px 12px; white-space: nowrap; }
.client-bl-empty { padding: 30px 10px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.client-bl-empty p { margin: 0 0 10px; }
.client-bl-empty a { color: var(--bf-bleu, #12304f); font-weight: 600; text-decoration: none; }
.client-bl-empty a:hover { text-decoration: underline; }
@media (max-width: 600px) { .client-bl-heading { align-items: flex-start; flex-direction: column; } .client-bl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; } .client-bl-status { justify-self: start; } .client-bl-open { justify-self: end; grid-column: 2; grid-row: 1 / span 2; } }
@media (max-width: 760px) { .client-card { grid-template-columns: minmax(0, 1fr); } .client-card-actions { justify-content: flex-end; padding: 0 8px 10px; } }
@media (max-width: 600px) { .form-grid, .details-grid { grid-template-columns: 1fr; } .client-row { grid-template-columns: 1fr; gap: 6px; } }

/* Formulaire compact, sans modifier la présentation de la fiche enregistrée. */
.client-form { padding: 18px; }
.client-professional-field[hidden] { display: none; }
.client-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.client-form .form-field label { font-size: 14px; margin-bottom: 5px; }
.client-form .form-field input, .client-form .form-field select, .client-form .form-field textarea { padding: 8px 10px; }
.client-form .field-help { font-size: 12px; margin-top: 4px; }
.client-form .form-intro { margin-bottom: 16px; }
.client-form .form-actions { margin-top: 16px; }
.required-mark, .required-hint { color: #a41920; }
.required-hint { font-size: 11px; font-weight: 400; }
@media (max-width: 900px) { .client-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .client-form .form-grid { grid-template-columns: 1fr; } }

.boat-fields { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 14px 0 0; min-width: 0; }
.boat-fields legend { font-weight: 600; padding-right: 12px; }
.boat-fields > .field-help { margin-bottom: 14px; }
.boat-panel { margin-top: 18px; scroll-margin-top: 18px; padding: 18px; }
.boat-after-create-dialog { width: min(500px, calc(100vw - 32px)); max-height: 85vh; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; padding: 26px; color: var(--ink); background: white; box-shadow: 0 16px 60px rgb(0 0 0 / 25%); }
.boat-after-create-dialog::backdrop { background: rgb(16 24 40 / 50%); }
.boat-after-create-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.boat-after-create-dialog p { margin: 0 0 20px; line-height: 1.5; color: var(--muted); }
.boat-after-create-dialog .form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.boat-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.boat-panel-heading h2 { font-size: 20px; margin: 0; }
.boat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.boat-card { position: relative; min-width: 0; padding: 12px 108px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 76%); }
.boat-card:target { border-color: var(--bf-bleu, #12304f); box-shadow: 0 0 0 3px var(--bf-bleu-clair, #eef4fa); scroll-margin-top: 24px; }
.boat-card-heading h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.boat-card-actions { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 6px; }
.boat-edit-link { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 12px; text-decoration: none; }
.boat-edit-link:hover { border-color: var(--bf-bleu, #12304f); color: var(--bf-bleu, #12304f); }
.boat-meta, .boat-dimensions { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.boat-empty { grid-column: 1 / -1; margin: 2px 0; color: var(--muted); }
.boat-delete-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #e4b7b9; border-radius: 50%; background: white; color: #a41920; text-decoration: none; }
.boat-delete-icon svg { display: block; width: 12px; height: 12px; }
.boat-delete-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.boat-delete-icon:hover { background: #fff1f1; border-color: #a41920; }
.detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-actions form, .client-bl-actions form { margin: 0; }
.clients-pros-carte h2 a { color: inherit; text-decoration: none; }
.clients-pros-carte h2 a:hover { text-decoration: underline; }
.danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid #a41920; border-radius: 8px; background: white; color: #a41920; font: 600 15px 'Segoe UI', Arial, sans-serif; text-decoration: none; cursor: pointer; }
.danger-button:hover { background: #fff1f1; }
.danger-button-small { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.delete-panel { max-width: 720px; margin: 0 auto; }
.delete-panel h2 { margin-top: 0; overflow-wrap: anywhere; }
.delete-panel p { line-height: 1.6; }
.delete-warning { color: #a41920; font-weight: 600; }
@media (max-width: 600px) { .detail-actions { width: 100%; } .detail-actions > * { flex: 1; } }
.boat-editor { padding-top: 16px; }
.boat-editor .directory-header { margin: 14px 0; }
.boat-editor .directory-header p { color: var(--muted); margin: 6px 0 0; }
.boat-form { max-width: 900px; }
.boat-form .form-field input, .boat-form .form-field select { min-height: 40px; }
@media (max-width: 600px) { .boat-panel-heading { align-items: flex-start; flex-direction: column; } .boat-panel-heading .action-button { width: 100%; } }
@media (max-width: 400px) { .boat-card { padding-right: 14px; padding-top: 48px; } .boat-card-actions { top: 8px; left: 8px; right: auto; } }

.client-editor { padding-top: 16px; }
.client-editor .directory-header { margin: 14px 0; }
.client-editor .directory-header h1 { font-size: 30px; }
.client-editor .client-form { padding: 16px; }
.client-editor .form-grid { gap: 10px 16px; }
.client-editor .form-field input, .client-editor .form-field select, .client-editor .form-field textarea { padding: 7px 9px; min-height: 36px; }
.client-editor .form-field textarea { height: 36px; }
.client-editor .boat-fields { margin-top: 14px; padding-top: 8px; }
.client-editor .boat-fields > .field-help { margin-bottom: 10px; }


.client-editor .client-form > .form-grid { gap: 16px 20px; }
.client-editor .form-field input, .client-editor .form-field select, .client-editor .form-field textarea { min-height: 40px; padding: 9px 11px; }

.company-settings-page { padding-top: 18px; }
.company-settings-page .directory-header { margin: 16px 0; }
.company-settings-form { max-width: 920px; }
.company-settings-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.company-settings-form .form-field label { display: block; margin-bottom: 5px; font-weight: 600; }
.company-settings-form .form-field input,
.company-settings-form .form-field textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #aeb0b7; border-radius: 7px; background: white; color: var(--ink); font: 16px 'Segoe UI', Arial, sans-serif; }
.company-settings-form .form-field textarea { resize: vertical; }
.company-settings-form .form-field input[type="file"] { padding: 7px; font-size: 14px; }
.company-settings-form .form-field.email-auth-field label.email-auth-label { display:flex; align-items:center; gap:10px; margin-bottom:5px; cursor:pointer; }
.company-settings-form .form-field.email-auth-field label.email-auth-label input[type="checkbox"] { display:inline-block; width:20px; height:20px; min-height:20px; margin:0; padding:0; flex:0 0 20px; accent-color:var(--bf-bleu, #12304f); }
.company-settings-form .full-width { grid-column: 1 / -1; }
.company-settings-form .field-help { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.company-logo-preview { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 70%); }
.company-logo-preview p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.company-logo-preview img { display: block; width: 120px; height: 78px; object-fit: contain; }
.company-settings-form .errorlist { margin: 5px 0 0; padding-left: 20px; color: #a41920; font-size: 13px; }
@media (max-width: 600px) { .company-settings-form .form-grid { grid-template-columns: 1fr; } .company-settings-form .full-width { grid-column: auto; } .company-logo-preview { align-items: flex-start; flex-direction: column; } }
.address-fields { min-width: 0; margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.address-fields legend { font-weight: 600; padding: 0 6px; }
.address-grid { display: grid; grid-template-columns: 2fr 0.8fr 1.2fr 1fr; gap: 12px; }
.address-grid textarea { height: 40px; }
.client-editor .address-grid textarea { height: 78px; min-height: 78px; }
@media (max-width: 800px) { .address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .address-grid { grid-template-columns: 1fr; } }

.article-editor-page { padding-top: 14px; }
.article-editor-page .directory-header { margin: 12px 0; }
.article-editor-page .directory-header h1 { font-size: 32px; }
.article-editor-create .client-form { padding: 14px; }
.article-editor-create .form-grid { gap: 8px 14px; }
.article-editor-create .form-field label { margin-bottom: 4px; }
.article-editor-create .form-field input,
.article-editor-create .form-field select,
.article-editor-create .form-field textarea { min-height: 36px; padding: 6px 9px; }
.article-editor-create .form-field textarea { height: 42px; }
.article-editor-create .field-help { margin-top: 2px; font-size: 11px; line-height: 1.3; }
.article-editor-create .article-barcodes { margin-top: 4px; padding-top: 8px; }
.article-editor-create .article-barcodes h2 { margin-bottom: 8px; font-size: 16px; }
.article-editor-create .article-internal-barcode { margin-bottom: 8px; }
.article-editor-create .manufacturer-barcodes { padding: 8px; }
.article-editor-create .manufacturer-barcodes-heading { margin-bottom: 4px; gap: 8px; }
.article-editor-create .manufacturer-barcodes-heading .field-help { margin-top: 2px; }
.article-editor-create .manufacturer-barcode-row { gap: 8px; padding: 4px 0; }
.article-editor-create .manufacturer-barcode-delete { padding: 4px 0; }
.article-editor-create .article-form-note { margin: 6px 0 0; font-size: 11px; line-height: 1.3; }
.article-editor-create .form-actions { gap: 10px; margin-top: 10px; }
.article-editor-create .form-actions .action-button,
.article-editor-create .form-actions .secondary-button { min-height: 38px; padding: 7px 14px; }
/* Fenêtres déplaçables par leur titre (fenetres-deplacables.js). */
dialog[open] h2, dialog[open] header, dialog[open] [data-dialog-handle] { cursor: move; user-select: none; touch-action: none; }
/* Le titre est posé sur une bande rouge très légère : on voit où attraper la fenêtre. */
dialog[open] h2 { padding: 7px 12px; border-radius: 8px; background: rgb(18 48 79 / 7%); }
dialog[open] h2:hover { background: rgb(18 48 79 / 12%); }
/* Fiche client : historique des réservations du planning (les plus récentes en premier). */
.client-reservations-panel { margin-top: 18px; padding: 18px; }
.client-reservations-panel h2 { margin: 0 0 12px; }
.client-reservations-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.client-reservations-table th, .client-reservations-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.client-reservations-table th { color: var(--muted); font-size: 13px; font-weight: 600; }
.client-reservations-table small { color: var(--muted); }
.client-reservations-table tr.is-past td { color: var(--muted); }
.client-reservations-table tr.is-future td:first-child { font-weight: 600; }

/* Autres e-mails du client (fiche client), proposés à l’envoi des devis. */
.client-emails-list { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.client-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.client-email-row input { flex: 1 1 220px; min-height: 38px; padding: 6px 10px; border: 1px solid #d5d6db; border-radius: 8px; font: inherit; }
.client-email-row input[name$="libelle"] { flex: 0 1 200px; }
.client-email-new { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e0dcdc; }

/* Fiche bateau : badge DL / DI et repli « Plus de détails » (marque, largeur, poids lège). */
.boat-keel-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--bf-bleu, #12304f); border-radius: 999px; color: var(--bf-bleu, #12304f); background: var(--bf-bleu-clair, #eef4fa); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.boat-more { margin: 18px 0 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.boat-more > summary { cursor: pointer; font-weight: 600; color: var(--ink); width: fit-content; }
.boat-more > summary:hover { color: var(--bf-bleu, #12304f); }
.boat-more-summary { margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 13px; }
.boat-more[open] > summary { margin-bottom: 14px; }

/* Onglet « Modèles de bateaux ». */
.models-table td small { display: block; color: var(--muted); font-size: 12px; }
.models-name { color: var(--ink); text-decoration: none; }
.models-name:hover strong { color: var(--bf-bleu, #12304f); text-decoration: underline; }
.models-reliability { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: #f1f2f4; color: var(--muted); }
.models-reliability-sur { background: #e8f5ec; color: #1f6b38; }
.models-reliability-a_verifier { background: #fff4e0; color: #8a5300; }
.models-reliability-chantier, .models-reliability-cree { background: #e9f0fb; color: #1d4f91; }
.models-boats { margin: 0; padding-left: 18px; line-height: 1.8; }
.models-boats small { color: var(--muted); }
.models-delete-link { margin-left: auto; color: #b41221; }
.model-question p { line-height: 1.5; }
.model-question-table { margin: 12px 0; max-width: 640px; }
.model-question-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.model-question-choices small { color: var(--muted); margin-left: 4px; }
