/*
 * Zorraga Connect — customer space (connect.zorraga.tn), mobile first.
 * Loaded AFTER the shared design system ui.css (docs/UI_HARMONISATION.md): tokens, typography, buttons, fields,
 * cards… come from there (--ap-*). This file only keeps what the customer space alone uses. Logical properties only
 * (margin-inline, inset-inline, text-align: start) so the same rules work in French (LTR) and Arabic (RTL).
 */
:root {
    /* Customer-space only: everything else (colours, type, radius, shadows) comes from ui.css (--ap-*). */
    --zc-nav-h: 64px;
    --zc-whatsapp: #1fa855;
}

.zc-body { min-height: 100vh; }
:focus-visible { outline: 3px solid rgba(var(--ap-primary-rgb), .45); outline-offset: 2px; }

/* Header */

.zc-lang { display: flex; gap: .25rem; margin: 0; }
.zc-lang-btn {
    min-height: 36px;
    padding: .25rem .6rem;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    background: var(--ap-surface);
    color: var(--ap-text-3);
    font-size: .875rem;
}
.zc-lang-btn.is-active { background: var(--ap-primary-50); color: var(--ap-primary-700); font-weight: 600; }
/* Lot 8: small phones (360 px wide, common on Android): logo, bell and both language buttons fit on one line. */
@media (max-width: 380px) {

    .zc-lang { gap: .25rem; }
    .zc-lang-btn { padding-inline: .45rem; }
}

/* Content */

/* Cards are the back-office .card (ui.css); stacked customer cards keep a gap (low specificity: grids override it). */

:where(.zc-page) .card { margin-block-end: 1rem; }
/* Quote waiting for the customer's answer: marked on the side of its row / card (lists of the back-office: .ap-table). */
.zc-quote-table tr.is-pending > td.ap-td-main { border-inline-start: 3px solid #F59E0B; }

.zc-help { text-align: center; }

.zc-alert-link { text-decoration: none; }
.zc-form .form-label { font-weight: 600; }
.zc-links { display: flex; flex-direction: column; gap: .5rem; margin-block-start: 1rem; }
.zc-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 420px) { .zc-grid-2 { grid-template-columns: 1fr 1fr; } }
.zc-phone { font-weight: 600; unicode-bidi: isolate; white-space: nowrap; }
.zc-code-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .zc-dir-icon { transform: scaleX(-1); }

/* Password show / hide (client.js) */

/* Lot 8: the eye button sits where Bootstrap draws its error icon: no icon, the red border and message remain. */

/* WhatsApp */
.zc-btn-whatsapp {
    --bs-btn-bg: var(--zc-whatsapp);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #178a45;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #178a45;
    --bs-btn-active-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
}

/* Home modules */

/* Garage */

.zc-reminder { display: flex; align-items: flex-start; gap: .5rem; border-radius: var(--ap-radius); }

.zc-documents { list-style: none; padding: 0; margin: 0; }
.zc-vehicle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; }

.zc-vehicle-actions { flex-shrink: 0; }

/* Lot 8: on phones a long label or status badge must wrap instead of pushing the page wider than the screen. */

.zc-upload { margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px dashed var(--ap-border); }

/* Requests */

.zc-link-list { list-style: none; padding: 0; margin: 0; }

.zc-ref { font-weight: 700; color: var(--ap-primary-700); font-variant-numeric: tabular-nums; }

.zc-items { margin-block-end: .75rem; }
.zc-item { border: 1px solid var(--ap-border); border-radius: 10px; padding: .75rem; margin-block-end: .75rem; }
.zc-manual-vehicle[hidden], [data-zc-registration][hidden] { display: none; }
.zc-link-list li { padding-block: .5rem; }

/* Quotes */

.zc-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Lot 8: references, quantities and dates isolated as left-to-right are never split over two lines (Arabic). */
bdi[dir="ltr"] { white-space: nowrap; }

.zc-conditions { list-style: none; padding: 0; margin: 0; }

.zc-conditions li { padding-block: .25rem; padding-inline-start: 1rem; position: relative; }
.zc-conditions li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--ap-primary); }
.zc-quote-actions { border: 2px solid var(--ap-primary); }
.zc-quote-result { background: var(--ap-primary-50); }

/* Orders and notifications */

.zc-line-cancelled { opacity: .6; }
.zc-line-cancelled strong { text-decoration: line-through; }

/* Notifications (lot 7): header bell, notification centre, push settings */
.zc-more { display: inline-block; margin-block-start: .5rem; font-weight: 600; }
.zc-notif-toolbar form { margin: 0; }

.zc-notif-link { display: flex; flex-direction: column; gap: .15rem; color: var(--ap-text); text-decoration: none; }

.zc-notif-text { overflow-wrap: anywhere; }
.zc-notif-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-block-start: .35rem; font-size: .8rem; color: var(--ap-text-3); }
.zc-notif-meta form { margin: 0; }
.zc-notif-state { display: inline-flex; align-items: center; gap: .25rem; }
.zc-notif-state svg { width: 1em; height: 1em; }
.zc-notif-state.is-unread { color: var(--ap-primary); font-weight: 600; }

.zc-push-points { padding-inline-start: 1.1rem; color: var(--ap-text-3); }
.zc-push-state { font-weight: 600; color: var(--ap-primary-700); }
.zc-push-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: .75rem; }
.zc-devices { list-style: none; padding: 0; margin: 0 0 .75rem; }
.zc-devices li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .5rem; border-block-end: 1px solid var(--ap-border); }
.zc-live {
    position: fixed;
    inset-inline: 1rem;
    inset-block-start: calc(64px + env(safe-area-inset-top));
    z-index: 20;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.zc-live-item {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    max-width: 28rem;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--ap-radius);
    border-inline-start: 4px solid var(--ap-primary);
    background: var(--ap-surface);
    color: var(--ap-text);
    box-shadow: 0 8px 24px rgba(23, 43, 77, .15);
    text-decoration: none;
}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Logged in: the shell is the one of the back-office (ui.css: .ap-shell, .ap-sidebar, .ap-topbar, .ap-bottom-nav,
 * docs/UI_HARMONISATION.md Lot H2). Here only the customer specifics: readable page width, WhatsApp, language switch.
 * Guests (login, registration, password): brand panel + card below (reworked in Lot H4).
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.zc-page { max-width: 960px; }
.zc-page.zc-main--wide { max-width: none; }
.ap-nav-link.zc-nav-whatsapp svg { color: var(--zc-whatsapp); }
.zc-lang--sidebar { flex-wrap: wrap; }
.zc-lang--sidebar .zc-lang-btn { flex: 1; }

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Dashboard (lot B): phone = 2 counters per row, stacked sections; tablet = 4 counters; desktop = 4 counters on one
 * line and the sections in two columns (wide content, up to 1200 px).
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.zc-dashboard { display: grid; gap: 1rem; }
.zc-dashboard > * { margin-block-end: 0; }

/* Never truncated: a long label ("Mes commandes") wraps on a narrow phone. */

.zc-dash-list { display: grid; gap: .5rem; margin: 0 0 .25rem; padding: 0; list-style: none; }
.zc-dash-item {
    display: grid;
    gap: .2rem;
    padding: .75rem;
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    background: var(--ap-surface);
    color: var(--ap-text);
    min-width: 0;
}

.zc-dash-item-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.zc-dash-item-sub { overflow-wrap: anywhere; }
.zc-dash-item-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; font-size: .85rem; color: var(--ap-text-3); }
.zc-dash-deadline { color: var(--ap-warning); font-weight: 600; }
.zc-dash-cta { justify-self: start; margin-block-start: .35rem; }

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Garage (lot C): vehicle cards (1 column on a phone, 2 from 768 px, 3 from 1280 px), vehicle page (information and
 * deadlines side by side from 768 px, documents below), add / edit form (fields side by side from 768 px, sections
 * side by side from 1024 px). Garage-only selectors: the request page keeps its own document list.
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.zc-vehicle-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.zc-vehicle-grid .zc-vehicle { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; margin: 0; padding: 1rem; border: 1px solid transparent; }
.zc-vehicle-grid .zc-vehicle.is-primary { border-color: rgba(var(--ap-primary-rgb), .35); }
.zc-vehicle-head { display: flex; align-items: flex-start; gap: .75rem; }
.zc-vehicle-icon { display: inline-grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--ap-primary-50); color: var(--ap-primary); }
.zc-vehicle-icon svg { width: 1.5em; height: 1.5em; }
.zc-vehicle-name { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; min-width: 0; }
.zc-vehicle-name > .text-secondary { flex-basis: 100%; }

.zc-vehicle-grid .zc-vehicle-name > .zc-vehicle-title { flex-basis: 100%; }

.zc-vehicle-title { color: var(--ap-text); font-size: 1.1rem; font-weight: 700; text-decoration: none; overflow-wrap: break-word; }
.zc-vehicle-title:hover { color: var(--ap-primary); text-decoration: underline; }

.zc-vehicle-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; margin: 0; }
/* A 17-character VIN may wrap rather than leave its column on a narrow phone. */
.ap-dl dd .font-mono, .zc-vehicle-facts dd .font-mono { white-space: normal; overflow-wrap: anywhere; letter-spacing: .02em; }
.zc-vehicle-facts > div { min-width: 0; }
.zc-vehicle-facts dt { color: var(--ap-text-3); font-size: .78rem; font-weight: 400; }
.zc-vehicle-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.zc-vehicle-fact--wide { grid-column: 1 / -1; }

.zc-vehicle-grid .zc-vehicle-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.zc-vehicle-actions form { margin: 0; }
.zc-vehicle-grid .zc-vehicle-actions { margin-block-start: auto; padding-block-start: .75rem; border-block-start: 1px solid var(--ap-border); }

/* The lot 2 rule .zc-vehicle-actions { flex-shrink: 0 } kept the buttons on one line: here they wrap on a phone. */

/* Phone: the title on its own line, the actions below (never squeezed against each other, French or Arabic). */

.zc-vehicle-panels { display: grid; gap: 1rem; margin-block-end: 1rem; }
.zc-vehicle-panels > .card { margin: 0; }
.zc-vehicle-notes { margin-block-start: .75rem; padding-block-start: .75rem; border-block-start: 1px solid var(--ap-border); overflow-wrap: anywhere; }
.zc-deadlines { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.zc-deadline { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: 12px; border: 1px solid var(--ap-border); }
.zc-deadline-icon { display: inline-grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.zc-deadline-icon svg { width: 1.2em; height: 1.2em; }
.zc-deadline-body { flex: 1; min-width: 0; }
.zc-deadline-state { flex: none; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.zc-deadline--overdue { border-color: #F5CDCF; background: var(--ap-danger-bg); }
.zc-deadline--overdue .zc-deadline-icon, .zc-deadline--overdue .zc-deadline-state { background: var(--ap-danger-bg); color: var(--ap-danger); }
.zc-deadline--soon { border-color: #F7DDA9; background: var(--ap-warning-bg); }
.zc-deadline--soon .zc-deadline-icon, .zc-deadline--soon .zc-deadline-state { background: var(--ap-warning-bg); color: var(--ap-warning); }
.zc-deadline--ok .zc-deadline-icon, .zc-deadline--ok .zc-deadline-state { background: var(--ap-primary-50); color: var(--ap-primary-700); }
.zc-deadline--urgent { border-color: #FFD2AD; background: var(--ap-orange-bg); }
.zc-deadline--urgent .zc-deadline-icon, .zc-deadline--urgent .zc-deadline-state { background: var(--ap-orange-bg); color: var(--ap-orange); }
.zc-deadline--done .zc-deadline-icon, .zc-deadline--done .zc-deadline-state { background: var(--ap-muted-bg); color: var(--ap-text-2); }

.ap-file.is-new { border-color: var(--ap-primary); background: var(--ap-hover); }

.zc-document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-start: .5rem; }
.zc-document-actions form { margin: 0; }
.zc-upload-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 700; color: var(--ap-text); }
.zc-upload-title svg { width: 1.2em; height: 1.2em; color: var(--ap-primary); }
.zc-upload-grid { display: grid; gap: 0 1rem; }
/* Drop zone: the look is the back-office .ap-dropzone (ui.css); here only the customer behaviour (the real file input
   covers the zone, state while dragging / once a file is chosen). */
.zc-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; }
/* The real file input covers the zone (click and native drag & drop), invisible but focusable. */
.zc-dropzone-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zc-dropzone:focus-within { outline: 3px solid rgba(var(--ap-primary-rgb), .45); outline-offset: 2px; }
.zc-dropzone.is-dragging { border-color: var(--ap-primary); background: var(--ap-primary-50); }
.zc-dropzone.has-file { border-style: solid; border-color: var(--ap-primary); }
.zc-dropzone-file { max-width: 100%; font-weight: 600; color: var(--ap-primary-700); overflow-wrap: anywhere; }

.zc-form-panels { display: grid; gap: 0 1rem; }
.zc-form-grid { display: grid; gap: 0 1rem; }
.zc-form-actions { display: grid; gap: .5rem; margin-block: .5rem 1.5rem; }

@media (min-width: 768px) {
    .zc-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zc-vehicle-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .zc-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zc-upload-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
    .zc-form-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
    .zc-form-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

}
@media (min-width: 1280px) {
    .zc-vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Requests (lot D). List: filters + search, then ONE table — readable columns from 1024 px, each row a card below
 * (1 column on a phone, 2 on a tablet). New request: 4 steps, review aside (sticky) from 1024 px. Request page:
 * parts / files on one side, actions / follow-up on the other from 1024 px.
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.zc-link-card-box .zc-link-list { margin-block-end: .75rem; }

/* Table → cards below 1024 px */

/* The whole card / row opens the request (the link stays the only focusable element). */

/* New request */
.zc-request-layout { display: grid; gap: 1rem; }
.zc-request-steps { display: grid; gap: 1rem; min-width: 0; }
.zc-request-steps > .card, .zc-request-review { margin: 0; }
/* Steps reached by a link or an error stay below the sticky header. */
.zc-step { scroll-margin-block-start: 80px; }
.zc-step-title { display: flex; align-items: center; gap: .6rem; margin-block-end: .5rem; font-size: 1.15rem; font-weight: 700; color: var(--ap-text); }
.zc-step-number { display: inline-grid; flex: none; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ap-primary); color: #fff; font-size: .95rem; }
.zc-choices { display: grid; gap: .6rem; margin-block-end: .75rem; }
.zc-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-height: 64px;
    padding: .75rem;
    border: 2px solid var(--ap-border);
    border-radius: 12px;
    background: var(--ap-surface);
    cursor: pointer;
}
.zc-choice:hover { border-color: var(--ap-border-strong); }
.zc-choice.is-checked, .zc-choice:has(.zc-choice-input:checked) { border-color: var(--ap-primary); background: var(--ap-hover); }
.zc-choice-input { flex: none; margin-block-start: .3rem; accent-color: var(--ap-primary); width: 1.15rem; height: 1.15rem; }
.zc-choice-icon { display: inline-grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--ap-primary-50); color: var(--ap-primary); }
.zc-choice-icon svg { width: 1.2em; height: 1.2em; }
.zc-choice-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.zc-choice-body bdi[dir="ltr"] { white-space: normal; overflow-wrap: anywhere; }
.zc-item-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .5rem; }
.zc-item-title { color: var(--ap-text); }
.zc-card-inner { background: var(--ap-surface-2); }
.zc-file-list { display: grid; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.zc-file-list[hidden] { display: none; }
.zc-file { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 1px solid var(--ap-border); border-radius: 10px; background: var(--ap-surface); }
.zc-file-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.zc-file-name { flex: 1; min-width: 0; font-size: .9rem; overflow-wrap: anywhere; }
.zc-registration { padding: .75rem; border-radius: 12px; background: var(--ap-bg); }
.zc-review { display: grid; gap: .25rem; margin: 0 0 .75rem; }
.zc-review[hidden] { display: none; }
.zc-review dt { color: var(--ap-text-3); font-size: .8rem; font-weight: 400; }
.zc-review dd { margin: 0 0 .5rem; font-weight: 600; overflow-wrap: anywhere; }
.zc-review-parts { margin: 0; padding-inline-start: 1.1rem; font-weight: 500; }

/* Request page */

.zc-request-detail { display: grid; gap: 1rem; }
.zc-request-main, .zc-request-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.zc-request-main > .card, .zc-request-side > .card { margin: 0; }

.zc-action-stack { display: grid; gap: .5rem; }
.zc-action-stack .btn { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; }
/* Quotes listed on the request page (own class: .zc-quote-line is the line of a quote / order, lot 5). */
.zc-request-quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: .5rem .75rem; border: 1px solid var(--ap-border); border-radius: 10px; color: inherit; text-decoration: none; }
.zc-request-quote:hover { border-color: var(--ap-primary); }

@media (min-width: 768px) {

    .zc-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Two columns only from 1280 px: with the shared sidebar (264 px), a 1024 px screen leaves ~700 px of content. */
@media (min-width: 1280px) {
    .zc-request-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .zc-request-review { position: sticky; inset-block-start: 80px; }
    .zc-request-detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Quotes (lot E). The list reuses the requests table (.zc-request-table / .zc-request-row, lot D): table from
 * 1280 px, cards below. Quote lines: a table from 768 px, one block per part below. Quote and answer pages: summary /
 * answer first on a phone, on the right (sticky) from 1280 px.
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */

.zc-version { padding: .1rem .5rem; border-radius: 999px; background: var(--ap-primary-50); color: var(--ap-primary-700); font-size: .8rem; font-weight: 600; vertical-align: middle; }

.zc-quote-detail { display: grid; gap: 1rem; }
.zc-quote-side, .zc-quote-main { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.zc-quote-side > .card, .zc-quote-main > .card { margin: 0; }
.zc-quote-summary { border-block-start: 4px solid var(--ap-primary); }
.zc-quote-summary-total { margin: 0 0 .75rem; font-size: 1.6rem; font-weight: 700; color: var(--ap-text); }
.zc-quote-confirm { border: 2px solid var(--ap-primary); }
.zc-quote-confirm.is-refuse { border-color: #F5CDCF; }

/* Lot H3: from 1280 px (at 1024 px with the sidebar the lines table overlapped the summary). */
@media (min-width: 1280px) {
    .zc-quote-detail { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-areas: "main side"; align-items: start; }
    .zc-quote-main { grid-area: main; }
    .zc-quote-side { grid-area: side; position: sticky; inset-block-start: 80px; }
}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Orders (lot F). The list reuses the requests table (lot D) and the page the quote layout (lot E: summary / payment
 * first on a phone, on the right from 1280 px). Progress bar of five steps, vertical on a phone, horizontal from
 * 768 px. Order lines: the quote lines table (lot E) with a "state" column.
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */

/* Six columns at 1280 px: the payment and status badges may wrap instead of widening the table. */

.zc-order-links { display: grid; gap: .35rem; margin-block-start: .75rem; padding-block-start: .75rem; border-block-start: 1px solid var(--ap-border); font-size: .9rem; }
.zc-order-detail { margin-block-start: 1rem; }

.zc-progress-card { padding-block: 1rem; }
.zc-progress { position: relative; display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.zc-progress-step { position: relative; display: flex; align-items: center; gap: .75rem; color: var(--ap-text-3); }
/* Connector between two steps (phone: vertical). */
.zc-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline-start: calc(1rem - 1px);
    inset-block-start: 2rem;
    width: 2px;
    height: .75rem;
    background: var(--ap-border);
}
.zc-progress-step.is-done:not(:last-child)::after { background: var(--ap-primary); }
.zc-progress-dot {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--ap-border);
    border-radius: 50%;
    background: var(--ap-surface);
    font-size: .85rem;
    font-weight: 700;
}
.zc-progress-dot svg { width: 1em; height: 1em; }
.zc-progress-step.is-done { color: var(--ap-primary-700); }
.zc-progress-step.is-done .zc-progress-dot { border-color: var(--ap-primary); background: var(--ap-primary); color: #fff; }
.zc-progress-step.is-current { color: var(--ap-primary-700); font-weight: 700; }
.zc-progress-step.is-current .zc-progress-dot { border-color: var(--ap-primary); color: var(--ap-primary); box-shadow: 0 0 0 4px rgba(var(--ap-primary-rgb), .15); }
.zc-progress-step.is-partial .zc-progress-dot { border-style: dashed; }
.zc-progress-label { line-height: 1.25; overflow-wrap: anywhere; }
.zc-progress-partial { font-weight: 400; color: var(--ap-text-3); font-size: .85rem; }

@media (min-width: 768px) {
    .zc-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
    .zc-progress-step { flex-direction: column; text-align: center; gap: .4rem; }
    .zc-progress-step:not(:last-child)::after {
        inset-inline-start: calc(50% + 1.25rem);
        inset-block-start: calc(1rem - 1px);
        width: calc(100% - 2rem);
        height: 2px;
    }

}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * Notifications, profile, settings (lot G). Notification filters: the list filters (lot D). Profile: phone and
 * security first on a phone, beside the form from 1024 px. Settings: one column, two from 1024 px.
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */

.zc-profile, .zc-settings { display: grid; gap: 0 1rem; align-items: start; }
.zc-profile-side, .zc-profile-main, .zc-settings-col { min-width: 0; }
.zc-profile-main .zc-grid-2 { grid-template-columns: 1fr; }
.zc-profile-save { width: 100%; }

.zc-settings-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
.zc-settings-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 3rem;
    padding: .5rem .9rem;
    border: 1px solid var(--ap-border-strong);
    border-radius: .6rem;
    background: var(--ap-surface);
    color: inherit;
    font-weight: 600;
    text-align: start;
}
.zc-settings-lang:hover { border-color: var(--ap-primary); }
.zc-settings-lang.is-active { border-color: var(--ap-primary); background: var(--ap-primary-50); color: var(--ap-primary-700); }
.zc-settings-lang svg { width: 1.2em; height: 1.2em; flex: none; }
.zc-settings-links { list-style: none; margin: 0; padding: 0; }
.zc-settings-links a {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3rem;
    padding-block: .5rem;
    border-block-end: 1px solid var(--ap-border);
    color: inherit;
    text-decoration: none;
}
.zc-settings-links a:hover { color: var(--ap-primary-700); }
.zc-settings-links a > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zc-settings-links a > svg { flex: none; width: 1.15em; height: 1.15em; }

@media (min-width: 768px) {
    .zc-profile-main .zc-grid-2 { grid-template-columns: 1fr 1fr; }
    .zc-profile-main .zc-profile-address { grid-template-columns: 2fr 1fr; }
    .zc-profile-save { width: auto; min-width: 16rem; }
}
@media (min-width: 1024px) {
    .zc-profile { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); grid-template-areas: "main side"; }
    .zc-profile-main { grid-area: main; }
    .zc-profile-side { grid-area: side; }
    .zc-settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none; animation: none; }
}

/* Quote / order lines (back-office table): on a phone the total stays on one line, label then amount. */
@media (max-width: 767.98px) {
    .zc-lines.ap-table-stack > tfoot tr { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; }
    .zc-lines.ap-table-stack > tfoot td { width: auto; padding: 0; background: transparent; border: 0; }
}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
 * MY CAR WALLET (docs/MY_CAR_WALLET.md, lot W2): sections of the selected vehicle — one column on a phone, two from
 * 768 px, three from 1280 px. Every block is a back-office component (.card, .ap-dl, .ap-timeline, ui.kpi, ui.empty).
 * ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.zc-wallet { min-width: 0; }
.zc-wallet-grid { display: grid; gap: 1rem; align-items: stretch; }
/* Cards of a row share its height (no gap under the shorter ones); their action buttons line up at the bottom. */
.zc-wallet-grid > .card { margin: 0; min-width: 0; }
.zc-wallet-grid > .card > .card-body { display: flex; flex-direction: column; }
.zc-wallet-grid > .card > .card-body > .ap-actions:last-child { margin-block-start: auto !important; padding-block-start: 1rem; }
.zc-mileage-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.zc-mileage-form .input-group > .form-control { min-width: 0; }
@media (min-width: 768px) {
    .zc-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .zc-wallet-grid:not(.zc-wallet-grid--2) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Sections of a vehicle without entries yet: a compact empty state (the phone would otherwise scroll a lot). */
.zc-wallet-grid .ap-empty { padding: 1.25rem 1rem; }
.zc-wallet-grid .ap-empty-icon { width: 48px; height: 48px; border-radius: 16px; margin-block-end: .65rem; }
.zc-wallet-grid .ap-empty-icon svg { width: 22px; height: 22px; }
/* Deadlines page (lot W3): actions under each deadline, side column, editable suggested plan. */
.zc-wallet-col { display: grid; gap: 1rem; min-width: 0; }
.zc-wallet-col > .card { margin: 0; }
.zc-deadline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-block-start: .6rem; }
.zc-deadline-actions form { margin: 0; }
.zc-plan .form-control { max-width: 8rem; }

/* MY CAR WALLET, lot W5 — free text typed by the customer (description, parts replaced): line breaks kept. */
.zc-prewrap { white-space: pre-line; overflow-wrap: anywhere; }
.zc-wallet-services { display: grid; gap: .6rem; }
/* Interventions reached by #service-ID (after a change or an upload): not hidden under the sticky top bar. */
.zc-services > li { scroll-margin-top: calc(var(--zc-nav-h) + 1rem); }

/* MY CAR WALLET, lot W6 — expenses: share of each category, years, latest expenses. */
.zc-expense-split { display: grid; gap: .9rem; }
.zc-expense-split-head { display: flex; justify-content: space-between; gap: .75rem; margin-block-end: .35rem; }
.zc-expense-meter { --zc-meter: var(--ap-primary); display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--ap-border); overflow: hidden; appearance: none; }
.zc-expense-meter::-webkit-progress-bar { background: var(--ap-border); border-radius: 999px; }
.zc-expense-meter::-webkit-progress-value { background: var(--zc-meter); border-radius: 999px; }
.zc-expense-meter::-moz-progress-bar { background: var(--zc-meter); border-radius: 999px; }
.zc-expense-fuel { --zc-meter: var(--ap-warning); }
.zc-expense-maintenance { --zc-meter: var(--ap-info); }
.zc-expense-administrative { --zc-meter: var(--ap-primary); }
.zc-expense-misc { --zc-meter: var(--ap-text-3); } /* phase 2, lot P2: washing, parking, toll, other */
.zc-expense-years { display: flex; flex-wrap: wrap; gap: .3rem; }
.zc-expense-items > li + li { border-top: 1px solid var(--ap-border); }
.zc-expense-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; color: inherit; text-decoration: none; }
.zc-expense-item:hover { background: var(--ap-surface-2); }
/* Year totals under the months (a second tbody: same stacked cards on phones, labels kept). */
.zc-expense-totals > tr > td { font-weight: 600; }
@media (min-width: 768px) { .zc-expense-totals { border-top: 2px solid var(--ap-border); } }

/* Touch screens (MY CAR WALLET, lot W8 audit): checkboxes and segmented choices get the same 44 px target as the
   buttons and fields (ui.css, pointer: coarse) — the whole line (box + label) is the target. Customer space only. */
@media (pointer: coarse) {
    .zc-body .form-check:not(.form-switch) { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding-inline-start: 0; }
    .zc-body .form-check:not(.form-switch) > .form-check-input { float: none; flex: none; margin: 0; }
    .zc-body .ap-segmented .form-check-label { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; }
}

/* MY CAR WALLET phase 2, lot P1 — garage reminders wanted (Réglages): one choice per line, label + explanation. */
.zc-reminder-choices { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; }
.zc-reminder-choices .form-check-label { line-height: 1.35; }

/* MY CAR WALLET phase 2, lot P3 — vehicle history: an A4 sheet on screen, saved as PDF by the browser's print. */
.zc-doc { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 1.5rem; display: grid; gap: 1.25rem; max-width: 210mm; margin-inline: auto; box-shadow: var(--ap-shadow-sm); }
.zc-doc-head { display: flex; align-items: center; gap: 1rem; padding-block-end: 1rem; border-bottom: 2px solid var(--ap-primary); }
.zc-doc-logo { height: 42px; width: auto; flex: none; }
.zc-doc-kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-primary-700); }
html[dir="rtl"] .zc-doc-kicker { letter-spacing: 0; }
.zc-doc-title { margin: .1rem 0; font-size: 1.35rem; }
.zc-doc-meta, .zc-doc-muted { margin: 0; font-size: .82rem; color: var(--ap-text-3); }
.zc-doc-section { display: grid; gap: .6rem; min-width: 0; break-inside: avoid-page; }
.zc-doc-section h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .45rem; color: var(--ap-primary-700); }
.zc-doc-section h3 svg { width: 1.1em; height: 1.1em; }
.zc-doc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1rem; margin: 0; }
.zc-doc-facts dt { font-size: .75rem; font-weight: 600; color: var(--ap-text-3); }
.zc-doc-facts dd { margin: 0; font-weight: 600; }
.zc-doc-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.zc-doc-table th, .zc-doc-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--ap-border); text-align: start; vertical-align: top; }
.zc-doc-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ap-text-3); background: var(--ap-surface-2); }
html[dir="rtl"] .zc-doc-table thead th { letter-spacing: 0; }
.zc-doc-table tfoot th, .zc-doc-table tfoot td { border-bottom: 0; border-top: 2px solid var(--ap-border-strong); font-weight: 700; }
.zc-doc-table tr { break-inside: avoid; }
.zc-doc-num { text-align: end !important; white-space: nowrap; }
.zc-doc-foot { padding-block-start: .75rem; border-top: 1px solid var(--ap-border); font-size: .75rem; color: var(--ap-text-3); }
@media (max-width: 575.98px) {
    .zc-doc { padding: 1rem; border-radius: var(--ap-radius-sm); }
    .zc-doc-table { display: block; overflow-x: auto; }
}
@media print {
    @page { size: A4; margin: 14mm 12mm; }
    .ap-sidebar, .ap-offcanvas, .ap-topbar, .ap-bottom-nav, .ap-skip, .ap-toasts, .zc-print-hide { display: none !important; }
    body, .ap-main, .ap-content, .zc-page { background: #fff !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
    .zc-doc { border: 0; box-shadow: none; padding: 0; max-width: none; gap: .85rem; font-size: .92rem; }
    .zc-doc-head { padding-block-end: .7rem; }
    .zc-doc-table th, .zc-doc-table td { padding: .3rem .45rem; }
    .zc-doc-foot { break-before: avoid; padding-block-start: .5rem; }
    .zc-doc-table { display: table; overflow: visible; }
    .zc-doc-table thead { display: table-header-group; }
    a { color: inherit; text-decoration: none; }
}

/* "Installer l'application" (customer PWA): numbered steps of the install modal. */
.zc-install-steps { padding-inline-start: 1.2rem; margin-block-end: 1rem; }
.zc-install-steps li { margin-block-end: .55rem; line-height: 1.45; }

/* ── Home page of the customer host (/client/bienvenue, client/welcome.html.twig) ─────────────────────────────────── */
.zc-welcome-wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .zc-welcome-wrap { padding-inline: 1.5rem; } }

.zc-welcome-top { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid var(--ap-border); }
.zc-welcome-top-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 68px; }
.zc-welcome-brand { display: inline-flex; --ap-logo-h: 42px; }
.zc-welcome-top-actions { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 419.98px) {
    .zc-welcome-brand { --ap-logo-h: 34px; }
    .zc-welcome-top-actions .btn span { display: none; }
}

.zc-welcome-hero { position: relative; overflow: hidden; color: #fff; padding-block: 3rem 3.5rem;
    background: radial-gradient(900px 520px at 0% 0%, #22B36D 0%, transparent 60%), linear-gradient(140deg, var(--ap-primary) 0%, #0C6A3D 55%, #1D4FA8 140%); }
.zc-welcome-hero::before, .zc-welcome-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.zc-welcome-hero::before { width: 520px; height: 520px; inset-inline-end: -180px; inset-block-start: -200px; border: 80px solid rgba(255, 255, 255, .06); }
.zc-welcome-hero::after { width: 320px; height: 320px; inset-inline-start: -140px; inset-block-end: -170px; background: rgba(255, 255, 255, .05); }
.zc-welcome-hero-inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) {
    .zc-welcome-hero { padding-block: 4.5rem 5rem; }
    .zc-welcome-hero-inner { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}
.zc-welcome-hero-text { min-width: 0; }
.zc-welcome-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 600; margin-block-end: 1.1rem; }
.zc-welcome-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-block-end: 1rem; max-width: 620px; }
.zc-welcome-lead { color: rgba(255, 255, 255, .88); font-size: 1.1rem; line-height: 1.6; max-width: 560px; margin-block-end: 1.75rem; }
.zc-welcome-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.zc-welcome-cta .btn-light { color: var(--ap-primary-700); font-weight: 600; }
@media (max-width: 575.98px) { .zc-welcome-cta .btn { flex: 1 1 100%; } }
.zc-welcome-install-link { display: inline-flex; align-items: center; gap: .4rem; margin-block-start: 1.1rem; min-height: 44px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.zc-welcome-install-link:hover { color: #fff; opacity: .85; }
.zc-welcome-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1rem 0 0; color: rgba(255, 255, 255, .9); font-size: .9rem; }
.zc-welcome-trust li { display: inline-flex; align-items: center; gap: .35rem; }

/* Decorative phone preview */
.zc-welcome-phone { justify-self: center; width: min(300px, 100%); padding: 12px; border-radius: 42px; background: #0F172A; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(-3deg); animation: zc-welcome-float 6s ease-in-out infinite; }
[dir="rtl"] .zc-welcome-phone { transform: rotate(3deg); }
.zc-welcome-phone-screen { background: var(--ap-bg); color: var(--ap-text); border-radius: 31px; padding: .75rem .8rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; min-height: 470px; }
.zc-welcome-phone-bar { display: flex; justify-content: center; padding-block: .1rem .3rem; }
.zc-welcome-phone-bar span { width: 86px; height: 22px; border-radius: 999px; background: #0F172A; }
.zc-welcome-mock-notif, .zc-welcome-mock-card { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 18px; padding: .8rem .9rem; box-shadow: var(--ap-shadow); }
.zc-welcome-mock-notif { display: flex; align-items: center; gap: .7rem; }
.zc-welcome-mock-notif strong, .zc-welcome-mock-order strong { display: block; font-size: .88rem; }
.zc-welcome-mock-notif small, .zc-welcome-mock-order small { color: var(--ap-text-3); font-size: .76rem; }
.zc-welcome-mock-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-primary-50); color: var(--ap-primary); }
.zc-welcome-mock-head { display: flex; align-items: center; gap: .45rem; margin-block-end: .55rem; color: var(--ap-primary-700); }
.zc-welcome-mock-head strong { color: var(--ap-text); }
.zc-welcome-mock-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .45rem; font-size: .82rem; }
.zc-welcome-mock-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.zc-welcome-mock-list em { font-style: normal; font-weight: 600; font-size: .74rem; padding: .15rem .55rem; border-radius: 999px; }
.zc-welcome-mock-list em.is-soon { background: var(--ap-warning-bg); color: var(--ap-warning); }
.zc-welcome-mock-list em.is-ok { background: var(--ap-success-bg); color: var(--ap-success); }
.zc-welcome-mock-order { display: flex; align-items: center; gap: .7rem; }
.zc-welcome-mock-order > svg { flex-shrink: 0; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--ap-info-bg); color: var(--ap-info); }
@keyframes zc-welcome-float { 50% { translate: 0 -10px; } }
@media (max-width: 991.98px) { .zc-welcome-phone, [dir="rtl"] .zc-welcome-phone { transform: none; } }

/* Sections */
.zc-welcome-section { padding-block: 3.5rem; }
.zc-welcome-section--alt { background: var(--ap-surface); border-block: 1px solid var(--ap-border); }
@media (min-width: 992px) { .zc-welcome-section { padding-block: 5rem; } }
.zc-welcome-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.015em; text-align: center; margin-block-end: .6rem; }
.zc-welcome-intro { color: var(--ap-text-3); font-size: 1.05rem; text-align: center; max-width: 620px; margin: 0 auto 2.25rem; }

.zc-welcome-features { display: grid; gap: 1rem; }
@media (min-width: 576px) { .zc-welcome-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .zc-welcome-features { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.zc-welcome-feature { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 1.5rem; box-shadow: var(--ap-shadow-sm); transition: transform .2s, box-shadow .2s; }
.zc-welcome-feature:hover { transform: translateY(-3px); box-shadow: var(--ap-shadow-lg); }
.zc-welcome-feature h3 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .4rem; }
.zc-welcome-feature p { color: var(--ap-text-2); margin: 0; line-height: 1.55; }
.zc-welcome-feature-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--ap-primary-50); color: var(--ap-primary); }
.zc-welcome-feature-icon svg { width: 24px; height: 24px; }
.zc-welcome-feature--quote .zc-welcome-feature-icon { background: var(--ap-info-bg); color: var(--ap-info); }
.zc-welcome-feature--order .zc-welcome-feature-icon { background: var(--ap-violet-bg); color: var(--ap-violet); }
.zc-welcome-feature--garage .zc-welcome-feature-icon { background: var(--ap-orange-bg); color: var(--ap-orange); }
.zc-welcome-feature--reminders .zc-welcome-feature-icon { background: var(--ap-warning-bg); color: var(--ap-warning); }
.zc-welcome-feature--whatsapp .zc-welcome-feature-icon { background: var(--ap-teal-bg); color: var(--ap-teal); }

.zc-welcome-steps { list-style: none; counter-reset: zc-step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .zc-welcome-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.zc-welcome-steps li { counter-increment: zc-step; text-align: center; padding: 0 .5rem; }
.zc-welcome-steps li::before { content: counter(zc-step); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(140deg, #18A262, var(--ap-primary-700)); color: #fff; font-size: 1.35rem; font-weight: 800; box-shadow: 0 12px 24px -12px rgba(var(--ap-primary-rgb), .7); }
.zc-welcome-steps h3 { font-size: 1.1rem; font-weight: 700; margin-block-end: .35rem; }
.zc-welcome-steps p { color: var(--ap-text-2); margin: 0; }

.zc-welcome-install { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 24px; padding: 2rem 1.25rem; box-shadow: var(--ap-shadow); }
@media (min-width: 768px) { .zc-welcome-install { padding: 2.75rem; } }
.zc-welcome-install-head { text-align: center; margin-block-end: 2rem; }
.zc-welcome-install-head .zc-welcome-feature-icon { margin-block-end: 1rem; }
.zc-welcome-install-head .zc-welcome-intro { margin-block-end: 1.25rem; }
.zc-welcome-installed { display: inline-flex; align-items: center; gap: .4rem; color: var(--ap-success); font-weight: 600; margin: 0; }
.zc-welcome-devices { display: grid; gap: 1rem; margin-block-end: 1.5rem; }
@media (min-width: 992px) { .zc-welcome-devices { grid-template-columns: repeat(3, 1fr); } }
.zc-welcome-device { background: var(--ap-surface-2); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 1.25rem 1.25rem .5rem; }
.zc-welcome-device h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 700; margin-block-end: .9rem; color: var(--ap-primary-700); }

.zc-welcome-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 2rem; border-radius: 24px; background: linear-gradient(140deg, var(--ap-primary-50), var(--ap-teal-bg)); border: 1px solid var(--ap-primary-100); }
.zc-welcome-help .zc-welcome-title { text-align: start; }
.zc-welcome-help p { color: var(--ap-text-2); max-width: 560px; }
@media (max-width: 575.98px) { .zc-welcome-help { padding: 1.5rem 1.25rem; } .zc-welcome-help .btn { width: 100%; } }

.zc-welcome-footer { padding-block: 1.75rem; color: var(--ap-text-3); font-size: .88rem; }
.zc-welcome-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.zc-welcome-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.zc-welcome-footer a { color: var(--ap-text-2); display: inline-flex; align-items: center; min-height: 44px; }
.zc-welcome-footer a:hover { color: var(--ap-primary); }

@media (prefers-reduced-motion: reduce) {
    .zc-welcome-phone { animation: none; }
    .zc-welcome-feature, .zc-welcome-feature:hover { transition: none; transform: none; }
}

/* "Commander sans application" (public part request /demande-piece, no account): links of the hero + band under it */
.zc-welcome-hero-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-block-start: .4rem; }
.zc-welcome-hero-links .zc-welcome-install-link { margin-block-start: .5rem; }
.zc-welcome-order-band { position: relative; z-index: 2; margin-block-start: -1.75rem; }
.zc-welcome-order { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 20px; padding: 1.5rem; box-shadow: var(--ap-shadow-lg); }
.zc-welcome-order-text { flex: 1 1 320px; min-width: 0; }
.zc-welcome-order-text h2 { font-size: 1.25rem; font-weight: 800; margin-block-end: .3rem; }
.zc-welcome-order-text p { color: var(--ap-text-2); margin: 0; }
@media (max-width: 575.98px) { .zc-welcome-order { padding: 1.25rem; } .zc-welcome-order .btn { width: 100%; } }
