/* TARIF-CI — interface d'après les maquettes (noir anthracite, métal brossé, accents orange). Mobile d'abord, sans dépendance externe. */
@font-face { font-family: "Barlow C"; src: url(/fonts/barlow-condensed-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(/fonts/barlow-condensed-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "RMono"; src: url(/fonts/robotomono-var.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }

:root {
  --bg: #0e0f11; --bg2: #16171a; --bg3: #1e2024; --line: rgba(255, 255, 255, .14);
  --tx: #eceef1; --mut: #b4b8bf; --dim: #8e939b; --ink: #17181b; --ink2: #33363b;
  --or: #ff7a00; --or2: #ff9a3c; --or3: #ffb870; --ok: #3ddc84; --err: #ff6b5e; --red: #c4231b;
  --metal: linear-gradient(180deg, #e4e5e7 0%, #c3c5c9 22%, #a6a9ae 52%, #8f9298 78%, #b5b8bc 100%);
  --brush: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .035) 1px 2px, rgba(255, 255, 255, 0) 2px 4px);
  --ff: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --fd: "Barlow C", "Arial Narrow", "Roboto Condensed", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #050506; }
body { margin: 0; min-height: 100vh; font: 400 15px/1.45 var(--ff); color: var(--tx); background: #050506; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--or2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--or); color: #120700; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--or2); outline-offset: 2px; border-radius: 6px; }
.center { text-align: center; justify-content: center; }

/* ---------- cadre téléphone ---------- */
.phone { position: relative; max-width: 430px; min-height: 100vh; margin: 0 auto; background: radial-gradient(120% 60% at 50% 0%, #26282c 0%, #151618 45%, var(--bg) 100%); overflow: hidden; padding: 0 0 calc(92px + var(--safe-b)); isolation: isolate; }
@media (min-width: 600px) {
  body { padding: 28px 0; background: radial-gradient(80% 60% at 50% 30%, #1a1b1e, #050506); }
  .phone { min-height: 860px; border-radius: 46px; border: 10px solid #1b1c1f; box-shadow: 0 0 0 2px #3a3c40, 0 0 0 3px #0a0a0b, 0 40px 90px -20px #000; }
  .phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 110px; height: 30px; margin-left: -55px; border-radius: 20px; background: #050506; z-index: 60; }
}
.lights { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lights path { fill: none; stroke-linecap: round; }
.lights__glow path { stroke: #ff7a00; stroke-width: 6; opacity: .55; }
.lights__core path { stroke: #ffb35c; stroke-width: 1.4; opacity: .95; }
body[data-view="melissa"] .lights, body[data-view="tarif"] .lights { opacity: .8; }

/* ---------- menu ---------- */
.menubtn { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 40; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(20, 21, 24, .7); }
.menubtn svg { width: 18px; height: 18px; fill: none; stroke: var(--mut); stroke-width: 1.8; stroke-linecap: round; }
.menubtn--in { position: static; }
.menu { position: fixed; inset: 0; z-index: 70; background: rgba(3, 3, 4, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding: 60px 14px 14px; }
.menu[hidden] { display: none; }
.menu__panel { width: 100%; max-width: 400px; }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.eyebrow { font: 600 13px/1.2 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--or2); margin: 0; }

/* ---------- en-tête d'écran ---------- */
main { display: block; padding: 0 22px; }
.view { padding-top: calc(36px + env(safe-area-inset-top, 0px)); animation: fade .25s ease-out; }
.view[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.head { text-align: center; margin-bottom: 14px; }
.medal { display: block; width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; filter: drop-shadow(0 0 12px rgba(255, 140, 30, .45)); }
.title { margin: 0; font: 500 28px/1.08 var(--fd); text-transform: uppercase; letter-spacing: .01em; color: #f3f4f6; }
.sub { margin: 4px 0 0; font: 500 16px/1.25 var(--fd); color: var(--mut); }
.subline { margin: -4px 0 6px; text-align: center; font: 500 15px/1.25 var(--fd); color: var(--mut); }
.sectiontitle { font: 500 20px/1.2 var(--fd); text-transform: uppercase; margin: 22px 0 10px; text-align: center; }
.sources { text-align: center; font: 500 13px/1.2 var(--fd); color: var(--dim); margin: 10px 0 0; }

/* ---------- recherche ---------- */
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; margin: 0 0 14px; border-radius: 999px; background: linear-gradient(180deg, #0b0c0e, #1a1b1e); border: 2px solid #9a9ea4; box-shadow: 0 0 0 1px #2a2c30, inset 0 2px 6px rgba(0, 0, 0, .7), 0 6px 16px -8px #000; }
.search__ico { width: 19px; height: 19px; flex: none; fill: none; stroke: #b9bcc2; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 500 17px/1 var(--fd); color: var(--tx); }
.search input::placeholder { color: #a3a7ae; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.mic, .send { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ffb35c, #ff7a00 60%, #d65f00); box-shadow: 0 0 14px rgba(255, 122, 0, .65); }
.mic svg, .send svg { width: 18px; height: 18px; fill: none; stroke: #1b0d00; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic--ghost { background: transparent; box-shadow: none; }
.mic--ghost svg { stroke: #b9bcc2; }
.mic.on { animation: pulse 1.2s infinite; }
.send { background: transparent; box-shadow: none; width: 30px; }
.send svg { stroke: var(--mut); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 122, 0, 0); } }
.micmsg { min-height: 0; margin: -8px 0 8px; text-align: center; font-size: 13px; color: var(--mut); }
.micmsg:empty { display: none; }
.chipbtn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #222428; color: var(--mut); font: 600 15px/1 var(--fd); }
.combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 300px; overflow: auto; border-radius: 14px; background: #1c1d21; border: 1px solid var(--line); box-shadow: 0 18px 40px -10px #000; }
.combo__list[hidden] { display: none; }
.combo__list button { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: transparent; font-size: 13.5px; color: var(--tx); }
.combo__list button:hover, .combo__list button:focus { background: #2a2c31; }
.askmel { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin: 18px auto 52px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(20, 21, 24, .8); border: 1px solid rgba(255, 140, 40, .45); color: var(--tx); text-decoration: none; font: 500 15px/1 var(--fd); }
.askmel img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--or); }
.askmel b { color: var(--or2); font-weight: 600; }

/* ---------- tuiles métal brossé ---------- */
.tiles { display: grid; gap: 9px; margin: 0 0 12px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 76px; padding: 8px 4px 7px; border-radius: 7px; border: 1px solid #6d7076; background: var(--brush), var(--metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 3px rgba(0, 0, 0, .25), 0 6px 10px -4px rgba(0, 0, 0, .85); color: var(--ink); text-decoration: none; font: 500 16px/1.05 var(--fd); text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.tiles--3 .tile:nth-child(-n+3) { min-height: 96px; }
.tiles--2 .tile { min-height: 66px; font-size: 16px; }
.tile:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 4px -2px #000; }
.tile i { display: grid; place-items: center; }
.tile i svg { width: 34px; height: 34px; fill: none; stroke: #2b2d31; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.tiles--3 .tile:nth-child(-n+3) i svg { width: 44px; height: 44px; }
.tiles--2 .tile i svg { width: 30px; height: 30px; }
.tiles--sm .tile { min-height: 50px !important; font-size: 13px; padding: 5px 2px; }
.ico--round { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffb35c, #ff7a00 60%, #c95800); box-shadow: 0 0 10px rgba(255, 122, 0, .6); }
.tiles--sm .tile i.ico--round svg { width: 17px !important; height: 17px !important; stroke: #1b0d00; stroke-width: 1.8; }
.ico--wa { background: radial-gradient(circle at 40% 35%, #6cf09a, #22b55a 60%, #128a3f); box-shadow: 0 0 10px rgba(40, 200, 100, .5); }

/* ---------- surfaces ---------- */
.metal { border-radius: 8px; border: 1px solid #6d7076; background: var(--brush), var(--metal); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 18px -8px #000; }
.metal-dark, .card { border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(38, 40, 44, .92), rgba(20, 21, 24, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 30px -16px #000; color: var(--tx); }
.card { padding: 14px; margin: 0 0 14px; }
.cardtitle { margin: 0 0 10px; font: 500 19px/1.15 var(--fd); text-transform: uppercase; letter-spacing: .02em; color: #f1f2f4; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--mut); }
.hint.ok { color: var(--ok); } .hint.err { color: var(--err); }
.hint:empty { display: none; }
.fine { font-size: 11.5px; color: var(--dim); margin: 8px 0 0; }
.count { font: 500 14px/1.3 var(--fd); color: var(--mut); margin: -4px 0 8px; text-align: center; }
.count:empty { display: none; }
.apercu { font-size: 13px; color: var(--mut); background: #1b1c20; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: -6px 0 10px; }
.apercu[hidden] { display: none; }

/* ---------- formulaires ---------- */
.form .field { margin: 0 0 10px; min-width: 0; }
.field label, .line label { display: block; font: 500 13.5px/1.2 var(--fd); color: var(--mut); margin: 0 0 4px; letter-spacing: .02em; }
.field input, .field select, .field textarea, .line input, #fx-q { width: 100%; min-height: 42px; padding: 9px 11px; border-radius: 10px; border: 1px solid #45484e; background: #0d0e10; color: var(--tx); font-size: 15px; outline: none; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus, .line input:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(255, 122, 0, .2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--mut); margin: 0 0 10px; }
.check input { accent-color: var(--or); width: 18px; height: 18px; }
.msg { margin: 8px 0 0; font-size: 13.5px; color: var(--mut); }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--err); } .msg.info { color: var(--or3); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--fd); letter-spacing: .03em; text-decoration: none; cursor: pointer; }
.btn--wide { width: 100%; }
.btn--orange { background: linear-gradient(180deg, #ffa443, #ff7a00 55%, #e06600); color: #170900; box-shadow: 0 0 18px -4px rgba(255, 122, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--gold { background: linear-gradient(180deg, #ffa443, #ff7a00); color: #170900; }
.btn--ghost { background: #202226; border-color: #4a4d53; color: var(--tx); }
.btn--line { background: rgba(10, 10, 12, .2); border: 2px solid var(--or); color: var(--ink); font-size: 18px; text-transform: uppercase; box-shadow: 0 0 12px rgba(255, 122, 0, .35); }
.btn--pill { margin: 12px 0 0; min-height: 54px; padding: 6px; border-radius: 999px; background: var(--brush), var(--metal); border: 1px solid #6d7076; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 16px -8px #000; }
.btn--pill span { display: flex; align-items: center; justify-content: center; width: 72%; height: 36px; border-radius: 999px; background: linear-gradient(180deg, #ffa443, #ff7a00 55%, #e06600); color: #170900; font: 600 17px/1 var(--fd); box-shadow: 0 0 16px rgba(255, 122, 0, .6); }
.btn--mini { min-height: 34px; padding: 0 16px; background: transparent; border: 2px solid var(--or); color: var(--or2); font-size: 17px; }
.btn:disabled { opacity: .6; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
details.more { margin: 0 0 12px; }
details.more > summary { cursor: pointer; list-style: none; text-align: center; font: 500 15px/1.2 var(--fd); color: var(--or2); padding: 8px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: " ▾"; }
details.more[open] > summary::after { content: " ▴"; }

/* ---------- pastilles ---------- */
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 600 14px/1.3 var(--fd); white-space: nowrap; }
.pill--code { background: linear-gradient(180deg, #ffa443, #ff7a00); color: #160800; border: 1px solid #ffc07a; box-shadow: 0 0 8px rgba(255, 122, 0, .5); }
.pill--metal { background: linear-gradient(180deg, #4a4d53, #2a2c30); color: #e8e9eb; border: 1px solid #8a8d93; font-weight: 500; font-size: 13px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(61, 220, 132, .15); color: var(--ok); font-size: 12px; }
.tag.off { background: rgba(255, 107, 94, .15); color: var(--err); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #26282c; border: 1px solid var(--line); font: 500 15px/1 var(--fd); }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.badge.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; justify-content: center; }
.chips button { padding: 5px 11px; border-radius: 999px; border: 1px solid #5c6066; background: #1c1d21; color: var(--mut); font: 500 14px/1.1 var(--fd); }
.chips button[aria-selected="true"], .chips button[aria-pressed="true"] { border-color: var(--or); color: #fff; background: rgba(255, 122, 0, .2); box-shadow: 0 0 8px rgba(255, 122, 0, .4); }
.chips--sm { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }

/* ---------- cadran ---------- */
.dial { position: relative; width: min(280px, 82vw); margin: 4px auto 20px; }
.gauge { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .8)); }
.gauge__read { position: absolute; left: 50%; width: 120px; margin-left: -60px; top: 62%; text-align: center; pointer-events: none; }
.gauge__read span { display: block; font: 500 17px/1 var(--fd); color: #e6e7ea; }
.gauge__read b { display: block; font: 600 26px/1.15 var(--fd); color: var(--or2); text-shadow: 0 0 10px rgba(255, 122, 0, .5); }
.gauge__read small { display: block; font: 500 11.5px/1.15 var(--fd); color: var(--mut); }
.simform { position: relative; z-index: 2; }

/* ---------- résultat ---------- */
.res { margin: 8px 0 14px; }
.estim { text-align: center; }
.estim__t { margin: 6px 0 0; font: 500 24px/1.1 var(--fd); text-transform: uppercase; }
.estim__total { margin: 2px 0 0; font: 600 27px/1.1 var(--fd); color: var(--or); text-shadow: 0 0 14px rgba(255, 122, 0, .45); }
.estim__total b { color: #fff3e6; font-weight: 700; }
.estim__sub { margin: 2px 0 12px; font: 500 14px/1.2 var(--fd); color: var(--mut); }
.segbar { display: flex; gap: 3px; height: 28px; padding: 3px; border-radius: 6px; background: #111; border: 1px solid #3c3e43; box-shadow: 0 0 18px rgba(255, 122, 0, .35); margin: 0 0 12px; }
.segbar i { border-radius: 3px; background: linear-gradient(180deg, #ffb35c, #ff7a00); }
.segbar .s1 { background: linear-gradient(180deg, #ffc46e, #ff9300); } .segbar .s2 { background: linear-gradient(180deg, #ffd38c, #ffa52a); } .segbar .s3 { background: linear-gradient(180deg, #ffe2a8, #ffbe55); }
.lines4 { list-style: none; margin: 0 0 10px; padding: 2px 12px; text-align: left; }
.lines4 li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid rgba(0, 0, 0, .18); font: 500 16px/1.15 var(--fd); }
.lines4 li:last-child { border-bottom: 0; }
.lines4 b { font-weight: 600; }
.li-ico { width: 24px; height: 24px; background: #2b2d31; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.li-dd { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M6 3h9l4 4v14H6zM14 3v5h5M9 12h7M9 16h7'/%3E%3C/svg%3E"); }
.li-tva { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cellipse cx='12' cy='6' rx='7' ry='2.5'/%3E%3Cpath d='M5 6v4c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 10v4c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5v-4M5 14v4c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5v-4'/%3E%3C/svg%3E"); }
.li-pre { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 10h9M8 7l3 3-3 3'/%3E%3Ccircle cx='17' cy='15' r='5'/%3E%3Cpath d='M17 12v6M15.5 13.5h2.5a1 1 0 0 1 0 2h-2a1 1 0 0 0 0 2H18'/%3E%3C/svg%3E"); }
.li-red { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 8V4h4M16 4h4v4M20 16v4h-4M8 20H4v-4'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E"); }
.res .tile { min-height: 70px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.kpi { padding: 9px 10px; border-radius: 10px; background: #0f1012; border: 1px solid #34363b; }
.kpi span { display: block; font: 500 12.5px/1.2 var(--fd); color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font: 600 18px/1.25 var(--fd); color: #fff; }
.kpi.hl { border-color: var(--or); box-shadow: 0 0 10px rgba(255, 122, 0, .25); }
.kpi.hl b { color: var(--or2); }
.tablewrap { overflow-x: auto; margin: 0 0 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 7px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; vertical-align: top; }
.tbl th { font: 600 13px/1.2 var(--fd); color: var(--mut); text-transform: uppercase; letter-spacing: .03em; }
.tbl tfoot th, .tbl tfoot td { color: var(--or2); font-weight: 600; border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl small { display: block; color: var(--dim); font-size: 12px; }
.notes, .checks { margin: 6px 0 10px; padding-left: 18px; font-size: 13.5px; color: var(--mut); }
.checks.sm { font-size: 13px; }
.age { padding: 8px 10px; border-radius: 10px; font-size: 13.5px; background: rgba(255, 255, 255, .05); }
.age:empty { display: none; }
.age.ok, .age.neuf, .age.exempt { color: var(--ok); background: rgba(61, 220, 132, .1); }
.age.interdit { color: #ffb2aa; background: rgba(196, 35, 27, .22); }
.age.info { color: var(--or3); background: rgba(255, 122, 0, .1); }
.frais { margin: 0 0 8px; }
.frais .field { margin-bottom: 6px; }
.lockbox { text-align: center; padding: 16px; border-radius: 14px; border: 1px dashed rgba(255, 140, 40, .5); background: rgba(255, 122, 0, .06); color: var(--mut); }
.lockbox p { margin: 0 0 10px; }
.meter { height: 8px; border-radius: 9px; background: #2a2c30; overflow: hidden; margin: 10px 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #ffb35c, #ff7a00); }
.state .kpis { margin-top: 10px; }

/* ---------- lignes (conteneur / facture) ---------- */
.lines { display: grid; gap: 8px; margin: 6px 0; }
.line { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border-radius: 12px; background: #121316; border: 1px solid #34363b; }
.line .full { grid-column: 1 / -1; }
.line .del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #4a4d53; background: #202226; color: var(--mut); }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg:empty { display: none; }
.sugg button { border: 1px solid #4a4d53; background: #1c1d21; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--tx); }

/* ---------- Melissa ---------- */
.melhead { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 18px; }
.avatar { position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: linear-gradient(140deg, #ffb35c, #ff7a00 50%, #a84700); box-shadow: 0 0 18px rgba(255, 122, 0, .55); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar i { position: absolute; right: 2px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2px solid #111; }
.melname { margin: 0; font: 500 24px/1 var(--fd); }
.melstate { margin: 2px 0 0; font: 500 16px/1 var(--fd); color: var(--mut); }
.chat { display: flex; flex-direction: column; gap: 9px; max-height: 70vh; overflow-y: auto; padding: 2px 0 6px; margin-bottom: 12px; }
.bub { max-width: 86%; }
.bub p { margin: 0; padding: 8px 12px; font: 500 15.5px/1.25 var(--fd); }
.bub--me { align-self: flex-end; }
.bub--me p { background: linear-gradient(180deg, #ffa443, #ff7a00); color: #180900; border-radius: 12px; border: 1px solid #ffc07a; box-shadow: 0 0 12px rgba(255, 122, 0, .45); }
.bub--mel { align-self: flex-start; }
.bub__who { display: inline-block; padding: 2px 10px 1px; margin-left: 2px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #5a5d63, #3a3c41); font: 500 11.5px/1.3 var(--fd); color: #d9dbdf; letter-spacing: .06em; }
.bub--mel p { background: var(--brush), linear-gradient(180deg, #5d6066, #3d3f44 60%, #4a4d52); color: #f2f3f5; border-radius: 0 12px 12px 12px; border: 1px solid #7b7f86; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.bub--wait p { color: var(--mut); animation: blink 1s infinite; }
.bub--err p { border-color: var(--err); }
@keyframes blink { 50% { opacity: .4; } }
.search--chat { padding: 0 5px 0 16px; margin-bottom: 18px; }

/* ---------- Tarif SH ---------- */
.hits { list-style: none; margin: 0 0 12px 34px; padding: 0; display: grid; gap: 9px; position: relative; }
.hits::before { content: ""; position: absolute; left: -22px; top: -10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, #ff7a00 20%, #ff7a00 80%, transparent); box-shadow: 0 0 8px #ff7a00; }
.hits button { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 8px 10px 9px; border-radius: 7px; border: 1px solid #6d7076; background: var(--brush), var(--metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 12px -6px #000; color: var(--ink); }
.hit__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.hit__d { font: 500 16px/1.2 var(--fd); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- héros images ---------- */
.hero { margin: 0 -22px 10px; position: relative; }
.hero img { width: 100%; height: auto; -webkit-mask: radial-gradient(75% 80% at 50% 50%, #000 60%, transparent 100%); mask: radial-gradient(75% 80% at 50% 50%, #000 60%, transparent 100%); }
.hero--car img { max-height: 190px; object-fit: cover; }
.hero--wh img { max-height: 180px; object-fit: cover; }
.hero--box { margin-bottom: 4px; }
.hero--box img { max-height: 150px; object-fit: cover; }
.isobadge { position: absolute; right: 64px; top: 30px; padding: 2px 8px; border-radius: 6px; background: #1d6b3b; color: #e7ffef; font: 600 12px/1.3 var(--fd); border: 1px solid #5ce391; }

/* ---------- véhicules ---------- */
.specs { padding: 6px 12px; margin: 0 0 10px; }
.spec { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; min-height: 36px; }
.spec label { font: 500 16px/1 var(--fd); color: var(--ink); }
.spec input, .spec select { width: 100%; min-width: 0; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid #1d1e21; background: linear-gradient(180deg, #2f3135, #1b1c1f); color: #f2f3f5; font: 500 14.5px/1 var(--fd); outline: none; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.spec input::placeholder { color: #a9acb2; }
.spec__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.spec input:focus, .spec select:focus { border-color: var(--or); }
.conform { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 108px; padding: 6px 10px 10px; margin: 0 0 8px; overflow: hidden; }
.conform__dial { position: absolute; left: 50%; top: 6px; width: 184px; margin-left: -92px; }
.conform__track { fill: none; stroke: #2b2d31; stroke-width: 12; stroke-linecap: round; }
.conform__val { fill: none; stroke: url(#none); stroke: #ff8a1a; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 252; stroke-dashoffset: 252; transition: stroke-dashoffset .6s; filter: drop-shadow(0 0 4px #ff7a00); }
.conform__dot { fill: #555; }
.conform.is-ok .conform__dot { fill: var(--ok); filter: drop-shadow(0 0 4px var(--ok)); }
.conform.is-bad .conform__val { stroke: var(--red); filter: none; }
.conform.is-bad .conform__dot { fill: var(--red); }
.conform__txt { position: relative; text-align: center; }
.conform__txt b { display: block; font: 500 16px/1.05 var(--fd); color: var(--ink); }
.conform__txt span { display: block; font: 500 13px/1.2 var(--fd); color: #2f3135; }

/* ---------- magasinage ---------- */
.frise { position: relative; margin: 14px 0 10px; padding-top: 16px; }
.frise__bar { display: flex; height: 40px; padding: 3px; gap: 2px; border-radius: 999px; background: #0d0e10; border: 2px solid #9a9ea4; box-shadow: 0 6px 12px -6px #000; overflow: hidden; }
.fz { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; color: #fff; text-align: center; overflow: hidden; }
.fz b { font: 600 10.5px/1 var(--fd); text-transform: uppercase; white-space: nowrap; }
.fz small { font: 500 9.5px/1.1 var(--fd); opacity: .9; white-space: nowrap; }
.fz--fr { background: linear-gradient(180deg, #34b864, #1b7d3f); border-radius: 999px 0 0 999px; }
.fz--p0 { background: linear-gradient(180deg, #ffab45, #e86f00); color: #1a0a00; }
.fz--p1 { background: linear-gradient(180deg, #e2462f, #a8241a); }
.fz--dep { background: linear-gradient(180deg, #8f1712, #5a0c09); border-radius: 0 999px 999px 0; }
.fz--dep b { font-size: 9px; white-space: normal; line-height: 1.05; }
.fz:first-child { border-radius: 999px 0 0 999px; }
.frise__mark { position: absolute; top: 0; transform: translateX(-50%); font: 600 11px/1 var(--fd); color: var(--or2); }
.frise__mark::after { content: ""; display: block; width: 0; height: 0; margin: 2px auto 0; border: 6px solid transparent; border-top: 8px solid var(--or); }
.frise__mark small { font-size: 11px; }
.magline span { display: block; text-align: center; padding: 6px 10px; margin: 0 0 7px; border-radius: 8px; background: var(--brush), var(--metal); color: var(--ink); font: 500 15px/1.2 var(--fd); border: 1px solid #6d7076; }
.magrow { display: flex; gap: 6px; margin: 0 0 12px; }
.magcum { flex: 1; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--or); background: #121316; font: 500 14.5px/1.2 var(--fd); color: var(--tx); box-shadow: 0 0 10px rgba(255, 122, 0, .3); }
.magcum b { color: var(--or2); font-weight: 600; }
.magalert { flex: none; display: grid; place-items: center; max-width: 42%; padding: 4px 9px; border-radius: 8px; background: linear-gradient(180deg, #d1291e, #8d140e); color: #fff; font: 600 11.5px/1.1 var(--fd); text-transform: uppercase; text-align: center; }
.magalert[hidden] { display: none; }

/* ---------- facture ---------- */
.scan { position: relative; display: block; margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: #050505; cursor: pointer; aspect-ratio: 1 / 1; }
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan__c { position: absolute; width: 34px; height: 34px; border: 3px solid var(--or); filter: drop-shadow(0 0 5px #ff7a00); }
.scan__c.tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan__c.tr { right: 10px; top: 10px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan__c.bl { left: 10px; bottom: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan__c.br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan__beam { position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; background: #ff9a3c; box-shadow: 0 0 12px 3px #ff7a00; animation: beam 3.2s ease-in-out infinite alternate; }
@keyframes beam { from { top: 18%; } to { top: 82%; } }
.scan__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 500 13px/1 var(--fd); color: #fff; text-shadow: 0 1px 3px #000; }
.readout { padding: 6px 14px 12px; margin: 0 0 14px; }
.readout p { display: grid; grid-template-columns: auto 1fr 12px; align-items: center; gap: 8px; margin: 0; min-height: 34px; border-bottom: 1px solid rgba(0, 0, 0, .15); font: 500 17px/1.1 var(--fd); }
.readout p b { font-weight: 500; }
.readout p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout p i { width: 12px; height: 7px; border-radius: 4px; background: var(--or); box-shadow: 0 0 6px var(--or); }
.readout .btn { margin-top: 10px; }

/* ---------- suivi conteneur ---------- */
.track { list-style: none; margin: 0 0 10px; padding: 0 0 0 34px; position: relative; }
.track::before { content: ""; position: absolute; left: 53px; top: 16px; bottom: 16px; width: 4px; border-radius: 2px; background: #3a3c41; }
.track li { position: relative; margin: 0 0 6px; }
.track button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 3px 4px; border: 0; background: transparent; color: var(--tx); text-align: left; font: 500 16px/1.1 var(--fd); }
.track__ico { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5f6268, #2a2c30); border: 2px solid #8a8d93; }
.track__ico svg { width: 20px; height: 20px; fill: none; stroke: #d9dbdf; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.track li.done .track__ico, .track li.cur .track__ico { background: radial-gradient(circle at 40% 35%, #ffb35c, #ff7a00 60%, #b95100); border-color: #ffc07a; box-shadow: 0 0 12px rgba(255, 122, 0, .6); }
.track li.done .track__ico svg, .track li.cur .track__ico svg { stroke: #1b0d00; }
.track li.cur button > span:last-child { padding: 6px 18px; border-radius: 999px; border: 2px solid var(--or); background: #141518; box-shadow: 0 0 12px rgba(255, 122, 0, .45); }
.franchise { text-align: center; padding: 8px 10px 6px; margin: 0 0 10px; }
.franchise__pill { margin: 0 auto 4px; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--or); background: #111214; color: var(--or2); font: 500 18px/1.1 var(--fd); text-transform: uppercase; box-shadow: 0 0 12px rgba(255, 122, 0, .4); }
.franchise__pill b { color: #ffd3a4; }
.franchise__pill.hot { background: #3a1a06; }
.franchise__pill.over { border-color: var(--red); color: #ffb2aa; }
.franchise__sub { font: 500 14px/1.2 var(--fd); color: var(--ink2); text-decoration: none; }

/* ---------- fiche QR & devis ---------- */
.paperwrap { position: relative; padding: 4px 22px 0; margin: 0 0 -6px; }
.paper { position: relative; padding: 12px 16px 14px; margin: 0 6px; transform: rotate(-3deg); background: linear-gradient(180deg, #fff, #eceae6); color: #141414; border-radius: 6px; box-shadow: 0 0 0 3px rgba(255, 140, 40, .45), 0 0 24px rgba(255, 122, 0, .5), 0 14px 26px -8px #000; }
.paper__t { margin: 0 0 6px; text-align: center; font: 600 22px/1 var(--fd); letter-spacing: .02em; }
.paper__l { margin: 0; font: 500 13.5px/1.35 var(--fd); }
.paper__s { margin-top: 6px; }
.qrbox { display: grid; place-items: center; margin: 8px auto 0; width: 132px; min-height: 132px; }
.qrbox svg { width: 132px; height: 132px; }
.qrph { width: 132px; height: 132px; border-radius: 6px; border: 2px dashed #b9b6b0; background: #f5f3ef; color: #3a3a3a; font: 600 15px/1.2 var(--fd); }
.seal { position: absolute; right: -12px; bottom: 26px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffb35c, #ff7a00 60%, #c25300); color: #1b0d00; font: 600 12px/1 var(--fd); transform: rotate(-12deg); box-shadow: 0 0 0 3px #ffcf99, 0 0 14px rgba(255, 122, 0, .8); }
.seal[hidden] { display: none; }
.cmp { position: relative; padding: 10px 12px 12px; margin: 0 0 10px; }
.cmp__t { margin: -10px -12px 8px; padding: 8px; text-align: center; font: 500 17px/1 var(--fd); text-transform: uppercase; background: var(--brush), var(--metal); color: var(--ink); border-radius: 13px 13px 0 0; }
.cmp__row { display: flex; justify-content: space-between; gap: 6px; padding-right: 62px; font: 500 14px/1.2 var(--fd); }
.cmp__row b { color: var(--or2); font-weight: 500; }
.cmp__bar { position: relative; height: 14px; margin: 3px 62px 8px 0; border-radius: 999px; background: #2a2c30; overflow: hidden; }
.cmp__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff7a00, #ffb35c); text-align: right; transition: width .4s; }
.cmp__bar--dv i { background: linear-gradient(90deg, #8a8d93, #d5d7da); }
.cmp__bar small { padding-right: 8px; font: 600 10.5px/14px var(--fd); color: #1b0d00; }
.ecart { position: absolute; right: 10px; top: 46px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--or); background: #141518; color: var(--or2); text-align: center; font: 600 12px/1.15 var(--fd); box-shadow: 0 0 12px rgba(255, 122, 0, .4); }
.ecart.ok { border-color: var(--ok); color: var(--ok); }
.cmp__in { margin: 6px 0 0; }

/* ---------- procédures ---------- */
.steps5 { list-style: none; margin: 4px 0 12px; padding: 0 0 0 30px; position: relative; }
.steps5::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #ff7a00, #ffb35c); box-shadow: 0 0 8px #ff7a00; }
.steps5 li { position: relative; margin: 0 0 10px; }
.steps5 li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 15px; height: 15px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle, #ffd29e, #ff7a00 60%); border: 2px solid #3a2208; box-shadow: 0 0 8px #ff7a00; }
.steps5 button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 7px; border: 1px solid #6d7076; background: var(--brush), var(--metal); color: var(--ink); text-align: left; font: 500 18px/1 var(--fd); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 12px -6px #000; }
.steps5 .n { width: 16px; }
.steps5 .t { flex: 1; }
.steps5 .ok { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #23a356; color: #fff; font-size: 12px; }
.steps5 svg { width: 24px; height: 24px; fill: none; stroke: #3a3c41; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.steps5 li.cur button { background: #151618; color: var(--or2); border: 2px solid var(--or); box-shadow: 0 0 14px rgba(255, 122, 0, .5); }
.steps5 li.cur svg { stroke: var(--or2); }
.steps5 li.sel:not(.cur) button { outline: 2px solid rgba(255, 122, 0, .6); outline-offset: 1px; }
.docs { padding: 8px 14px 10px; margin: 0 0 12px; }
.docs h2 { margin: 0 0 4px; text-align: center; font: 500 17px/1.1 var(--fd); }
.docs ul { columns: 2; column-gap: 12px; margin: 0; padding-left: 14px; font: 500 13.5px/1.35 var(--fd); }
.procstep { font-size: 14px; color: var(--mut); margin: 0 0 6px; }
.procstep p { margin: 0 0 8px; }
.procstep b { color: var(--tx); }
.steps { padding-left: 20px; font-size: 13.5px; color: var(--mut); }
.steps li { margin: 0 0 4px; }

/* ---------- taux ---------- */
.conv { position: relative; margin: 0 0 12px; }
.conv__box { padding: 14px 18px; margin: 0 0 8px; border-radius: 10px; }
.conv__box:last-child { padding-top: 26px; }
.conv__field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 8px; background: linear-gradient(180deg, #2c2e32, #17181b); border: 1px solid #0d0e10; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .5); color: #f2f3f5; }
.conv__field select { flex: none; width: 74px; border: 0; background: transparent; color: #fff; font: 500 19px/1 var(--fd); outline: none; }
.conv__field select option { color: #111; }
.conv__field input { flex: 1; min-width: 0; border: 0; background: transparent; text-align: right; color: #fff; font: 500 19px/1 var(--fd); outline: none; }
.conv__field output { flex: 1; font: 500 19px/1 var(--fd); color: #fff; }
.flag svg { width: 26px; height: 17px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.conv__tag { display: inline-block; margin: 4px 0 0 4px; padding: 2px 8px; border-radius: 4px; background: #1a1b1e; color: var(--or2); font: 500 11.5px/1.2 var(--fd); }
.conv__swap { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -30px 0 0 -26px; z-index: 2; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--or); background: radial-gradient(circle at 40% 35%, #6b6e74, #2a2c30); box-shadow: 0 0 14px rgba(255, 122, 0, .6), 0 6px 12px -4px #000; }
.conv__swap svg { width: 24px; height: 24px; fill: none; stroke: #f2f3f5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.conv.rev select { order: 3; }
.fxlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.fxrow { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid #6d7076; background: var(--brush), var(--metal); color: var(--ink); text-align: left; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 8px -4px #000; }
.fxrow svg { width: 24px; height: 16px; flex: none; border-radius: 2px; }
.fxrow__c { display: flex; flex-direction: column; flex: 1; line-height: 1; }
.fxrow__c b { font: 500 16px/1 var(--fd); }
.fxrow__c small { font: 500 11px/1.1 var(--fd); color: #2f3135; }
.fxrow__v { font: 600 16px/1 var(--fd); color: #6a3100; }
.fxrow__v small { font-weight: 500; color: #2f3135; }

/* ---------- annuaire ---------- */
.dir { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.agent { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 12px 12px 14px; min-height: 118px; border: 2px solid var(--or); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 14px rgba(255, 122, 0, .35); }
.agent__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 6px; border: 2px solid var(--or); background: linear-gradient(180deg, #c9cbcf, #8f9298); }
.agent__ico svg { width: 30px; height: 30px; fill: none; stroke: #2b2d31; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.agent__txt h3 { margin: 0; font: 500 19px/1.1 var(--fd); color: var(--ink); }
.agent__txt p { margin: 3px 0 0; font: 500 14.5px/1.2 var(--fd); color: #2b2d31; }
.agent__txt .agent__code { font-size: 12.5px; color: #44474c; }
.agent__txt { padding-right: 4px; }
.agent__act { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 8px; }
.agent__txt .agent__code { padding-right: 96px; }
.rb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffb35c, #ff7a00 60%, #c25300); box-shadow: 0 0 0 2px #2a2c30, 0 0 10px rgba(255, 122, 0, .6); }
.rb svg { width: 19px; height: 19px; fill: none; stroke: #1b0d00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- abonnement ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 22px; }
.offer { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 172px; padding: 18px 6px 12px; border-radius: 10px; border: 2px solid #8a8d93; background: var(--brush), var(--metal); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 3px #1a1b1e, 0 10px 18px -8px #000; }
.offer[aria-checked="true"] { border-color: var(--or); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 3px #3a1d05, 0 0 18px rgba(255, 122, 0, .6); }
.offer__tag { position: absolute; top: 8px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffa443, #ff7a00); color: #180900; font: 600 12px/1.3 var(--fd); }
.offer__name { font: 500 19px/1 var(--fd); text-transform: uppercase; margin-bottom: 14px; }
.offer b { font: 500 36px/1 var(--fd); }
.offer__cur { font: 500 20px/1.1 var(--fd); }
.paytiles .tile { min-height: 76px !important; }
.paytiles .tile i svg { width: 34px; height: 34px; }
.search--code { margin-top: 6px; }
#acct-state:empty { display: none; }
#acct-state { padding: 12px; margin-top: 8px; }

/* ---------- vérification ---------- */
.fiche__num { font: 500 15px/1.3 var(--fd); color: var(--or2); }
#verif-out { padding: 14px; }

/* ---------- barre de navigation ---------- */
.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 45; width: 100%; max-width: 430px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 6px calc(6px + var(--safe-b)); background: linear-gradient(180deg, rgba(14, 15, 17, .92), #0a0a0b); border-top: 1px solid #2a2c30; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (min-width: 600px) { .tabbar { bottom: 38px; max-width: 410px; border-radius: 0 0 36px 36px; } }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 4px; text-decoration: none; color: #9a9ea5; font: 500 12.5px/1 var(--fd); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--or); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 3px; border-radius: 0 0 3px 3px; background: var(--or); box-shadow: 0 0 10px var(--or); }
body[data-tab="accueil"] .tabbar a[aria-current="page"] { color: #f2f3f5; }
body[data-tab="accueil"] .tabbar a[aria-current="page"]::before { background: #d9dbdf; box-shadow: none; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; padding: 10px 16px; border-radius: 12px; background: #24262a; border: 1px solid var(--line); font-size: 14px; }
.toast[hidden] { display: none; }

@media (max-width: 360px) { main { padding: 0 14px; } .tile { font-size: 14.5px; } .title { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .tabbar, .menubtn, .lights, .noprint, .head, .melhead { display: none !important; }
  body, .phone { background: #fff; color: #000; border: 0; box-shadow: none; }
  .metal-dark, .card { background: #fff; color: #000; border-color: #ccc; }
}

/* offre Entreprise : nom de société */
.socfield { margin: -8px 0 12px; }
.socfield[hidden] { display: none; }
#offer-note { margin: -10px 0 14px; }
.paper__soc { text-align: center; margin-bottom: 4px; }

/* ---------- Console douane (accueil) ---------- */
.cdou { margin: 4px 0 14px; padding: 12px 12px 10px; border-radius: 16px; border: 1px solid rgba(255,154,60,.45); background: radial-gradient(120% 80% at 50% 0%, rgba(255,122,0,.10), rgba(0,0,0,0) 60%), #121316; box-shadow: 0 10px 24px -14px #000, inset 0 1px 0 rgba(255,255,255,.05); }
.cdou__hd { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cdou__dot { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffb35c, #ff7a00 60%, #c95800); box-shadow: 0 0 8px rgba(255,122,0,.8); flex: none; }
.cdou__hd h2 { margin: 0; font: 800 17px/1 var(--fd); letter-spacing: .04em; text-transform: uppercase; color: var(--tx); }
.cdou__src { margin-left: auto; font: 500 13px/1.1 "Roboto Mono", ui-monospace, monospace; color: var(--or2); white-space: nowrap; }
.cdou__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cdou__k { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 8px 4px; border-radius: 10px; border: 1px solid #6d7076; background: var(--brush), var(--metal); color: var(--ink); text-decoration: none; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 3px rgba(0,0,0,.25), 0 6px 10px -4px rgba(0,0,0,.85); }
.cdou__k b { font: 500 19px/1 "Roboto Mono", ui-monospace, monospace; color: var(--ink2); }
.cdou__k span { font: 500 15px/1.1 var(--fd); color: var(--ink); }
.cdou__k:active { transform: translateY(1px); }
.cdou__ft { margin: 9px 0 0; text-align: center; font: 500 12px/1.2 var(--fd); color: var(--dim); }
@media (max-width: 360px) { .cdou__src { display: none; } .cdou__k b { font-size: 17px; } .cdou__k span { font-size: 13px; } }

.cdou__grid--sm { margin-top: 8px; }
.cdou__grid--sm .cdou__k { min-height: 64px; }
.cdou__grid--sm .cdou__k b { font-size: 16px; }
.cdou__grid--sm .cdou__k span { font-size: 13px; }
.kb__tabs { display: flex; gap: 6px; justify-content: center; margin: 0 0 10px; }
.kb__tabs button { flex: 1; padding: 9px 6px; border-radius: 8px; border: 1px solid #6d7076; background: #1e2024; color: var(--tx); font: 600 15px/1 var(--fd); }
.kb__tabs button[aria-pressed="true"] { background: var(--brush), var(--metal); color: var(--ink); }
.kb { display: grid; gap: 6px; margin: 8px 0 12px; }
.kb__it { border-radius: 10px; border: 1px solid #34363b; background: #0f1012; padding: 10px 12px; }
.kb__it summary { cursor: pointer; font: 600 15px/1.25 var(--ff); color: var(--tx); }
.kb__it summary i { font-weight: 400; color: var(--dim); font-size: 13px; }
.kb__it p { margin: 8px 0 0; font: 400 14px/1.45 var(--ff); color: var(--mut); }
.kb__src { color: var(--or2); }
.ident-prev img{max-height:60px;max-width:160px;vertical-align:middle;margin:6px 8px 0 0;background:#fff;border-radius:6px}.sigpad{display:block;margin:6px 0}

/* v2026111613 · alertes restrictions, taux manuel, Aide (4 onglets), Export */
.ralert { margin: 12px 0 6px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--gold, #e8b23a); background: linear-gradient(160deg, rgba(196, 35, 27, .22), rgba(12, 21, 48, .85)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 10px 22px -14px #000; text-align: left; }
.ralert__t { margin: 0 0 8px; font: 800 16px/1.2 var(--fd); letter-spacing: .03em; text-transform: uppercase; color: var(--gold2, #ffe08a); }
.ralert__it { padding: 9px 10px; margin: 0 0 8px; border-radius: 10px; background: rgba(4, 8, 22, .55); border-left: 4px solid var(--gold, #e8b23a); }
.ralert__it.interdit { border-left-color: #ff6b5e; }
.ralert__it b { display: block; font: 700 15px/1.3 var(--ff); color: var(--tx); }
.ralert__it p { margin: 4px 0 0; font-size: 13.5px; color: var(--gold2, #ffe08a); }
.ralert__it dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 6px 0 0; font-size: 13px; line-height: 1.35; }
.ralert__it dt { color: var(--dim); }
.ralert__it dd { margin: 0; color: var(--mut); }
.ralert__src { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--or2); }
.ralert__ft { margin: 4px 0 0; font-size: 12.5px; color: var(--mut); }
.tman { margin: -2px 0 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--gold, #e8b23a); background: rgba(232, 178, 58, .07); }
.tman label { display: block; font: 600 13.5px/1.2 var(--fd); color: var(--gold2, #ffe08a); margin: 0 0 4px; }
.row2 > .tman, .row3 > .tman { grid-column: 1 / -1; }
#exp-fob[hidden], #exp-ref[hidden], .tman[hidden] { display: none; }
.tman small { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
.kb__tabs--4 { flex-wrap: wrap; }
.kb__tabs--4 button { flex: 1 1 22%; min-width: 0; font-size: 14px; padding: 9px 2px; }
.kb__h { margin: 10px 0 2px; font: 700 13px/1 var(--fd); letter-spacing: .06em; text-transform: uppercase; color: var(--gold2, #ffe08a); }
#exp-info { text-align: left; margin: 0 0 10px; }
#exp-info small { color: var(--dim); }
#exp-form .kb__tabs { margin: 4px 0 12px; }
@media (max-width: 360px) { .kb__tabs--4 button { font-size: 12.5px; } }

/* Console douane : tuiles en relief 3D bleu et jaune (16/11/2026) */
.cdou__grid { perspective: 900px; row-gap: 18px !important; column-gap: 10px !important; padding-bottom: 6px; }
.cdou__k {
  position: relative; border-radius: 16px !important; border: 0 !important;
  background: linear-gradient(160deg, #2f6bff 0%, #1640c9 45%, #0b2386 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.25), 0 6px 0 #f5c400, 0 7px 0 #b38f00, 0 12px 18px rgba(0,0,0,.45) !important;
  transform: translateY(-3px); transition: transform .15s ease, box-shadow .15s ease;
}
.cdou__k::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 48%); }
.cdou__k b { color: #ffd60a !important; font-weight: 800 !important;
  text-shadow: 0 1px 0 #c79c00, 0 2px 0 #9e7b00, 0 3px 0 #7a5f00, 0 5px 8px rgba(0,0,0,.55); }
.cdou__k span { color: #fff !important; text-shadow: 0 2px 3px rgba(0,0,0,.55); }
.cdou__k:hover, .cdou__k:focus-visible { transform: translateY(-6px); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -4px 0 rgba(0,0,0,.25), 0 9px 0 #f5c400, 0 10px 0 #b38f00, 0 18px 24px rgba(0,0,0,.5) !important; }
.cdou__k:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 1px 0 #f5c400, 0 2px 0 #b38f00, 0 4px 8px rgba(0,0,0,.4) !important; }

/* Bouton Melissa : nom en grand, relief 3D (16/11/2026) */
.askmel { padding-top: 8px !important; padding-bottom: 8px !important; }
.askmel img { width: 52px !important; height: 52px !important; box-shadow: 0 0 0 3px #ffd60a, 0 4px 0 #b38f00, 0 6px 12px rgba(0,0,0,.5); }
.askmel span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.askmel b { font-size: 30px !important; font-weight: 900 !important; letter-spacing: .02em; color: #ffd60a !important;
  text-shadow: 0 1px 0 #e0b800, 0 2px 0 #c79c00, 0 3px 0 #9e7b00, 0 4px 0 #7a5f00, 0 5px 0 #1640c9, 0 7px 10px rgba(0,0,0,.6); }

/* Cadran : aiguille mécanique (2026-11-16) */
#gz-needle { transform-box: view-box; transform-origin: 150px 150px; transition: transform 1.5s cubic-bezier(.34, 1.45, .55, 1); }
#gz-needle .needle__q { transform-box: view-box; transform-origin: 150px 150px; animation: gz-quiver 2.4s ease-in-out infinite; }
@keyframes gz-quiver { 0%, 100% { transform: rotate(-.5deg); } 50% { transform: rotate(.5deg); } }
@media (prefers-reduced-motion: reduce) { #gz-needle { transition: none; } #gz-needle .needle__q { animation: none; } }
.gauge__read span { font-size: 14px; } .gauge__read b { font-size: 24px; }

/* Conformité véhicule : vrai compteur d'âge (2026-11-16) */
.conform { height: auto; display: block; padding: 10px 10px 12px; }
.conform__dial { position: static; display: block; width: min(250px, 74vw); margin: 0 auto; }
.conform__txt { margin-top: 2px; }
.conform__txt b { font-size: 15px; }
.conform__txt span { font-size: 16px; font-weight: 700; }
.conform.is-ok .conform__txt span { color: #3ddc84 !important; }
.conform.is-warn .conform__txt span { color: #ffb020 !important; }
.conform.is-bad .conform__txt span { color: #ff5a4a !important; }
#cf-needle { transform-box: view-box; transform-origin: 110px 112px; transition: transform 1.3s cubic-bezier(.34, 1.45, .55, 1); }
#cf-needle .cf-q { transform-box: view-box; transform-origin: 110px 112px; animation: gz-quiver 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #cf-needle { transition: none; } #cf-needle .cf-q { animation: none; } }
