/* OuiPièce — supplier one-pager. Tokens from the app's design system (Tolérance + Sealed).
   Sealed rule kept: brass is reserved for verified facts, so it does not appear on this page. */
:root {
  --paper: #f7f8fa; --card: #ffffff; --line: #e3e6ec;
  --ink: #0f1724; --ink-2: #4a5568; --ink-3: #6b7486;
  --sapphire: #0f2a4a; --sapphire-2: #16385f; --sapphire-soft: #e8eef6;
  --ok: #0f7b4f; --ok-soft: #e6f4ec; --stamp: #c4532f;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(15,23,36,.06); --shadow-2: 0 10px 30px -14px rgba(15,23,36,.25);
  --font: 'Segoe UI', 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, Arial, system-ui, sans-serif;
  --font-num: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font); }
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }
a { color: var(--sapphire-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; }
svg { display: block; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--s-5); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--sapphire); color: #fff; padding: var(--s-2) var(--s-3); z-index: 10; }
.skip:focus { inset-inline-start: var(--s-2); }
.num, .ref { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.ref { direction: ltr; unicode-bidi: isolate; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; padding-block: var(--s-3); }
.logo { display: inline-flex; align-items: center; gap: 1px; text-decoration: none; color: var(--sapphire); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; }
.logo svg { width: 1.18em; height: 1.18em; }
.lang { text-decoration: none; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; }
.lang:hover { border-color: var(--sapphire); color: var(--sapphire); }

/* hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--paper) 1px, transparent 1px), linear-gradient(90deg, var(--paper) 1px, transparent 1px);
  background-size: 28px 28px; }
.hero__grid { display: grid; gap: var(--s-7); grid-template-columns: 1.35fr 1fr; align-items: center; padding-block: var(--s-8); }
.eyebrow { display: inline-block; margin: 0 0 var(--s-4); padding: 3px 10px; border: 1.5px solid var(--stamp); color: var(--stamp); border-radius: var(--r-sm);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--card); }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.15; margin: 0 0 var(--s-4); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
html[dir="rtl"] h1 { line-height: 1.4; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; margin: 0 0 var(--s-4); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 0 0 var(--s-2); font-weight: 700; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; margin: 0 0 var(--s-5); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid var(--sapphire);
  background: var(--sapphire); color: #fff; font: 600 1rem var(--font); text-decoration: none; transition: background .18s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--sapphire-2); }
.btn--ghost { background: var(--card); color: var(--sapphire); }
.btn--ghost:hover { background: var(--sapphire-soft); }

/* the "dossier" card: document look */
.dossier { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); box-shadow: var(--shadow-2); position: relative; }
.dossier::before { content: ''; position: absolute; inset: 6px; border: 1px dashed var(--line); border-radius: 6px; pointer-events: none; }
.dossier__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--sapphire); padding-bottom: var(--s-2); margin-bottom: var(--s-3); }
.dossier__head h2 { font-size: 1.1rem; margin: 0; }
.dossier__head .ref { font-size: .78rem; color: var(--ink-3); }
.dossier ol { margin: 0 0 var(--s-3); padding: 0; list-style: none; counter-reset: d; }
.dossier li { counter-increment: d; display: flex; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.dossier li::before { content: counter(d, decimal-leading-zero); font-family: var(--font-num); color: var(--ink-3); font-weight: 400; }
.dossier__note { color: var(--ink-3); font-size: .88rem; margin: 0 0 var(--s-3); }
.dossier__mail { font-weight: 600; word-break: break-all; }

/* sections */
.block { padding-block: var(--s-7); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); box-shadow: var(--shadow-1); }
.feat p { margin: 0; color: var(--ink-2); }
.feat__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sapphire-soft); color: var(--sapphire); margin-bottom: var(--s-3); }
.feat__icon svg { width: 22px; height: 22px; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.two { display: grid; gap: var(--s-7); grid-template-columns: 1.2fr 1fr; align-items: start; }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.checklist li { counter-increment: c; position: relative; padding: var(--s-3) 0; padding-inline-start: 48px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(c); position: absolute; inset-inline-start: 0; top: var(--s-3); width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sapphire); color: #fff; font-weight: 700; font-size: .9rem; }
.sub { margin-top: var(--s-2); }
.ticks { margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.ticks li { position: relative; padding: var(--s-2) 0; padding-inline-start: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--sapphire); border-bottom: 2.5px solid var(--sapphire); transform: rotate(-45deg); }
.conf { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; padding: var(--s-4); background: var(--sapphire-soft); border-radius: var(--r); color: var(--sapphire); font-size: .95rem; }
.conf svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); padding-top: var(--s-4); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-num); font-size: 1.6rem; font-weight: 700; color: var(--sapphire); margin-bottom: var(--s-2); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-1); }
.data { border-inline-start: 4px solid var(--sapphire); }
.data p { margin: 0; color: var(--ink-2); }
.data h2 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.block:has(.data) { padding-top: 0; }
.contacts { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
.contact { display: flex; flex-direction: column; gap: var(--s-1); background: var(--sapphire); color: #fff; text-decoration: none; border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); transition: transform .15s, box-shadow .15s; }
.contact:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.contact__t { font-weight: 800; font-size: 1.15rem; }
.contact__d { color: rgba(255,255,255,.78); }
.contact .ref { margin-top: var(--s-3); font-size: 1.02rem; font-weight: 600; word-break: break-all; }
.foot { border-top: 1px solid var(--line); background: var(--card); }
.foot__row { padding-block: var(--s-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); color: var(--ink-2); font-size: .92rem; }
.foot p { margin: 0; }
.foot__small { color: var(--ink-3); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 880px) {
  .hero__grid, .two { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__grid { padding-block: var(--s-7); }
  .feats, .steps, .contacts { grid-template-columns: 1fr; }
  .wrap { padding-inline: var(--s-4); }
  .panel { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
