:root { --ink: #16181a; --ink-2: #24282b; --paper: #f5f2eb; --yellow: #EDDA0B; --muted: #636762; --line: #dbdcd5; --title: 'Barlow Condensed', 'Arial Narrow', sans-serif; --sans: 'Inter', Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 14px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #8c8100; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--yellow); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; }
h1 { font-size: clamp(42px, 5vw, 64px); line-height: .94; text-transform: uppercase; letter-spacing: -.015em; }
h2 { font-size: 30px; line-height: 1.05; }
h3 { font-size: 22px; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 30; background: var(--yellow); padding: 10px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.topbar { min-height: 91px; padding: 15px max(28px, calc((100vw - 1320px)/2)); display: flex; align-items: center; gap: 30px; background: var(--ink); color: #fff; border-bottom: 1px solid #343738; }
.logo { display: block; flex: none; }
.logo img { display: block; width: 125px; height: auto; }
.topbar-label { padding-left: 25px; border-left: 1px solid #464849; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.topbar nav { margin-left: auto; display: flex; gap: 25px; align-items: center; font-size: 11px; }
.topbar nav a span { color: var(--yellow); margin-left: 7px; }
.text-button { padding: 6px 0; color: #fff; border: none; background: none; font-size: 11px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-button.dark { color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow span { width: 26px; height: 2px; background: currentColor; }
.dark-eyebrow { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 49px; padding: 13px 20px; border: 1px solid transparent; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transition: background .16s, transform .16s; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--yellow); color: var(--ink); }
.primary:hover { background: #fff16a; }
.outlined { color: var(--ink); border-color: #b7bab2; background: transparent; }
.outlined:hover { background: #e9e9e1; }
.small { min-height: 40px; padding: 10px 15px; font-size: 10px; }
.full { width: 100%; }
.intro { display: flex; background: var(--ink); color: #fff; overflow: hidden; }
.intro-copy { flex: 1 1 52%; padding: 78px 55px 74px max(28px, calc((100vw - 1320px)/2)); }
.intro h1 { font-size: clamp(64px, 6.2vw, 88px); line-height: .92; }
.intro h1 em { font-style: normal; color: var(--yellow); }
.intro-description { max-width: 430px; color: #babdba; margin: 28px 0; font-size: 15px; }
.login-note { color: #9a9e9b; font-size: 10px; margin-top: 16px; }
.loading-label { margin-top: 20px; color: #a5a7a2; font-size: 11px; }
.intro-side { flex: 1 1 48%; background: #202426; padding: 65px max(28px, calc((100vw - 1320px)/2)) 55px 52px; display: flex; flex-direction: column; justify-content: center; }
.club-card { position: relative; isolation: isolate; overflow: hidden; padding: 28px; color: #fff; background: #141617; border: 1px solid #464940; border-left: 3px solid var(--yellow); }
.club-card::after { content: ''; position: absolute; z-index: -1; width: 240px; height: 240px; border: 1px solid #41452d; border-radius: 50%; right: -85px; bottom: -155px; box-shadow: 0 0 0 19px #25281e, 0 0 0 20px #3b402a, 0 0 0 39px #25281e, 0 0 0 40px #3b402a; }
.card-top { display: flex; justify-content: space-between; align-items: center; font: 700 20px/1.05 var(--title); letter-spacing: .03em; }
.card-top b { color: #abae9f; font: 600 8px/1 var(--sans); letter-spacing: .13em; }
.wheel { display: block; width: 35px; height: 35px; border: 2px solid var(--yellow); border-radius: 50%; background: repeating-conic-gradient(from 0deg, transparent 0deg 50deg, var(--yellow) 50deg 55deg, transparent 55deg 60deg); box-shadow: inset 0 0 0 7px #141617; }
.card-eyebrow { color: #a9ad9c; font-size: 9px; letter-spacing: .11em; margin: 35px 0 10px; }
.card-equation { display: flex; align-items: baseline; gap: 9px; margin-bottom: 32px; flex-wrap: wrap; }
.card-equation strong { color: var(--yellow); font: 700 56px/1 var(--title); }
.card-equation span { font-size: 9px; color: #c5c9b6; letter-spacing: .08em; }
.card-equation i { font-style: normal; color: #969c85; font-size: 23px; margin: 0 7px; }
.card-bottom { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #414439; padding-top: 14px; font-size: 9px; color: #b6bcaa; letter-spacing: .03em; }
.intro-detail { display: flex; align-items: flex-start; gap: 20px; border-bottom: 1px solid #3a3e3d; padding: 23px 0; }
.intro-detail:last-child { border: 0; padding-bottom: 0; }
.step-no { color: var(--yellow); font: 700 20px/1.2 var(--title); padding-top: 3px; }
.intro-detail h2 { font-size: 23px; }
.intro-detail p { color: #a5aba7; font-size: 11px; margin-top: 6px; }
.notice { margin: 0; padding: 14px max(28px, calc((100vw - 1264px)/2)); background: #e9f1db; border-bottom: 1px solid #c7d4b3; color: #31441d; font-size: 12px; }
.notice.error { background: #fff0e9; color: #882f18; border-color: #e4bfae; }
.workspace { max-width: 1320px; margin: auto; padding: 45px 28px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 35px; }
.page-heading h1 em { font-style: normal; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 12px; }
.label-pill { display: block; padding: 6px 9px; border: 1px solid #c7c9bf; font-size: 8px; letter-spacing: .08em; font-weight: 700; white-space: nowrap; }
.customer-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 30px; align-items: start; }
.balance-card { padding: 30px; }
.balance { margin: 15px 0 35px; display: flex; gap: 12px; align-items: baseline; }
.balance strong { font: 700 clamp(64px, 6vw, 90px)/.9 var(--title); color: var(--yellow); overflow-wrap: anywhere; }
.balance span { color: #b2b9a3; font-size: 10px; }
.value-panel { background: #eaeade; padding: 25px 30px; margin-bottom: 20px; border: 1px solid #d9dbcc; }
.value-panel > span { font-size: 11px; color: var(--muted); }
.value-panel strong { display: block; font: 700 49px/1 var(--title); margin-top: 8px; }
.value-panel p { margin-top: 17px; font-size: 11px; color: var(--muted); }
.panel { background: #fffefb; padding: 28px; border: 1px solid var(--line); margin-bottom: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.section-heading .eyebrow { font-size: 8px; margin-bottom: 8px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.history-row h3 { font: 600 12px/1.4 var(--sans); overflow-wrap: anywhere; }
.history-row p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.history-row strong { font: 700 26px/1 var(--title); white-space: nowrap; }
.history-row .debit { color: #747566; }
.empty-state { border-top: 1px solid var(--line); padding: 35px 5px; color: var(--muted); font-size: 12px; }
.empty-state h3 { margin-bottom: 10px; color: var(--ink); font-size: 24px; }
.activation { max-width: 780px; margin: auto; padding: 70px 28px; }
.activation h1 { margin-bottom: 25px; }
.activation h1 em { font-style: normal; }
.activation > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); }
.activation .panel > p { margin: 20px 0; color: var(--muted); font-size: 12px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--muted); margin: 20px 0; }
.checkbox input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--yellow); }
.checkbox a { text-decoration: underline; }
.admin-workspace { display: flex; gap: 34px; }
.sidebar { flex: 0 0 200px; padding: 27px 22px; background: var(--ink); color: #fff; align-self: flex-start; position: sticky; top: 24px; }
.sidebar .eyebrow { font-size: 8px; }
.sidebar h2 { font-size: 34px; }
.sidebar-links { display: flex; flex-direction: column; margin-top: 30px; }
.sidebar-links a { display: flex; gap: 10px; border-top: 1px solid #3b3e3d; padding: 17px 0; color: #b5b9b1; font-size: 9px; }
.sidebar-links a.active, .sidebar-links a:hover { color: var(--yellow); }
.sidebar-links a span { color: #fff; }
.private-note { border-top: 1px solid #3b3e3d; margin-top: 40px; padding-top: 20px; font-size: 9px; color: #b2b8ab; }
.private-note > span { color: var(--yellow); font-size: 8px; }
.private-note p { margin-top: 8px; }
.admin-content { flex: 1; min-width: 0; }
.stats-rail { display: flex; border: 1px solid var(--line); margin-bottom: 25px; }
.stats-rail > div { flex: 1; padding: 20px; border-right: 1px solid var(--line); }
.stats-rail > div:last-child { border: 0; }
.stats-rail span { display: block; font-size: 8px; letter-spacing: .06em; color: var(--muted); }
.stats-rail strong { display: block; margin-top: 12px; font: 700 35px/1 var(--title); overflow-wrap: anywhere; }
.search { display: flex; gap: 12px; margin-bottom: 20px; }
input:not([type='checkbox']) { width: 100%; min-width: 0; height: 44px; border: 1px solid #cfd2c6; border-radius: 0; background: #fff; padding: 10px 12px; font-size: 12px; color: var(--ink); }
input:not([type='checkbox']):focus { border-color: #8c8100; }
input::placeholder { color: #85877d; }
.search input { flex: 1; }
.customer-item { width: 100%; text-align: left; padding: 16px 12px; border: 0; border-top: 1px solid var(--line); background: none; display: flex; align-items: center; gap: 15px; }
.customer-item:hover, .customer-item.selected { background: #f2f3e6; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid #d6d9c8; background: #ecefdf; font: 700 20px/1 var(--title); }
.customer-info { flex: 1; min-width: 0; }
.customer-info strong { display: block; font-size: 12px; }
.customer-info small { display: block; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.customer-item .points { font: 600 24px/1 var(--title); white-space: nowrap; }
.customer-item .points small { font: 400 9px/1 var(--sans); }
.create-form { border: 1px solid var(--line); padding: 18px; margin-bottom: 20px; background: #f7f7ee; }
.form-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.form-row label { flex: 1; min-width: 0; font-size: 10px; font-weight: 600; }
.form-row label input { margin-top: 8px; }
.form-row label small { display: block; font-size: 9px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.create-form .form-row { align-items: flex-end; margin-bottom: 0; }
.helper { font-size: 10px; color: var(--muted); margin: 12px 0 20px; }
.internal-tag { color: #62684e; background: #eeefdc; border: 1px solid #daddc8; padding: 6px 8px; font-size: 8px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.selected-note { padding: 12px 15px; border-left: 2px solid var(--yellow); background: #f4f4e8; font-size: 11px; margin-bottom: 25px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
.invoice-preview { display: flex; justify-content: space-between; gap: 20px; padding: 20px; background: var(--ink); color: #fff; min-height: 70px; font-size: 11px; }
.invoice-preview > div { flex: 1; }
.invoice-preview strong { display: block; font: 600 27px/1.2 var(--title); margin-top: 6px; color: var(--yellow); }
.invoice-preview .preview-error { color: #ffc1a5; }
.rules-panel { padding: 20px 0; }
.rules-panel p:not(.eyebrow) { color: var(--muted); font-size: 11px; margin-top: 18px; }
.rules-panel strong { color: var(--ink); }
.conditions { padding: 52px max(28px, calc((100vw - 1264px)/2)); display: flex; gap: 70px; border-top: 1px solid var(--line); background: #efeee7; }
.conditions > div:first-child { flex: 0 0 32%; }
.conditions > div:last-child { flex: 1; }
.conditions p:not(.eyebrow) { color: var(--muted); font-size: 11px; margin-top: 10px; margin-bottom: 23px; }
.conditions a { text-decoration: underline; }
footer { background: var(--ink); color: #9da395; padding: 26px max(28px, calc((100vw - 1264px)/2)); display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: .04em; }
footer a { color: #fff; }
dialog { width: min(610px, calc(100% - 30px)); border: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #0d1015cc; backdrop-filter: blur(3px); }
.dialog-inner { padding: 35px; }
.dialog-inner h2 { font-size: 42px; margin-bottom: 25px; }
.dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.confirm-row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.confirm-row span { color: var(--muted); }
.confirm-row strong { text-align: right; overflow-wrap: anywhere; }
#confirm-status { color: #882f18; font-size: 11px; margin-top: 18px; }
@media (max-width: 1080px) { .intro-copy { padding: 65px 30px; } .intro-side { padding: 45px 30px; } .sidebar { flex-basis: 165px; padding: 24px 16px; } .admin-workspace { gap: 22px; } .form-row.three { flex-wrap: wrap; } .form-row.three label { flex-basis: 40%; } .internal-tag { white-space: normal; } }
@media (max-width: 760px) { .topbar { min-height: 80px; padding: 15px 20px; gap: 16px; } .logo img { width: 105px; } .topbar-label { display: none; } .topbar nav { gap: 14px; font-size: 10px; } .text-button { font-size: 10px; } .intro { flex-direction: column; } .intro-copy { padding: 50px 24px 45px; } .intro h1 { font-size: clamp(53px, 12.2vw, 77px); } .intro-description { font-size: 13px; max-width: 430px; } .intro-side { padding: 30px 24px 40px; } .club-card { padding: 24px; } .card-equation strong { font-size: 49px; } .intro-detail { padding: 21px 0; } .workspace { padding: 35px 20px 40px; } .page-heading { flex-direction: column; gap: 16px; } .page-heading h1 { font-size: 46px; } .customer-layout { grid-template-columns: 1fr; gap: 25px; } .panel { padding: 22px; } .section-heading { align-items: flex-start; } .section-heading h2 { font-size: 27px; } .admin-workspace { flex-direction: column; gap: 30px; } .sidebar { position: static; width: 100%; padding: 20px; } .sidebar h2, .private-note { display: none; } .sidebar .eyebrow { margin-bottom: 10px; } .sidebar-links { flex-direction: row; flex-wrap: wrap; gap: 15px; margin: 0; } .sidebar-links a { padding: 5px 0; border: 0; } .stats-rail > div { padding: 15px 10px; } .stats-rail span { font-size: 7px; } .stats-rail strong { font-size: 27px; } .form-row, .create-form .form-row { flex-direction: column; gap: 16px; } .form-row label, .form-row.three label { width: 100%; flex-basis: auto; } .invoice-preview { flex-wrap: wrap; } .invoice-preview > div { flex-basis: 40%; } .internal-tag { max-width: 105px; font-size: 7px; } .search { flex-wrap: wrap; } .search input { flex-basis: 100%; } .customer-item { padding: 15px 0; gap: 10px; } .customer-item .points { font-size: 23px; } .conditions { padding: 40px 24px; flex-direction: column; gap: 25px; } .conditions > div:first-child { flex-basis: auto; } footer { padding: 25px 24px; flex-wrap: wrap; font-size: 8px; } .dialog-inner { padding: 25px; } .dialog-actions .button { width: 100%; } .activation { padding: 45px 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Les comptes clients affichent seulement leurs deux soldes. */
.card-message { margin: 20px 0 32px; color: var(--yellow); font: 700 48px/.95 var(--title); text-transform: uppercase; }
.balance-only-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; }
.balance-only-value { margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 35px; }
.balance-only-value > span { font-size: 10px; letter-spacing: .08em; }
.balance-only-value > strong { font-size: 68px; margin: 16px 0 8px; }
.balance-only-value .button { margin-top: 26px; }
@media (max-width: 760px) { .balance-only-layout { grid-template-columns: 1fr; } .balance-only-value { padding: 28px; } .balance-only-value > strong { font-size: 58px; } }

/* Connexion IMY PNEUS et gestion des accès. */
.login-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; margin: 24px 0; }
.login-form label { display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: 13px; }
.login-form input { background: #fff; color: #16181a; }
.login-form .button { align-self: flex-start; }
.login-note a { color: #EDDA0B; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.button.danger { background: #8c2424; color: #fff; border-color: #8c2424; }
.account-actions .button { white-space: normal; }
.management-form label { display: block; margin: 20px 0; }

/* Véhicules et factures PDF privées. */
.records-navigation { display: flex; gap: 20px; flex-wrap: wrap; margin: 32px 0 25px; border-bottom: 1px solid var(--line); }
.records-navigation a { padding: 12px 0; font-size: 12px; font-weight: 600; border-bottom: 3px solid var(--yellow); }
.records-navigation a:hover { color: #746c00; }
.records-panel { scroll-margin-top: 24px; }
.vehicle-card { padding: 22px 0; border-top: 1px solid var(--line); }
.vehicle-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vehicle-heading h3 { font-size: 28px; overflow-wrap: anywhere; }
.registration { padding: 6px 11px; background: var(--ink); color: #fff; letter-spacing: .08em; font-weight: 600; font-size: 11px; white-space: nowrap; }
.vehicle-details { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0; }
.vehicle-details > div { flex: 1; min-width: 135px; }
.vehicle-details dt { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.vehicle-details dd { font-size: 12px; font-weight: 600; margin: 7px 0 0; overflow-wrap: anywhere; }
.document-row { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.document-row > div { flex: 1; min-width: 0; }
.document-row h3 { font: 600 13px/1.4 var(--sans); overflow-wrap: anywhere; }
.document-row p { font-size: 10px; color: var(--muted); margin: 7px 0 0; overflow-wrap: anywhere; }
.pdf-badge { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 53px; border: 1px solid #ddd69a; background: #faf7d6; font-size: 11px; font-weight: 700; color: #635c00; }
.records-panel .create-form { margin: 22px 0 0; }
.records-panel .create-form h3 { margin-bottom: 20px; }
.records-panel .create-form .form-row { margin-bottom: 18px; }
select { font: inherit; width: 100%; min-height: 44px; border: 1px solid #cfd2c6; border-radius: 0; background: #fff; padding: 10px 12px; font-size: 12px; color: var(--ink); margin-top: 8px; }
input[type='file'] { height: auto; min-height: 44px; }
input[type='file']::file-selector-button { border: 0; padding: 6px 10px; margin-right: 10px; background: var(--yellow); color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .vehicle-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .vehicle-details { gap: 18px; }
  .vehicle-details > div { flex-basis: 40%; }
  .document-row { flex-wrap: wrap; gap: 14px; }
  .document-row > div { flex-basis: calc(100% - 60px); }
  .document-row .button { width: 100%; }
  .records-panel .label-pill { white-space: normal; max-width: 105px; font-size: 7px; }
}
