/* ===== Klario Cargo — identité Klario (vert, jaune, rouge ; Inter ; hexagone), mobile d'abord ===== */

/* Polices hébergées par le site (Inter, Material Icons Outlined) : aucune dépendance à Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Material Icons Outlined'; font-style: normal; font-weight: 400; font-display: block; src: url('fonts/material-icons-outlined.woff2') format('woff2'); }
.material-icons-outlined {
    font-family: 'Material Icons Outlined'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
    letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal;
    direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; overflow: hidden; max-width: 1.2em;
}

:root {
    --klario-green: #00843D;
    --klario-green-dark: #006830;
    --klario-green-light: #e6f5ed;
    --klario-yellow: #FCD116;
    --klario-yellow-light: #fff9e0;
    --klario-red: #E31B23;
    --klario-red-light: #fdecec;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --whatsapp: #1FA855;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
    --shadow: 0 6px 18px -6px rgba(17, 24, 39, .14);
    --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--klario-green); text-decoration: none; }
a:hover { color: var(--klario-green-dark); }

h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow, .narrow { max-width: 680px; }
.muted { color: var(--gray-500); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; }
.pre { white-space: pre-line; }

.icon { font-size: 1.15em; line-height: 1; vertical-align: -0.18em; }
.icon.big { font-size: 3rem; color: var(--klario-green); }

/* ===== En-tête ===== */

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 20;
    padding-top: env(safe-area-inset-top);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--gray-900); }
.brand:hover { color: var(--gray-900); }
.logo { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-sub { color: var(--klario-green); }
.brand-pill { font-size: .7rem; background: var(--klario-yellow); color: var(--gray-900); padding: .1rem .45rem; border-radius: 999px; vertical-align: .2em; margin-left: .15rem; }
.topnav { display: flex; gap: .25rem; }
.topnav-link { display: flex; align-items: center; gap: .3rem; padding: .5rem .65rem; border-radius: 999px; color: var(--gray-700); font-weight: 600; font-size: .9rem; }
.topnav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.topnav-gp { background: var(--klario-green-light); color: var(--klario-green-dark); }
.topnav-link { font-size: .85rem; padding: .45rem .6rem; }
.icon-btn { background: none; border: 0; padding: .5rem; border-radius: 999px; color: var(--gray-700); cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { background: var(--gray-100); }

/* ===== Boutons ===== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .8rem 1.25rem; border-radius: var(--radius-sm);
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    border: 2px solid transparent; cursor: pointer; text-align: center;
    transition: background .15s, border-color .15s, transform .05s;
    min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--klario-green); color: var(--white); }
.btn-primary:hover { background: var(--klario-green-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--klario-green-dark); border-color: var(--klario-green); }
.btn-secondary:hover { background: var(--klario-green-light); color: var(--klario-green-dark); }
.btn-yellow { background: var(--klario-yellow); color: var(--gray-900); }
.btn-yellow:hover { filter: brightness(.96); color: var(--gray-900); }
.btn-danger { background: var(--klario-red); color: var(--white); }
.btn-danger:hover { filter: brightness(.92); color: var(--white); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { filter: brightness(.95); color: var(--white); }
.btn-sm { padding: .5rem .8rem; font-size: .9rem; min-height: 40px; }
.btn-block { width: 100%; }
.btn-block-mobile { width: 100%; }

/* ===== Accueil ===== */

.hero {
    background:
        radial-gradient(circle at 90% 0%, rgba(252, 209, 22, .25), transparent 40%),
        linear-gradient(160deg, var(--klario-green) 0%, var(--klario-green-dark) 100%);
    color: var(--white);
    padding: 28px 0 32px;
}
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.14); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.hero h1 { font-size: 1.85rem; margin-bottom: .6rem; }
.hl { color: var(--klario-yellow); }
.lead { opacity: .92; margin-bottom: 1.2rem; }

.search-card { background: var(--white); color: var(--gray-900); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.search-fields { display: grid; gap: 10px; }
.page-head .search-card { box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.3); padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.chip:hover { background: rgba(255,255,255,.24); color: var(--white); }

.section { padding: 28px 0; }
.section-tight { padding: 16px 0 28px; }
.section-soft { background: var(--white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section h2 { margin-bottom: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; font-size: .9rem; }

.page-head { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.page-head h1 { margin-bottom: 1rem; font-size: 1.4rem; }

.steps { list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { color: var(--gray-500); font-size: .92rem; }
.step-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--klario-yellow); color: var(--gray-900); font-weight: 800; display: grid; place-items: center; }

.cta-gp { background: var(--gray-900); color: var(--white); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.cta-gp > * { position: relative; z-index: 1; }
.cta-gp::after { content: ""; position: absolute; z-index: 0; right: -40px; top: -40px; width: 140px; height: 140px; background: var(--klario-green); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); opacity: .5; }
.cta-gp h2 { margin-bottom: .5rem; position: relative; }
.cta-gp p { opacity: .85; position: relative; }
.checks { list-style: none; margin-top: .9rem; display: grid; gap: .4rem; position: relative; }
.checks .icon { color: var(--klario-yellow); }

.track-teaser { display: grid; gap: 12px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ===== Cartes de trajet ===== */

.trip-grid { display: grid; gap: 12px; }
.trip-card { display: block; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; color: var(--gray-900); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.trip-card:hover { border-color: var(--klario-green); box-shadow: var(--shadow); color: var(--gray-900); }
.trip-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.trip-city { display: flex; flex-direction: column; min-width: 0; }
.trip-city strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-city-end { align-items: flex-end; text-align: right; }
.flag { font-size: 1.1rem; line-height: 1; }
.trip-line { color: var(--klario-green); display: flex; align-items: center; gap: 4px; }
.trip-line::before, .trip-line::after { content: ""; width: 18px; border-top: 2px dashed var(--gray-300); }
.trip-line .icon { transform: rotate(90deg); }
.trip-date { margin-top: .6rem; font-size: .9rem; color: var(--gray-700); }
.trip-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--gray-100); }
.trip-price strong { font-size: 1.1rem; color: var(--klario-green-dark); }
.trip-price span { color: var(--gray-500); font-size: .85rem; margin-left: .2rem; }
.trip-kg { font-size: .85rem; font-weight: 700; background: var(--klario-green-light); color: var(--klario-green-dark); padding: .25rem .6rem; border-radius: 999px; }
.trip-kg.low { background: var(--klario-yellow-light); color: #8a6d00; }
.trip-gp { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; font-size: .9rem; }
.gp-name { font-weight: 600; }

.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--klario-green); color: var(--white); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
.verified { display: inline-flex; align-items: center; gap: .2rem; color: var(--klario-green-dark); font-weight: 700; font-size: .8rem; }
.verified .icon { color: var(--klario-green); }
.unverified { color: var(--gray-500); font-size: .8rem; }

/* ===== Badges ===== */

.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--klario-green-light); color: var(--klario-green-dark); }
.badge-wait { background: var(--klario-yellow-light); color: #8a6d00; }
.badge-off { background: var(--klario-red-light); color: #b0141b; }
.badge-done { background: var(--gray-900); color: var(--white); }

/* ===== Page trajet ===== */

.trip-hero { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 14px 0 20px; }
.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--gray-700); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.trip-route-lg .trip-city strong { font-size: 1.45rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fact { display: flex; gap: .55rem; align-items: flex-start; background: var(--gray-50); border-radius: var(--radius-sm); padding: 10px; }
.fact > .icon { color: var(--klario-green); margin-top: 2px; }
.fact div > span { display: block; font-size: .75rem; color: var(--gray-500); }
.fact strong { font-size: .9rem; }

.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.gp-card { display: flex; gap: 12px; align-items: center; }
.info-card p { font-size: .95rem; }
.warn-card { background: var(--klario-yellow-light); border-color: #f3e2a0; }
.booking-card h2 { margin-bottom: .8rem; }

/* ===== Formulaires ===== */

.form { display: grid; gap: 14px; }
fieldset { border: 0; display: grid; gap: 12px; }
legend { font-weight: 800; font-size: 1rem; margin-bottom: .6rem; color: var(--gray-900); }
fieldset + fieldset { padding-top: 14px; border-top: 1px solid var(--gray-100); }
.field { display: grid; gap: .3rem; }
.field > span { font-weight: 600; font-size: .9rem; color: var(--gray-700); display: flex; align-items: center; gap: .3rem; }
.field em { font-weight: 400; font-style: normal; color: var(--gray-500); }
.field small { color: var(--gray-500); font-size: .8rem; }
input, select, textarea {
    font: inherit; font-size: 16px; /* évite le zoom iOS */
    width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
    background: var(--white); color: var(--gray-900); min-height: 48px;
}
textarea { resize: vertical; min-height: 72px; }
/* Safari iOS : les champs date ignorent la largeur et débordent ; les éléments de grille ne rétrécissent pas. */
.field, .search-fields > * { min-width: 0; }
input[type="date"] {
    -webkit-appearance: none; appearance: none; display: block;
    min-width: 0; max-width: 100%; text-align: left; line-height: 1.3;
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--klario-green); box-shadow: 0 0 0 3px rgba(0, 132, 61, .18); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ac-wrap { position: relative; }
.ac-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; list-style: none;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow);
    max-height: 280px; overflow-y: auto; padding: 4px;
}
.ac-list li { display: flex; align-items: center; gap: .55rem; padding: .7rem .75rem; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--gray-900); }
.ac-list li.active, .ac-list li:hover { background: var(--klario-green-light); color: var(--klario-green-dark); }
.ac-flag { font-size: 1.1rem; }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.phone-row .dial { padding-left: .6rem; padding-right: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--gray-700); }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--klario-green); }
.estimate { font-weight: 800; color: var(--klario-green-dark); background: var(--klario-green-light); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.field-error { color: #b0141b; font-size: .85rem; margin-top: .5rem; }

.alert { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; margin-bottom: 12px; }
.alert-error { background: var(--klario-red-light); color: #9d1218; }
.alert-success { background: var(--klario-green-light); color: var(--klario-green-dark); }

/* ===== Confirmation et suivi ===== */

.success-card { text-align: center; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 24px 18px; margin-bottom: 12px; display: grid; gap: 14px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto; background: var(--klario-green); color: var(--white); display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-size: 1.8rem; }
.code-box { background: var(--klario-yellow-light); border: 2px dashed var(--klario-yellow); border-radius: var(--radius); padding: 14px; display: grid; gap: .2rem; }
.code-box span, .estimate-box span { font-size: .8rem; color: var(--gray-700); font-weight: 600; }
.code { font-size: 2rem; letter-spacing: .18em; font-weight: 800; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.code-box small, .estimate-box small { color: var(--gray-500); font-size: .8rem; }
.estimate-box { display: grid; gap: .1rem; }
.estimate-box strong { font-size: 1.4rem; color: var(--klario-green-dark); }
.actions { display: grid; gap: 10px; }
.mini-steps { padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--gray-700); }

.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.track-head h2 { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.track-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.track-facts div { background: var(--gray-50); border-radius: var(--radius-sm); padding: 8px; }
.track-facts span { display: block; font-size: .72rem; color: var(--gray-500); }
.track-facts strong { font-size: .88rem; }

.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; color: var(--gray-500); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline li.done:not(:last-child)::before { background: var(--klario-green); }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--white); display: grid; place-items: center; flex-shrink: 0; color: var(--white); font-size: .9rem; }
.timeline li.done { color: var(--gray-900); }
.timeline li.done .dot { background: var(--klario-green); border-color: var(--klario-green); }
.timeline li.current .dot { box-shadow: 0 0 0 5px rgba(0, 132, 61, .18); }
.timeline li.stopped .dot { background: var(--klario-red); border-color: var(--klario-red); }
.timeline li.stopped { color: #9d1218; }
.timeline strong { display: block; font-size: .95rem; }
.contact-row { display: flex; gap: 8px; margin-top: .5rem; flex-wrap: wrap; }

.empty { color: var(--gray-500); padding: 1rem 0; display: flex; align-items: center; gap: .4rem; }
.empty-card { background: var(--white); border: 1px dashed var(--gray-300); border-radius: var(--radius); padding: 28px 18px; text-align: center; display: grid; gap: .5rem; justify-items: center; }
.results-count { margin-bottom: .8rem; font-size: .9rem; }

.prose { display: grid; gap: .8rem; }
.prose h2 { margin-top: .8rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .3rem; }
.legal p, .legal li { font-size: .95rem; color: var(--gray-700); }
.legal h2 { font-size: 1.1rem; }

/* ===== Pied de page ===== */

.footer { background: var(--gray-900); color: rgba(255,255,255,.8); padding: 28px 0 32px; font-size: .9rem; }
.footer .wrap { display: grid; gap: .6rem; }
.footer a { color: var(--white); }
.footer .muted { color: rgba(255,255,255,.55); }
.footer-brand { display: flex; align-items: center; gap: .5rem; color: var(--white); font-size: 1.05rem; }
.footer-brand .logo { width: 28px; height: 28px; }

/* ===== Authentification ===== */

.auth-main { padding: 20px 16px 40px; }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px 18px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.45rem; }

/* ===== Espace GP ===== */

.gp-main { padding: 16px 0 calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.gp-main h1 { margin-bottom: 12px; }
.gp-hello { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.gp-hello h1 { margin: 0; font-size: 1.4rem; }
.identity-card { display: flex; gap: 12px; align-items: flex-start; background: var(--klario-yellow-light); border-color: #f3e2a0; }
.identity-card > .icon { font-size: 1.6rem; color: #8a6d00; }
.identity-card .btn { margin-top: .5rem; }
.notice-card { display: flex; gap: 12px; align-items: center; color: var(--gray-900); background: var(--klario-red-light); border-color: #f6c9cb; }
.notice-card:hover { color: var(--gray-900); border-color: var(--klario-red); }
.notice-card > .icon:first-child { font-size: 1.6rem; color: #b0141b; }
.notice-card.notice-ok { background: var(--klario-green-light); border-color: #bfe3cd; }
.notice-card.notice-ok > .icon:first-child { color: var(--klario-green); }
.verify-card { display: grid; gap: 12px; }
.verify-head { display: flex; gap: 12px; align-items: center; }
.verify-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--klario-green-light); color: var(--klario-green); font-size: 1.3rem; }
.verify-icon.whatsapp { background: #e5f6ea; color: var(--whatsapp); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stat { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; color: var(--klario-green-dark); line-height: 1.1; }
.stat span { font-size: .72rem; color: var(--gray-500); }
.h-section { margin: 18px 0 10px; font-size: 1.1rem; }
.h-trip { font-size: 1.2rem; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.past { margin-top: 18px; }
.past summary { cursor: pointer; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }

.gauge { height: 10px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.gauge-fill { height: 100%; background: linear-gradient(90deg, var(--klario-green), #2fa866); border-radius: 999px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
form.inline { display: inline; }
.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.danger-zone summary { cursor: pointer; color: #b0141b; font-weight: 600; font-size: .9rem; }
.danger-zone p { margin: .5rem 0; }

.booking-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: .4rem; }
.booking-contents { font-size: .93rem; color: var(--gray-700); margin-bottom: .5rem; }
.booking-facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .88rem; font-weight: 600; margin-bottom: .6rem; }
.booking-facts .icon { color: var(--klario-green); }
.people { display: grid; gap: .5rem; background: var(--gray-50); border-radius: var(--radius-sm); padding: 10px; margin-bottom: .7rem; font-size: .9rem; }
.people > div { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
.people .muted { width: 100%; }
.booking-final { opacity: .7; }
.form-mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.form-mini input { flex: 1; min-width: 160px; min-height: 40px; padding: .5rem .7rem; }
.form-weigh label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--gray-700); flex: 1; min-width: 140px; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] { width: 100%; }

.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--white); border-top: 1px solid var(--gray-200);
    display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gray-500); font-size: .72rem; font-weight: 600; }
.tabbar a .icon { font-size: 1.5rem; }
.tabbar a.active { color: var(--klario-green); }
.tabbar .tab-main .icon { color: var(--klario-green); font-size: 1.9rem; }

/* ===== Écrans plus larges ===== */

@media (min-width: 640px) {
    h1 { font-size: 2rem; }
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 2.6rem; max-width: 760px; }
    .lead { font-size: 1.1rem; max-width: 640px; }
    .topnav-link { font-size: .9rem; padding: .5rem .75rem; }
    .search-card { grid-template-columns: 1fr auto; align-items: end; padding: 16px; }
    .search-fields { grid-template-columns: 1fr 1fr 180px; }
    .search-card .btn-block { width: auto; }
    .trip-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { flex-direction: column; }
    .cta-gp { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }
    .btn-block-mobile { width: auto; }
    .track-teaser { grid-template-columns: 1fr 1fr; align-items: center; }
    .row-2 { grid-template-columns: 1fr 1fr; }
    .facts { grid-template-columns: repeat(4, 1fr); }
    .people { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 28px; }
}

@media (min-width: 960px) {
    .trip-grid { grid-template-columns: repeat(3, 1fr); }
    .gp-main .trip-grid { grid-template-columns: repeat(2, 1fr); }
    .tabbar { left: 50%; transform: translateX(-50%); bottom: 16px; width: 420px; border-radius: 999px; border: 1px solid var(--gray-200); box-shadow: var(--shadow); height: var(--tabbar-h); padding: 0; }
}

/* Connexion : choix téléphone / e-mail (radios + ~, sans JavaScript) */
.seg-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--gray-100); border-radius: 12px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 9px; font-weight: 600; font-size: .95rem; color: var(--gray-500); cursor: pointer; transition: background .15s, color .15s; }
.seg label .material-icons-outlined { font-size: 20px; }
#mode-phone:checked ~ .seg .seg-phone, #mode-email:checked ~ .seg .seg-email { background: var(--white); color: var(--klario-green); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
#mode-phone:focus-visible ~ .seg .seg-phone, #mode-email:focus-visible ~ .seg .seg-email { outline: 2px solid var(--klario-green); outline-offset: 2px; }
#mode-phone:checked ~ .login-email, #mode-email:checked ~ .login-phone { display: none; }

/* Profil : sections */
.section-title { font-size: 1.05rem; margin: 6px 0 -4px; }

/* Photos preuve des colis */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; margin: .5rem 0; -webkit-overflow-scrolling: touch; }
.photo { position: relative; flex: 0 0 auto; width: 104px; margin: 0; }
.photo img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--gray-200); background: var(--gray-100); display: block; }
.photo figcaption { font-size: .72rem; line-height: 1.3; margin-top: 4px; font-weight: 600; color: var(--gray-700); }
.photo figcaption .muted { font-weight: 400; }
.photo-del { position: absolute; top: -6px; right: -6px; }
.photo-del button { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.photo-del button .icon { font-size: 16px; }
.photo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: .4rem 0 .6rem; }
.photo-pick { position: relative; overflow: hidden; cursor: pointer; }
.photo-form-js .photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.photo-form-js .photo-send { display: none; }
.photo-form:not(.photo-form-js) .photo-pick input { max-width: 190px; font-size: .8rem; }
.photo-busy { opacity: .6; pointer-events: none; }

/* Alerte trajet */
.alert-card { margin-top: 1.25rem; display: grid; gap: .8rem; }
.alert-card-main { border-color: var(--klario-green); box-shadow: 0 0 0 3px var(--klario-green-light); }
.alert-head, .alert-done { display: flex; gap: 12px; align-items: flex-start; }
.alert-head > .icon, .alert-done > .icon { color: var(--klario-green); font-size: 1.7rem; flex: none; }
.alert-head h2 { font-size: 1.05rem; margin: 0 0 2px; }
.alert-done { background: var(--klario-green-light); border-radius: 12px; padding: 12px; }

/* Affiche partageable d'un trajet */
.affiche-card { display: grid; gap: .8rem; border-color: var(--klario-green); box-shadow: 0 0 0 3px var(--klario-green-light); }
.affiche-head { display: flex; gap: 12px; align-items: flex-start; }
.affiche-head > .icon { color: var(--klario-green); font-size: 1.7rem; flex: none; }
.affiche-head strong { display: block; }
.affiche-card p:empty { display: none; }
.affiche-busy { opacity: .6; pointer-events: none; }

/* Achat pour compte depuis la Chine */
.lines { list-style: none; display: grid; }
.lines li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--gray-100); font-size: .95rem; }
.lines li:first-child { border-top: 0; }
.lines li > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines li > div { display: grid; gap: .1rem; min-width: 0; }
.lines li > div > strong { font-weight: 700; }
.lines li .badge { justify-self: start; margin-top: .15rem; }
.lines li.off > div > strong { text-decoration: line-through; color: var(--gray-500); }
.lines-plain li > span { color: var(--gray-500); }
.lines.totals { margin-top: .4rem; border-top: 2px solid var(--gray-200); padding-top: .2rem; }
.lines.totals li.total { border-top: 1px solid var(--gray-300); }
.lines.totals li.total span, .lines.totals li.total div { font-size: 1.02rem; }
.steps-4 li strong { display: block; }

@media (min-width: 720px) {
    .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .steps-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Barre du haut : le libellé « Chine » s'efface avant que la marque ne passe à la ligne */
.brand-text { white-space: nowrap; }

@media (max-width: 460px) {
    .topnav-link .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .topnav-link { padding: .45rem .5rem; }
    .topnav-gp .lbl { position: static; width: auto; height: auto; clip-path: none; }
}

/* Bureau de l'import */
.bureau-bloc { margin-bottom: 24px; }
/* Le compteur appartient au titre : espacé, il flotte seul à l'autre bout de la page. */
.bureau-bloc .section-head { justify-content: flex-start; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.bureau-faits { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: .55rem 0 .35rem; font-size: .9rem; color: var(--gray-700); }
.bureau-faits .du { color: #b0141b; font-weight: 700; }
.bureau-bloc > .muted { margin-bottom: .2rem; }

/* Entrepôt de départ : saisie debout, une main sur le carton */
.quai-recherche { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.quai-recherche h1 { font-size: 1.3rem; margin-bottom: .8rem; }
.quai-recherche .inline-form input { font-size: 1.3rem; letter-spacing: .12em; text-align: center; min-height: 56px; }
.quai-recherche .inline-form button { min-height: 56px; padding-inline: 1.1rem; }
.quai-recherche .muted { margin-top: .5rem; }
/* Le poids se lit sur une balance et se tape sans regarder l'écran. */
.saisie-grande { font-size: 1.5rem; font-weight: 700; min-height: 60px; text-align: center; }
.trois-champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trois-champs input { text-align: center; }

/* ── Page Chine : modes, simulateur, engagements, FAQ (docs/specs/2026-11-29-cargo-chine-page-client.md) ── */
.mode-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .mode-cards { grid-template-columns: 1fr 1fr; } }
.mode-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.mode-card .mode-icon { font-size: 30px; color: var(--klario-green); }
.mode-card strong { font-size: 1.15rem; }
.mode-delay { color: var(--klario-green-dark); font-weight: 600; }
.mode-price { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); }
.mode-price small { font-size: .8rem; font-weight: 500; color: var(--gray-500); }
.mode-card p { color: var(--gray-500); font-size: .92rem; margin-top: 4px; }

.sim-result { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--klario-green-light); display: grid; gap: 10px; }
.sim-result .lines div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sim-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 2px solid rgba(0, 132, 61, .25); }
.sim-total strong { font-size: 1.6rem; color: var(--klario-green-dark); }

.guarantees { list-style: none; display: grid; gap: 12px; }
@media (min-width: 640px) { .guarantees { grid-template-columns: 1fr 1fr; } }
.guarantees li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.guarantees .icon { color: var(--klario-green); font-size: 26px; }
.guarantees strong { display: block; }
.guarantees span { color: var(--gray-500); font-size: .92rem; }

.faq details { border-bottom: 1px solid var(--gray-200); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.faq details p { margin-top: 8px; color: var(--gray-700); }

/* Acceptation du devis par le client, sur sa page de suivi */
.accept-form { margin-top: 14px; display: grid; gap: 6px; }
.accept-form .btn-block { width: 100%; justify-content: center; }

/* Étiquettes de cartons, format 10 × 15 cm (imprimante thermique ou A6) */
.print-main { padding: 16px; }
.label-toolbar { max-width: 560px; margin: 0 auto 16px; display: grid; gap: 10px; justify-items: start; }
.carton-label {
    width: 100mm; min-height: 150mm; margin: 0 auto 16px; padding: 7mm;
    border: 2px solid #000; background: #fff; color: #000;
    display: flex; flex-direction: column; gap: 5mm; box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
.label-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 11pt; border-bottom: 1.5px solid #000; padding-bottom: 2mm; }
.label-mark { font-size: 44pt; font-weight: 900; line-height: 1; text-align: center; padding: 5mm 0; border: 3px solid #000; letter-spacing: .02em; }
.label-count { font-size: 20pt; text-align: center; }
.label-count strong { font-size: 30pt; }
.label-count span { display: block; font-size: 11pt; }
.label-dest { font-size: 16pt; font-weight: 800; text-align: center; background: #000; color: #fff; padding: 2mm; }
.label-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 4mm; margin: 0; font-size: 11pt; }
.label-facts dt { font-size: 8pt; text-transform: none; }
.label-facts dd { margin: 0; font-weight: 700; }
.label-contents { margin: auto 0 0; font-size: 9pt; border-top: 1px solid #000; padding-top: 2mm; }
@media print {
    @page { size: 100mm 150mm; margin: 0; }
    .no-print { display: none !important; }
    .print-main { padding: 0; }
    body { background: #fff; }
    .carton-label { margin: 0; border: none; page-break-after: always; break-after: page; height: 150mm; }
}
