:root {
  /* Tokens repris de byemycar (bmc.css, design system v2) */
  --accent: #b52666;
  --accent-2: #d92a4d;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --ink: #17121f;
  --muted: #766f83;
  --line: #ece6ea;
  --bg: #ffffff;
  --soft: #faf6f8;
  --radius: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 18, 31, .06), 0 2px 8px rgba(23, 18, 31, .04);
  --shadow-md: 0 8px 24px rgba(23, 18, 31, .08), 0 2px 6px rgba(23, 18, 31, .04);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
       color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
input, select, textarea, button { font-family: var(--font); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.6rem; } h3 { font-size: 1.15rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 32px 0; color: var(--muted); font-size: .92rem; background: var(--soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }

/* buttons */
.btn { display: inline-block; padding: .8em 1.5em; border-radius: 999px; border: 0;
       background: var(--grad); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
       box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-2) 28%, transparent);
       transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-2) 36%, transparent); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.ghost:hover { background: var(--grad); color: #fff; }
.btn.boost { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; box-shadow: none; }
.btn.boost:hover { box-shadow: 0 8px 18px rgba(245, 158, 11, .4); }
.btn.boost:disabled { opacity: .5; transform: none; box-shadow: none; cursor: not-allowed; }
.btn.danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.btn.sm { padding: .3em .9em; font-size: .88rem; }

/* sections */
.hero { padding: 88px 0 72px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, white) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { padding-top: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; box-shadow: var(--shadow-sm); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
                 background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); font-size: 1.3rem; margin-bottom: 12px; }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px;
                       border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }

/* vehicles */
.vcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: var(--ink); display: block; }
.vcard { box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s; }
.vcard:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vcard .ph { aspect-ratio: 4/3; background: var(--soft); position: relative; }
.vcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.vcard .body { padding: 14px 16px 16px; }
.vcard .price { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.vcard .meta { color: var(--muted); font-size: .9rem; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; padding: .1em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); border: 1px solid var(--line); }
.badge.reserved { color: var(--warn); border-color: currentColor; background: #fffbeb; }
.badge.sold, .badge.no { color: var(--bad); border-color: currentColor; background: #fef2f2; }
.badge.available, .badge.new, .badge.yes { color: var(--ok); border-color: currentColor; background: #f0fdf4; }
.ph .badge { position: absolute; top: 10px; left: 10px; }
.gallery { display: grid; gap: 10px; }
.gallery .main { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img:hover { border-color: var(--accent); }
.detail { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { color: var(--muted); background: var(--soft); }
.bigprice { font-size: 2rem; font-weight: 800; color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 24px; }
.filters label { font-size: .85rem; color: var(--muted); display: block; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: .6em .75em; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid #cbd5e1; border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, white); border-color: var(--accent); }
.field .help { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--bad); font-size: .88rem; }
.checkrow { display: flex; gap: 8px; align-items: flex-start; }
.checkrow input { width: auto; margin-top: .35em; }
.checkrow label { font-weight: 400; margin: 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.form-grid .wide { grid-column: 1 / -1; }
.vehicle-extra { margin: 8px 0 20px; border-top: 1px solid var(--line, #e5e7eb); padding-top: 12px; }
.vehicle-extra summary { cursor: pointer; margin-bottom: 12px; }
.form-card { max-width: 720px; margin: 40px auto 0; }
.narrow { max-width: 460px; }
.htmx-request select { opacity: .6; }

/* messages */
.messages { list-style: none; padding: 0; margin: 16px 0 0; }
.messages li { padding: 10px 14px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--ok); margin-bottom: 8px; }
.notice { padding: 10px 14px; border-radius: 8px; background: #eff6ff; border: 1px solid #bfdbfe; margin-bottom: 16px; }

/* management */
.manage { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); background: var(--soft); padding: 20px 12px; }
.side a { display: block; padding: .55em .9em; border-radius: 8px; color: var(--ink); font-weight: 500; }
.side a:hover { background: #fff; text-decoration: none; }
.side a.on { background: #fff; color: var(--accent); box-shadow: 0 0 0 1px var(--line); }
.main { padding: 28px 24px 56px; min-width: 0; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 28px; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.inline { display: inline; }
.inline select { width: auto; padding: .3em .5em; font-size: .88rem; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.photos img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; }
.photo { position: relative; width: 110px; }
.photo-del button { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 50%; width: 24px; height: 24px; background: rgba(15,23,42,.8); color: #fff; cursor: pointer; }
.photo-main { position: absolute; left: 4px; top: 4px; }
.photo-move { display: flex; gap: 4px; margin-top: 4px; }
.photo-move button { flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: .8rem; }
.photo-move button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.photo-move button:disabled { opacity: .35; cursor: default; }
input[type=search] { width: 100%; padding: .6em .75em; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; margin: 0; }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
  .manage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; padding: 8px; align-self: start; -webkit-overflow-scrolling: touch; }
  .side a { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px 16px; }
  .nav { gap: 14px; }
  .hero { padding: 56px 0 48px; }
  .site-header { position: static; }
}

/* logo + visuels repris de byemycar */
.brand img, .brand svg { height: 46px; width: auto; }
.footer-logo svg { height: 37px; width: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); }
.hero--split { text-align: left; padding: 56px 0; }
.hero--split .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero--split p { margin: 0 0 28px; }
.hero--split .actions { justify-content: flex-start; }
.hero__img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow-md); }
.feature { padding: 0; overflow: hidden; }
.feature h3, .feature p { padding: 0 24px; }
.feature h3 { margin-top: 18px; } .feature p { margin: 0 0 24px; }
.card__fig { margin: 0; padding: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, white), #fff); }
.steps-num { counter-reset: s; }
.steps-num .feature { position: relative; }
.steps-num .feature::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 14px; z-index: 1; display: grid; place-items: center;
                              width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; box-shadow: var(--shadow-md); }
.card__fig img { width: 100%; height: 170px; object-fit: contain; }
.vcard .ph img.placeholder { object-fit: contain; padding: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, white), #fff); }
.noimg-label { position: absolute; left: 10px; bottom: 10px; padding: .15em .7em; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--line); font-size: .78rem; }
@media (max-width: 800px) { .hero--split .wrap { grid-template-columns: 1fr; } .hero--split { text-align: center; } .hero--split .actions { justify-content: center; } }

.site-footer .footer__bottom { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 16px; text-align: center; font-size: .85rem; }
.site-footer > .footer__bottom { max-width: 1120px; margin: 24px auto 0; }

/* footer collé en bas de l'écran même sur les pages courtes */
body > main { flex: 1 0 auto; padding-bottom: 64px; }
body > .site-header, body > .site-footer { flex: 0 0 auto; }
.manage { min-height: calc(100vh - 64px - 150px); }
.filters > div { flex: 1 1 150px; min-width: 0; }
.filters .btn { flex: 0 0 auto; }
@media (max-width: 520px) {
  .filters > div { flex-basis: 100%; }
  .filters .btn { width: 100%; }
  .section { padding-top: 36px; }
  .page-head .btn, .form-card .btn { width: 100%; text-align: center; }
  .site-footer .wrap { flex-direction: column; gap: 14px; }
  h2 { font-size: 1.35rem; }
}

/* espace de gestion : enveloppe distincte du site public */
.brand .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
              background: color-mix(in srgb, var(--accent) 10%, white); padding: .15em .6em; border-radius: 999px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.linklike:hover { color: var(--accent); }
.site-footer.slim { margin-top: 0; padding-top: 16px; padding-bottom: 16px; }
.site-footer.slim .wrap { justify-content: center; }
.manage-body { background: var(--soft); }
.manage-body body > main { padding-bottom: 0; }
body.manage-body > main { padding-bottom: 0; }
.manage-body .main { background: var(--soft); }

/* formulaire de vente par étapes (repris de byemycar) */
.sell { max-width: 640px; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 20px 0 24px; counter-reset: st; }
.stepper li { flex: 1; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.stepper li::before { content: ""; display: block; height: 5px; border-radius: 99px; background: var(--line); margin-bottom: 8px; }
.stepper li.is-done { color: var(--ink); } .stepper li.is-done::before { background: var(--accent); opacity: .55; }
.stepper li.is-current { color: var(--accent); } .stepper li.is-current::before { background: var(--grad); }
.panel[hidden], .rv-extra[hidden] { display: none; }
.panel h2 { font-size: 1.3rem; }
.chain-item { margin-bottom: 12px; } .chain-item:empty { display: none; }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; }
.actions .btn:only-child { margin-left: auto; }
.choice-list { display: grid; gap: 10px; margin: 12px 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; background: #fff; }
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, white); }
.choice input { width: auto; accent-color: var(--accent); }
.notice address { font-style: normal; }
.confirm { text-align: center; margin-bottom: 20px; }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.confirm__icon svg { width: 32px; height: 32px; }
.recap { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 14px; background: var(--soft); }
.recap h3 { font-size: 1rem; margin-bottom: .4em; } .recap ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 520px) { .stepper li { font-size: .6rem; } .actions { flex-direction: column-reverse; } .actions .btn { width: 100%; text-align: center; } }

/* mobile : tableaux de gestion en cartes empilées, cibles tactiles >= 44px */
@media (max-width: 700px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table.cards, table.cards tbody { display: block; }
  table.cards tr:first-child:has(th) { display: none; }
  table.cards tr { display: block; margin-bottom: 14px; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  table.cards td { display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.cards td:last-child { border-bottom: 0; }
  table.cards td[data-label]::before { content: attr(data-label); flex: 0 0 auto; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  table.cards td.cell-main { display: block; text-align: left; }
  table.cards td.cell-photo { display: none; }
  table.cards td.cell-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal !important; }
  table.cards td.cell-actions .btn { flex: 1 1 120px; text-align: center; }
  .btn.sm { padding: .65em 1em; }
  .inline select { font-size: 1rem; padding: .55em .6em; min-height: 44px; }
  .nav a, .linklike { padding: .35em 0; }
}
@media (max-width: 360px) { .stepper { gap: 4px; } .stepper li { font-size: .52rem; letter-spacing: 0; } }

.vcard .seller { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .82rem; }

/* tarifs (accueil) + lien discret vers le panneau superuser */
.site-footer a.quiet { color: inherit; text-decoration: none; cursor: default; }
.plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan h3 { margin: 0; }
.plan--hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.plan__price { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.plan__price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan__list { list-style: none; margin: 4px 0 8px; padding: 0; flex: 1; }
.plan__list li { padding: 6px 0 6px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: .94rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }

@media (max-width: 700px) { table.cards .cv { min-width: 0; text-align: right; overflow-wrap: anywhere; } }

/* « Mon compte » : catégorie en rouge + zone de suppression */
.side a.side-danger { color: var(--bad); font-weight: 700; }
.side a.side-danger:hover { background: #fef2f2; }
.side a.side-danger.on { color: var(--bad); box-shadow: 0 0 0 1px var(--bad); background: #fef2f2; }
@media (min-width: 801px) { .side a.side-danger { margin-top: 18px; } }
.info { margin: 0 0 18px; }
.info > div { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); flex: 0 0 auto; }
.info dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.danger-zone { border-color: var(--bad); background: #fffafa; }
.danger-zone h2 { color: var(--bad); }
.btn.danger-solid { background: var(--bad); box-shadow: none; }
.btn.danger-solid:hover { box-shadow: 0 8px 18px rgba(185, 28, 28, .3); }
progress { accent-color: var(--accent); height: 10px; }
.info > div { flex-wrap: wrap; }
.info dd { flex: 1 1 auto; }

.req-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.req-photos img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); }
.req-photos a:hover img { border-color: var(--accent); }

.optset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.optset legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.optset .choice-list, .optset > .choice { margin-bottom: 8px; }

/* statut d'un véhicule (liste de gestion) : disponible vert, réservé jaune, vendu rouge */
select.status { font-weight: 700; border-width: 1px; border-color: currentColor; }
select.status option { color: var(--ink); background: #fff; font-weight: 400; }
select.status-available { color: var(--ok); background-color: #f0fdf4; }
select.status-reserved { color: var(--warn); background-color: #fffbeb; }
select.status-sold { color: var(--bad); background-color: #fef2f2; }
.badge.over-plan { color: var(--warn); border-color: currentColor; background: #fffbeb; margin-left: 4px; white-space: nowrap; }
.danger-zone-soft { border-color: var(--warn); background: #fffdf5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero : maquette animée du site d'un garage (remplace la photo) */
.hero__mock { position: relative; aspect-ratio: 3/2; max-width: 100%; container-type: inline-size; }
.mk-win { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 2.4cqw; box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow-md); }
.mk-bar { display: flex; align-items: center; gap: 1.4cqw; padding: 1.6cqw 2.2cqw; background: var(--soft); border-bottom: 1px solid var(--line); }
.mk-dots { display: flex; gap: .9cqw; }
.mk-dots i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--line); }
.mk-url { flex: 1; max-width: 46cqw; margin: 0 auto; padding: .6cqw 2cqw; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 1.9cqw; line-height: 1.4; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.mk-url b { color: var(--ink); font-weight: 600; }
.mk-site { flex: 1; display: flex; flex-direction: column; padding: 2.2cqw 3cqw 0; min-height: 0; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; font-size: 1.9cqw; color: var(--muted); }
.mk-nav strong { font-size: 2.4cqw; color: var(--ink); font-weight: 800; }
.mk-nav span { display: flex; gap: 2.4cqw; }
.mk-nav em { font-style: normal; padding: .7cqw 2cqw; border-radius: 1.2cqw; background: var(--grad); color: #fff; font-weight: 600; }
.mk-title { margin-top: 2.6cqw; font-size: 4.2cqw; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); max-width: 48cqw; }
.mk-sub { margin-top: 1cqw; font-size: 1.9cqw; line-height: 1.4; color: var(--muted); max-width: 44cqw; }
.mk-cards { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding-bottom: 2.4cqw; }
.mk-card { border: 1px solid var(--line); border-radius: 1.6cqw; overflow: hidden; background: var(--bg); }
.mk-card div { height: 11cqw; background: linear-gradient(135deg, var(--soft), var(--line)); display: grid; place-items: end center; padding: 0 1.2cqw 1cqw; }
.mk-card svg { width: 100%; height: 100%; display: block; }
.mk-card span { display: block; padding: 1cqw 1.6cqw; font-size: 1.8cqw; line-height: 1.35; color: var(--ink); font-weight: 600; }
.mk-card small { display: block; color: var(--accent); font-weight: 800; font-size: 1.9cqw; }
.badge.boosted { color: #78350f; border-color: #f59e0b; background: #fde68a; white-space: nowrap; }
.ph .badge.boosted { left: auto; right: 10px; }
.nav a.btn-contact { color: #fff; }
.nav a.btn-contact:hover { color: #fff; }

/* Tableau de bord : graphiques */
.charts { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart h2 { font-size: 1rem; margin: 0 0 12px; }
.chart.wide { grid-column: 1 / -1; }
.chart-box { position: relative; height: 260px; }
.chart.wide .chart-box { height: 300px; }
@media (max-width: 800px) { .charts { grid-template-columns: 1fr; } }

/* Devis et factures */
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.doc-logo { max-height: 56px; display: block; margin-bottom: 8px; }
.doc-title h2 { margin: 0 0 6px; color: var(--accent); }
.doc-party { margin-bottom: 16px; }
.doc-lines th.num, .doc-lines td.num, .doc-totals td.num { text-align: right; white-space: nowrap; }
.doc-totals { width: auto; margin: 16px 0 0 auto; min-width: 260px; }
.doc-totals td { border: 0; padding: 4px 14px; }
.doc-totals .grand td { font-weight: 800; border-top: 2px solid var(--ink); }
.doc-small { font-size: .82rem; color: var(--muted); }
