/* NAM COLISBOOKING — styles */
:root {
  --navy: #0B2545; --navy2: #13315C; --ink: #142033; --muted: #5B6779; --line: #E4E1DA;
  --sand: #FBF7F2; --card: #FFFFFF; --orange: #F08A24; --orange2: #E4572E; --teal: #12A594; --blue: #2F6FDE;
  --red: #D64545; --amber: #C98A0B; --green: #1E9E5A;
  --grad: linear-gradient(135deg, #F6A623 0%, #E4572E 100%);
  --r: 16px; --r-sm: 10px; --sh: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 28px rgba(11, 37, 69, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--navy2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; margin-top: 1.2em; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 32px; padding-bottom: 64px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 760px; }
.ic { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.ic.big { width: 40px; height: 40px; color: var(--orange2); }

/* En-tête */
#hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hwrap { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
.logo b { font-weight: 800; }
.logo-mark { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--orange2); }
.nav a.btn { color: #fff; }
.prefs { display: flex; gap: 6px; }
.prefs select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .85rem; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 22px; gap: 14px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--sh); }
  .nav.open { display: flex; }
  .nav .btn { text-align: center; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(228, 87, 46, .28); }
.btn.light { background: #fff; color: var(--navy); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy2); }
.btn.danger { color: var(--red); }
.btn.wa { background: #25D366; color: #fff; }
.btn.sm { padding: 7px 12px; font-size: .85rem; }
.btn.lg { padding: 14px 24px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 10px 12px; text-align: left; }
.btns, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions { flex-direction: column; }

/* Cartes & formulaires */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; margin-bottom: 18px; border: 1px solid rgba(11, 37, 69, .04); }
.form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: .86rem; font-weight: 600; color: var(--navy2); }
.form label > span { color: var(--muted); font-weight: 600; }
input, select, textarea { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 138, 36, .15); }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px 2px; margin: 0 0 14px; }
legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.grid2, .grid3, .grid4, .row2, .row3, .row4 { display: grid; gap: 0 12px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } .row4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .row4 { grid-template-columns: 1fr 1fr; } }
.form.inline { display: flex; gap: 10px; }
.form.inline input { flex: 1; }
.narrowf { max-width: 640px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 14px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600 !important; color: var(--ink) !important; margin: 0 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { flex-direction: row !important; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; }
.chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .82rem; color: var(--ink) !important; }
.chip input:checked + span { background: #FFF1E4; border-color: var(--orange); color: var(--orange2) !important; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.seg label { flex-direction: row; margin: 0; }
.seg input { position: absolute; opacity: 0; width: 0; }
.seg span { flex: 1; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; color: var(--ink) !important; }
.seg input:checked + span { border-color: var(--orange); background: #FFF1E4; color: var(--orange2) !important; }

/* Éditeur de colis */
.parcels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.prow, .irow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 34px; gap: 8px; align-items: end; background: var(--sand); padding: 10px; border-radius: var(--r-sm); }
.irow { grid-template-columns: 2fr 1fr .7fr .8fr 1fr .8fr .8fr 34px; margin-bottom: 8px; }
.prow label, .irow label { margin: 0 !important; font-size: .72rem !important; }
.prow input, .irow input { padding: 8px; }
@media (max-width: 720px) { .prow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .prow .icon-btn { justify-self: end; } .irow { grid-template-columns: 1fr 1fr; } }

/* Mise en page à deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sticky { position: sticky; top: 84px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .sticky { position: static; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 24px; } .two.rev > :first-child { order: 2; } }

/* Héros */
.hero { position: relative; min-height: 640px; color: #fff; overflow: hidden; background: radial-gradient(1200px 500px at 80% 20%, #1E4A7A 0%, var(--navy) 60%); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 24, 46, .92) 0%, rgba(8, 24, 46, .72) 45%, rgba(8, 24, 46, .25) 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 56px; width: 100%; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
.hero p { font-size: 1.08rem; color: rgba(255, 255, 255, .86); max-width: 620px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #FFC27A; margin-bottom: 12px; }
.kicker.dark { color: var(--orange2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .88rem; font-weight: 600; }
.hero-box { color: var(--ink); padding: 18px; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; } .hero { min-height: 0; } }
.tabs { display: flex; gap: 6px; background: var(--sand); padding: 5px; border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border: 0; background: none; border-radius: 9px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); }
.tabs button .ic { width: 18px; height: 18px; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.tabs.line { background: none; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow-x: auto; margin-bottom: 20px; }
.tabs.line a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs.line a.on { color: var(--navy); border-color: var(--orange); }
.tabp { display: none; } .tabp.on { display: block; }
.tabp label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.tabp input, .tabp select { padding: 9px 10px; font-size: .9rem; }
.qq-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.qq-list div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--sand); }
.qq-list span { flex: 1; font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; }
.qq-list small { font-weight: 500; color: var(--muted); }
.qq-list b { color: var(--orange2); }
.qd-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.qd-res div { background: var(--sand); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.qd-res b { color: var(--navy); }

/* Bandeau */
.strip { background: var(--navy); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 18px 20px; }
.strip-in div { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; }
.strip-in .ic { color: #FFC27A; }
@media (max-width: 860px) { .strip-in { grid-template-columns: 1fr 1fr; } }

/* Sections */
.sec { padding-top: 72px; padding-bottom: 24px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 960px) { .cards3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards3 { grid-template-columns: 1fr; } }
.svc { transition: transform .2s; }
.svc:hover { transform: translateY(-3px); }
.svc h3 { margin-top: 12px; }
.svc p { color: var(--muted); margin: 0; font-size: .93rem; }
.band { background: #fff; padding: 72px 0; margin-top: 56px; }
.band.dark { background: var(--navy); color: #fff; }
.band.dark p { color: rgba(255, 255, 255, .8); }
.photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; background: var(--grad); box-shadow: var(--sh); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.noimg img { display: none; }
.aud { margin-top: 18px; }
.aud h3 { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.aud ul, .feat { padding-left: 0; list-style: none; margin: 0; }
.aud li, .feat li { position: relative; padding: 5px 0 5px 26px; }
.aud li::before, .feat li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 2.5px solid var(--orange2); border-bottom: 2.5px solid var(--orange2); transform: rotate(-45deg); }
.feat { columns: 2; column-gap: 24px; margin: 18px 0 24px; }
.feat li { break-inside: avoid; font-size: .93rem; }
.band.dark .feat li::before { border-color: #FFC27A; }
@media (max-width: 600px) { .feat { columns: 1; } }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.steps li { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.steps li > b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .93rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.routes { padding: 10px; margin-top: 24px; background: linear-gradient(180deg, #0E2B50, #0B2545); }
.routes svg { width: 100%; height: auto; }
.routes .land { fill: #1C4170; } .routes .land2 { fill: #163A64; }
.routes .arc { fill: none; stroke: #F6A623; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: .85; animation: dash 30s linear infinite; }
.routes .arc.af { stroke: #12A594; stroke-dasharray: 3 4; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.routes .dot circle { fill: #fff; stroke: #F6A623; stroke-width: 2; }
.routes .dot.main circle { fill: #E4572E; stroke: #fff; stroke-width: 3; }
.routes text { fill: #DCE6F4; font-size: 12px; font-family: var(--font); font-weight: 600; }
.paylist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pm { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--navy); }

/* Devis */
.qcards { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.qcard { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; transition: border-color .15s; }
.qcard.sel { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 138, 36, .12); }
.qcard.off { opacity: .7; }
.qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qhead > div { display: flex; flex-direction: column; flex: 1; min-width: 120px; }
.qhead small { color: var(--muted); }
.qhead .ic { color: var(--navy2); width: 28px; height: 28px; }
.tag { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tag.green { background: #E2F6EC; color: var(--green); } .tag.blue { background: #E6EEFC; color: var(--blue); }
.qprice { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 8px 0 2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qprice small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.qmeta { font-size: .84rem; color: var(--muted); }
details { margin: 8px 0; } summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--navy2); }
table.mini { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 6px; }
table.mini td, table.mini th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.mini td:last-child { text-align: right; white-space: nowrap; }
table.mini.wide td:last-child { text-align: left; }
table.mini small { display: block; color: var(--muted); }
.alert { padding: 10px 14px; border-radius: 10px; font-size: .88rem; margin: 10px 0; }
.alert.red { background: #FCEAEA; color: #9B2C2C; } .alert.amber { background: #FFF5DD; color: #8A5A00; } .alert.blue { background: #EAF1FD; color: #1D4E9E; }
.tablewrap { overflow-x: auto; }
table.liq { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
table.liq td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.liq td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
table.liq td small { display: block; color: var(--muted); font-weight: 500; }
table.liq tr.sub td { background: var(--sand); font-weight: 700; }
table.liq tr.tot td { background: var(--navy); color: #fff; font-weight: 800; font-size: 1.02rem; }
table.liq tr.tot td small { color: rgba(255, 255, 255, .75); }

/* Douane */
.guide dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .9rem; }
.guide dt { color: var(--muted); font-weight: 700; }
.guide dd { margin: 0; }
.checklist { padding-left: 0; list-style: none; }
.checklist li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--teal); }
.proc { padding-left: 20px; font-size: .9rem; }
.proc li { padding: 4px 0; }
.cta-card { background: var(--navy); color: #fff; }
.cta-card p { color: rgba(255, 255, 255, .8); }

/* Outils */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.kpi { background: var(--sand); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { color: var(--muted); font-weight: 700; }
.kpi b { font-size: 1.35rem; color: var(--navy); }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpis.big .kpi { background: #fff; box-shadow: var(--sh); }
.bar { height: 6px; background: #E8E3DA; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--grad); }
.inco { border-collapse: collapse; width: 100%; font-size: .82rem; min-width: 760px; }
.inco th, .inco td { padding: 8px; border: 1px solid var(--line); text-align: center; }
.inco thead th { background: var(--navy); color: #fff; font-weight: 700; }
.inco tbody th { text-align: left; background: #fff; font-size: .95rem; }
.inco tbody th small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.inco td.sel { background: #FFF1E4; color: var(--orange2); font-weight: 700; }
.inco td.buy { background: #E8F6F4; color: #0E7C6F; font-weight: 700; }
.inco tr.desc td { text-align: left; font-size: .8rem; color: var(--muted); background: #fff; border-top: 0; }
.fxout { font-size: 1.3rem; padding: 12px 0; }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #EEF1F6; color: var(--navy2); white-space: nowrap; }
.st-booked, .st-draft, .st-prealert, .st-expected { background: #EEF1F6; color: #3A4A63; }
.st-received, .st-departed, .st-in_transit, .st-loaded, .st-on_board, .st-declared, .st-docs_complete { background: #E6EEFC; color: var(--blue); }
.st-arrived, .st-customs, .st-inspection, .st-liquidated, .st-docs_pending, .st-partial { background: #FFF5DD; color: #8A5A00; }
.st-released, .st-out_for_delivery, .st-available_pickup, .st-cleared, .st-bae { background: #E2F4F1; color: #0E7C6F; }
.st-delivered, .st-paid, .st-closed { background: #E2F6EC; color: var(--green); }
.st-exception, .st-unpaid { background: #FCEAEA; color: var(--red); }
.lv-ok { background: #E2F6EC; color: var(--green); } .lv-restricted { background: #FFF5DD; color: #8A5A00; } .lv-forbidden { background: #FCEAEA; color: var(--red); }

/* Suivi */
.track .thead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.track h2 { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; font-size: 1.3rem; }
.troute { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--sand); padding: 12px 16px; border-radius: 12px; font-weight: 700; margin: 12px 0; }
.troute .ic { color: var(--orange2); width: 28px; height: 28px; }
.progress { display: grid; grid-template-columns: repeat(7, 1fr); margin: 18px 0; position: relative; }
.progress div { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.progress div::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress div:first-child::before { display: none; }
.progress div.done::before { background: var(--orange); }
.progress i { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.progress .done i { background: var(--orange2); border-color: var(--orange2); }
.progress small { font-size: .68rem; margin-top: 6px; color: var(--muted); line-height: 1.2; }
.tmeta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.tmeta span { background: var(--sand); padding: 6px 10px; border-radius: 8px; }
.timeline { list-style: none; padding: 0 0 0 18px; border-left: 2px solid var(--line); margin: 10px 0 18px; }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange2); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--orange2); }
.timeline li:not(:first-child)::before { background: #fff; box-shadow: 0 0 0 2px var(--line); }
.timeline span { display: block; font-size: .82rem; color: var(--muted); }
.timeline p { margin: 4px 0 0; font-size: .88rem; }

/* Espace */
.space { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.snav { background: var(--navy); color: #fff; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; }
.snav .who { padding: 6px 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 10px; display: flex; flex-direction: column; }
.snav .who small { color: #FFC27A; }
.snav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: .92rem; }
.snav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.snav a.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 #F6A623; }
.snav .ic { width: 19px; height: 19px; }
.snav .linkbtn { color: rgba(255, 255, 255, .6); margin-top: auto; }
.smain { padding: 26px 28px 60px; min-width: 0; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.shead h1 { margin: 0; font-size: 1.6rem; }
@media (max-width: 860px) {
  .space { grid-template-columns: 1fr; }
  .snav { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; top: 0; }
  .snav .who { display: none; }
  .snav a { flex-direction: column; gap: 4px; font-size: .7rem; padding: 8px 10px; white-space: nowrap; }
  .snav a.on { box-shadow: inset 0 -3px 0 #F6A623; }
  .snav .linkbtn { margin: 0; white-space: nowrap; font-size: .75rem; }
  .smain { padding: 18px 14px 50px; }
}
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; padding: 14px; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr; } }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.list th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.list td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list td small { display: block; color: var(--muted); }
table.list tr[data-href] { cursor: pointer; }
table.list tr[data-href]:hover td { background: #FFF8F0; }
.statbars div { display: grid; grid-template-columns: 170px 1fr 40px; align-items: center; gap: 10px; padding: 4px 0; font-size: .88rem; }
.statbars i { display: block; height: 10px; border-radius: 6px; background: var(--grad); min-width: 4px; }
.statbars b { text-align: right; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 700; } .dl dd { margin: 0; }
.plist { list-style: none; padding: 0; margin: 0; }
.plist li, .plist-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.plist li > div:first-child { flex: 1; min-width: 0; }
.plist small { display: block; color: var(--muted); }
.plist p { margin: 4px 0 0; font-size: .88rem; }
.lanegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .lanegrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lanegrid { grid-template-columns: 1fr; } }
.hub h3 { margin-bottom: 4px; }
.auth { max-width: 520px; }

/* Pied de page */
#ftr { background: #07182F; color: rgba(255, 255, 255, .75); margin-top: 0; }
.fwrap { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.fwrap .logo { color: #fff; }
.fwrap h5 { color: #fff; font-size: .9rem; margin: 6px 0 12px; }
.fwrap a { display: block; color: rgba(255, 255, 255, .75); text-decoration: none; padding: 3px 0; font-size: .9rem; }
.fwrap p { font-size: .88rem; }
.copy { text-align: center; padding: 16px; font-size: .8rem; border-top: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 860px) { .fwrap { grid-template-columns: 1fr 1fr; } }

/* Notifications */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; box-shadow: var(--sh); opacity: 0; transition: all .3s; z-index: 100; max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* Impression */
#print { display: none; }
@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
  body { background: #fff; }
  @page { margin: 10mm; }
}
.label { width: 100mm; min-height: 150mm; border: 2px solid #000; padding: 4mm; margin: 0 auto 6mm; page-break-after: always; font-size: 10pt; color: #000; display: flex; flex-direction: column; gap: 3mm; }
.label .lh { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 2mm; font-size: 12pt; }
.label .lh span { background: #000; color: #fff; padding: 0 3mm; }
.label small { text-transform: uppercase; font-weight: 700; font-size: 7pt; }
.label p { margin: 1mm 0; }
.label .to { border: 2px solid #000; padding: 2mm; font-size: 12pt; }
.label .lb { display: flex; gap: 4mm; align-items: center; border-top: 2px solid #000; padding-top: 3mm; margin-top: auto; }
.label .qr { width: 32mm; height: 32mm; flex: none; }
.label .qr svg { width: 100%; height: 100%; }
.label .code { font-family: ui-monospace, Menlo, monospace; font-size: 16pt; font-weight: 800; letter-spacing: 1px; }
.pdoc { font-size: 10.5pt; color: #000; max-width: 190mm; margin: 0 auto; }
.phead { display: flex; gap: 6mm; align-items: flex-start; border-bottom: 2px solid #0B2545; padding-bottom: 4mm; margin-bottom: 5mm; }
.phead .logo-mark { width: 16mm; height: 16mm; }
.pco { flex: 1; }
.pt { text-align: right; } .pt h1 { font-size: 18pt; margin: 0; color: #0B2545; }
.ptable { width: 100%; border-collapse: collapse; margin: 4mm 0; }
.ptable th, .ptable td { border: 1px solid #999; padding: 2mm; text-align: left; }
.ptable th { background: #EEF1F6; }
.ptable td:not(:first-child) { text-align: right; }
.ptable tr.tot td { font-weight: 800; background: #F6F6F6; }
.sign { margin-top: 20mm; text-align: right; }
@media (max-width: 520px) { .tabs button .ic { display: none; } .tabs button { font-size: .8rem; padding: 9px 4px; } .hero-box { padding: 14px; } }
/* Illustrations, fenêtres et aperçu d'impression */
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo img { position: relative; }
.modal { position: fixed; inset: 0; background: rgba(7, 24, 47, .55); display: grid; place-items: center; z-index: 120; padding: 20px; }
.modal-box { max-width: 420px; width: 100%; margin: 0; }
body.noscroll { overflow: hidden; }
#print.open { display: block; position: fixed; inset: 0; z-index: 110; background: #E9ECF1; overflow: auto; }
#print .pbar { position: sticky; top: 0; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--navy); color: #fff; z-index: 2; }
#print .pbar b { margin-right: auto; }
#print .pbody { padding: 20px 10px 40px; }
#print.open .label, #print.open .pdoc { background: #fff; box-shadow: var(--sh); }
#print.open .pdoc { padding: 12mm; }
@media print { #print .pbar { display: none; } #print.open { position: static; background: #fff; overflow: visible; } #print .pbody { padding: 0; } #print.open .label, #print.open .pdoc { box-shadow: none; } #print.open .pdoc { padding: 0; } }
