/* Artisan Contact — espace pro et site commercial.
   Sobre, lisible au soleil sur un chantier, gros éléments tactiles. */
:root {
  --ac-ink: #16324f;
  --ac-ink-soft: #3d5671;
  --ac-ochre: #c25e16;
  --ac-ochre-dark: #9c4a10;
  --ac-paper: #f6f4ef;
  --ac-line: #e2ddd2;
  --ac-success: #2f7d4f;
  --ac-radius: .6rem;

  --bs-body-color: #1f2a37;
  --bs-body-bg: #ffffff;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.55;
  --bs-primary: var(--ac-ink);
  --bs-primary-rgb: 22, 50, 79;
  --bs-link-color: var(--ac-ink);
  --bs-link-color-rgb: 22, 50, 79;
  --bs-link-hover-color: var(--ac-ochre-dark);
  --bs-border-color: var(--ac-line);
  --bs-border-radius: var(--ac-radius);
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ac-serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
h1, h2, h3, .h1, .h2, .h3 { color: var(--ac-ink); font-weight: 700; }

/* Boutons : 48 px minimum pour le tactile */
.btn { --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1.15rem; --bs-btn-font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .75rem; min-height: 38px; }
.btn-primary { --bs-btn-bg: var(--ac-ink); --bs-btn-border-color: var(--ac-ink); --bs-btn-hover-bg: #0f2439; --bs-btn-hover-border-color: #0f2439; --bs-btn-active-bg: #0b1b2b; --bs-btn-disabled-bg: var(--ac-ink-soft); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--ac-ochre); --bs-btn-border-color: var(--ac-ochre); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ac-ochre-dark); --bs-btn-hover-border-color: var(--ac-ochre-dark); --bs-btn-active-bg: var(--ac-ochre-dark); --bs-btn-active-color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--ac-ink); --bs-btn-border-color: var(--ac-ink); --bs-btn-hover-bg: var(--ac-ink); --bs-btn-hover-border-color: var(--ac-ink); }

.form-control, .form-select { min-height: 48px; font-size: 1.0625rem; border-color: #cfc8b9; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: var(--ac-ink); box-shadow: 0 0 0 .2rem rgba(22, 50, 79, .18); }
.form-label { font-weight: 600; margin-bottom: .3rem; }
.form-text { color: #5b6573; }
.form-check-input { width: 1.25em; height: 1.25em; margin-top: .15em; }
.form-check { margin-bottom: .4rem; }
.form-check-input:checked { background-color: var(--ac-ink); border-color: var(--ac-ink); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

:focus-visible { outline: 3px solid var(--ac-ochre); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: .5rem; }

/* ---------- Espace pro ---------- */
.pro-body { background: var(--ac-paper); min-height: 100vh; padding-bottom: 5rem; }
.pro-topbar { background: var(--ac-ink); color: #fff; }
.pro-topbar a { color: #fff; text-decoration: none; }
.pro-topbar .brand { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ac-ochre); color: #fff; font-family: Georgia, serif; font-weight: 700; }
.pro-nav .nav-link { color: rgba(255,255,255,.85); padding: .9rem .9rem; font-weight: 500; }
.pro-nav .nav-link.active, .pro-nav .nav-link:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--ac-ochre); }
.pro-main { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.pro-card { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 1.25rem; }
.pro-card + .pro-card { margin-top: 1rem; }
.pro-card h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.page-title { font-size: 1.6rem; margin-bottom: 1rem; }

/* Barre d'onglets en bas sur mobile */
.pro-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--ac-line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.pro-tabbar a { flex: 1; text-align: center; padding: .55rem .2rem .5rem; font-size: .78rem; color: #5b6573; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .15rem; position: relative; }
.pro-tabbar a svg { width: 24px; height: 24px; }
.pro-tabbar a.active { color: var(--ac-ink); font-weight: 600; }
.pro-tabbar .badge { position: absolute; top: .25rem; left: 55%; }
@media (min-width: 768px) { .pro-tabbar { display: none; } .pro-body { padding-bottom: 0; } }

.stat-tile { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 1rem; text-decoration: none; color: inherit; display: block; height: 100%; }
.stat-tile:hover { border-color: var(--ac-ink); }
.stat-tile .num { font-size: 2rem; font-weight: 700; color: var(--ac-ink); line-height: 1.1; }
.stat-tile .lbl { color: #5b6573; font-size: .95rem; }
.stat-tile.highlight { border-left: 5px solid var(--ac-ochre); }

.status-online { color: var(--ac-success); font-weight: 600; }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .35rem; }
.dot-on { background: var(--ac-success); } .dot-off { background: #9aa3ad; } .dot-warn { background: #d39b00; } .dot-bad { background: #b42318; }

.quote-row { display: block; padding: .9rem 1rem; border-bottom: 1px solid var(--ac-line); color: inherit; text-decoration: none; background: #fff; }
.quote-row:hover { background: #fbfaf7; }
.quote-row.unread { border-left: 4px solid var(--ac-ochre); }
.quote-row .who { font-weight: 600; }
.quote-row .meta { color: #5b6573; font-size: .92rem; }
.badge-urgent { background: #b42318; color: #fff; }
.text-bg-light.badge { border: 1px solid var(--ac-line); }

.filter-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
.filter-chips a { white-space: nowrap; border: 1px solid var(--ac-line); border-radius: 999px; padding: .45rem .9rem; text-decoration: none; color: var(--bs-body-color); background: #fff; font-size: .95rem; }
.filter-chips a.active { background: var(--ac-ink); color: #fff; border-color: var(--ac-ink); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.attachment-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; border: 1px solid var(--ac-line); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .4rem 0 .4rem 1rem; border-left: 2px solid var(--ac-line); position: relative; font-size: .95rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .8rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ac-ink); }

/* Assistant */
.wizard-progress { display: flex; gap: 4px; margin: .25rem 0 1rem; }
.wizard-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--ac-line); }
.wizard-progress span.done { background: var(--ac-ink); }
.wizard-progress span.current { background: var(--ac-ochre); }
.wizard-steps { font-size: .9rem; }
.wizard-actions { display: flex; gap: .75rem; justify-content: space-between; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.wizard-actions .btn-primary, .wizard-actions .btn-accent { flex: 1 1 auto; max-width: 340px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .45rem 0; display: flex; gap: .6rem; align-items: flex-start; border-bottom: 1px dashed var(--ac-line); }
.check-list .ok { color: var(--ac-success); font-weight: 700; } .check-list .ko { color: #b42318; font-weight: 700; }
.slug-preview { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--ac-paper); border: 1px solid var(--ac-line); border-radius: .5rem; padding: .6rem .8rem; word-break: break-all; }
.layout-option { border: 2px solid var(--ac-line); border-radius: var(--ac-radius); padding: .75rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--ac-paper); border: 1px solid var(--ac-line); border-radius: 999px; padding: .3rem .4rem .3rem .8rem; font-size: .95rem; }
.chip button { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; line-height: 1; color: #5b6573; }
.chip button:hover { background: #e9e4d8; }
.suggest-list { border: 1px solid var(--ac-line); border-radius: .5rem; margin-top: .25rem; background: #fff; max-height: 260px; overflow: auto; }
.suggest-list button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: .7rem .9rem; border-bottom: 1px solid var(--ac-line); }
.suggest-list button:hover, .suggest-list button:focus { background: var(--ac-paper); }

.admin-table td, .admin-table th { vertical-align: middle; }
.support-banner { background: #fff3cd; border-bottom: 2px solid #d39b00; padding: .5rem 1rem; font-size: .95rem; }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .5rem; }

/* ---------- Site commercial ---------- */
.mk-body { background: #fff; }
.mk-header { border-bottom: 1px solid var(--ac-line); background: #fff; position: sticky; top: 0; z-index: 1020; }
.mk-header .brand { font-weight: 700; color: var(--ac-ink); text-decoration: none; display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.mk-hero { background: var(--ac-paper); border-bottom: 1px solid var(--ac-line); padding: 3rem 0 3.5rem; }
.mk-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; }
.mk-hero .lead { font-size: 1.2rem; color: #3b4654; max-width: 36rem; }
.mk-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: var(--ac-ochre-dark); }
.mk-section { padding: 3.5rem 0; }
.mk-section.alt { background: var(--ac-paper); border-top: 1px solid var(--ac-line); border-bottom: 1px solid var(--ac-line); }
.mk-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.mk-feature { padding: 1.25rem 0; border-top: 2px solid var(--ac-ink); height: 100%; }
.mk-feature h3 { font-size: 1.15rem; margin: .6rem 0 .4rem; }
.mk-feature p { color: #3b4654; margin: 0; }
.mk-steps { counter-reset: step; list-style: none; padding: 0; }
.mk-steps li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.5rem; }
.mk-steps li::before { content: counter(step); position: absolute; left: 0; top: -.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ac-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: Georgia, serif; font-size: 1.15rem; }
.mk-steps h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.mk-price { border: 2px solid var(--ac-ink); border-radius: 1rem; padding: 2rem; background: #fff; max-width: 520px; }
.mk-price .amount { font-size: 3.2rem; font-weight: 700; color: var(--ac-ink); font-family: Georgia, serif; line-height: 1; }
.mk-price ul { padding-left: 1.2rem; }
.mk-price li { margin-bottom: .35rem; }
.mk-compare { font-size: .98rem; }
.mk-faq details { border-bottom: 1px solid var(--ac-line); padding: 1rem 0; }
.mk-faq summary { font-weight: 600; cursor: pointer; font-size: 1.08rem; color: var(--ac-ink); list-style-position: outside; }
.mk-faq details p { margin: .6rem 0 0; color: #3b4654; }
.mk-footer { background: var(--ac-ink); color: rgba(255,255,255,.85); padding: 2.5rem 0 3rem; font-size: .95rem; }
.mk-footer a { color: #fff; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-content { max-width: 760px; }

/* Démonstration : téléphone */
.phone { width: 300px; max-width: 100%; margin: 0 auto; border: 10px solid #1d2733; border-radius: 34px; background: #fff; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(22,50,79,.45); font-size: .82rem; }
.phone-head { background: #1d4e89; color: #fff; padding: 1.1rem .9rem .9rem; }
.phone-logo { width: 38px; height: 38px; border-radius: 8px; background: #fff; color: #1d4e89; display: grid; place-items: center; font-weight: 700; font-family: Georgia, serif; }
.phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .7rem .8rem; }
.phone-btns span { background: #e07a1f; color: #fff; border-radius: 6px; text-align: center; padding: .5rem 0; font-weight: 600; }
.phone-btns span.alt { background: #fff; color: #1d4e89; border: 1.5px solid #1d4e89; }
.phone-sec { padding: .4rem .9rem .8rem; }
.phone-sec b { color: #1d4e89; display: block; margin-bottom: .3rem; }
.phone-svc { border: 1px solid #e6e6e6; border-radius: 6px; padding: .45rem .55rem; margin-bottom: .35rem; }
.phone-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.phone-gal i { display: block; aspect-ratio: 1; border-radius: 4px; background: linear-gradient(135deg, #cfd8e3, #9fb1c6); }
.phone-gal i:nth-child(2) { background: linear-gradient(135deg, #e8d5c0, #c9a27a); }
.phone-gal i:nth-child(3) { background: linear-gradient(135deg, #d5e3d2, #9cbf96); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-panel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 1040; min-width: 230px; max-width: 80vw; background: #fff; color: var(--bs-body-color); border: 1px solid var(--ac-line); border-radius: .5rem; padding: .5rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); }
