/* ==========================================================================
   Charte TickMark du 21.11.2026 : univers « pixel et grille » + « écran de caisse »
   Appliquée à toutes les pages (classe u-dx sur <body>, posée par build.py).
   Texte : Geist. Titres et étiquettes : Geist Mono. Numéros : Silkscreen (pixel). Chiffres : Doto (points).
   Le mot « TickMark » reste en Archivo, comme dans le logo.
   Polices hébergées dans assets/fonts (licence OFL, voir OFL-*.txt).
   ========================================================================== */

@font-face { font-family: 'Doto'; font-style: normal; font-weight: 500 900; font-display: swap; src: url('/assets/fonts/doto-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Doto'; font-style: normal; font-weight: 500 900; font-display: swap; src: url('/assets/fonts/doto-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/geist-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/geist-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/silkscreen-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/silkscreen-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.u-dx {
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --pixel: 'Silkscreen', var(--mono);
  --dots: 'Doto', var(--mono);
  --b1: #C9D8FF;
  --b2: #7AA7FF;
  --b3: #1F4FC8;
  --b4: #0B1A33;
  font-family: var(--font);
  letter-spacing: -0.005em;
}
@media (prefers-color-scheme: dark) {
  .u-dx { --b1: #22345A; --b2: #3C63B8; --b3: #8DB2FF; --b4: #EEF2F8; }
}

/* Mot « TickMark » : Archivo, comme dans le logo validé */
.u-dx .wordmark { font-family: 'Archivo', var(--font); }

/* Titres en police « code » : Geist Mono, serrée */
.u-dx h1, .u-dx h2, .u-dx h3, .u-dx .h2 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.045em; }
.u-dx .hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.06; max-width: 19ch; margin-top: 18px; }

/* Lisibilité : texte de 18 px, petits textes de 15 px au moins, gris plus foncés */
.u-dx { font-size: 18px; }
.u-dx .lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.u-dx .note, .u-dx .hero-trust, .u-dx .fig-note { font-size: 15.5px; color: var(--ink-2); }
.u-dx .nav-links a { font-size: 15px; }

/* Étiquettes : numéro en pixels de 20 px, mot en Geist Mono de 14 px */
.u-dx .label { gap: 14px; align-items: center; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.u-dx .label .n { font-family: var(--pixel); font-size: 20px; font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--accent); }
.u-dx .dx-eyebrow { margin: 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.u-dx .edge-n, .u-dx .row-n, .u-dx .ct-n, .u-dx .start .n { font-family: var(--pixel); font-size: 17px; font-weight: 400; letter-spacing: 0; }
.u-dx .car-count { font-family: var(--mono); font-size: 14px; }
.u-dx .compat thead th, .u-dx .figures thead th, .u-dx .dx-facts dt { font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }

/* Chiffres en points, comme sur un écran de caisse */
.u-dx .big-figure, .u-dx .figures td.num { font-family: var(--dots); font-weight: 800; letter-spacing: 0; }
.u-dx .big-figure { color: var(--accent); font-size: clamp(2.6rem, 5vw, 4rem); }
.u-dx .big-figure small, .u-dx .figures td.num small { font-family: var(--font); font-weight: 500; }
.u-dx .figures td.num { font-size: 1.5em; color: var(--accent); }

/* Bouton : deux pixels bleus après le texte */
.u-dx .btn::after { content: ""; width: 7px; height: 7px; margin-left: 10px; background: var(--b2); box-shadow: 7px 0 0 var(--b1); flex-shrink: 0; }
.u-dx .nav-links .btn::after { width: 6px; height: 6px; box-shadow: 6px 0 0 var(--b1); }

/* ---------- Haut de page : texte à gauche, illustration à droite ---------- */
.dx-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); border: 1px solid var(--line); background: var(--surface); margin-top: clamp(28px, 4vw, 48px); }
.dx-text { padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.dx-text .lead { margin-top: 24px; }
.dx-art { position: relative; min-height: 460px; border-left: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.dx-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; opacity: 0.7; }

/* Le « vu » de TickMark en pixels, avec le double trait du total */
.dx-pix { position: absolute; top: 9%; left: 10%; display: grid; grid-template-columns: repeat(11, 20px); grid-auto-rows: 20px; }
.dx-pix i.a { background: var(--b4); }
.dx-pix i.b { background: var(--b3); }
.dx-pix i.c { background: var(--b2); }

/* Marches bleues en bas */
.dx-steps { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; }
.dx-steps span { flex: 1; }
.dx-steps span:nth-child(1) { height: 40px; background: var(--b1); }
.dx-steps span:nth-child(2) { height: 80px; background: var(--b2); }
.dx-steps span:nth-child(3) { height: 120px; background: var(--b3); }
.dx-steps span:nth-child(4) { height: 60px; background: var(--b4); }
.dx-steps span:nth-child(5) { height: 20px; background: var(--b1); }

/* Le ticket : une facture lue, chiffres en points */
.dx-ticket { position: absolute; right: 7%; bottom: 150px; width: 240px; transform: rotate(-2deg); padding: 18px 18px 22px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); box-shadow: var(--paper-shadow-sm); font-family: var(--mono); font-size: 11.5px; }
.dx-ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: radial-gradient(circle at 5px 0, transparent 5px, var(--paper) 5px) 0 0 / 10px 7px repeat-x; }
.dx-t-file { color: var(--paper-muted); }
.dx-t-big { margin: 10px 0 6px; font-family: var(--dots); font-weight: 900; font-size: 40px; line-height: 1.05; color: var(--paper-ink); }
.dx-t-ln { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--paper-line); color: var(--paper-muted); }
.dx-t-ln .ok { color: #17784A; }

/* Bandeau de chiffres sous le haut de page */
.dx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.dx-facts > div { padding: 22px clamp(20px, 3vw, 32px) 24px; }
.dx-facts > div + div { border-left: 1px solid var(--line); }
.dx-facts dd { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dx-num { font-family: var(--dots); font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--accent); }
.dx-facts small { font-size: 15px; color: var(--ink-2); }

.u-dx .edge { margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 900px) {
  .dx-hero { grid-template-columns: 1fr; }
  .dx-art { min-height: 540px; border-left: 0; border-top: 1px solid var(--line); }
  .dx-pix { left: 6%; top: 5%; grid-template-columns: repeat(11, 14px); grid-auto-rows: 14px; }
  .dx-ticket { right: 5%; bottom: 120px; width: 210px; }
  .dx-t-big { font-size: 30px; }
  .dx-facts { grid-template-columns: 1fr; }
  .dx-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .dx-pix { grid-template-columns: repeat(11, 12px); grid-auto-rows: 12px; }
  .dx-ticket { width: 200px; right: 4%; }
}

/* Autres pages : prix et calculateur en points, haut de page sur grille fine avec les marches bleues */
.u-dx .price-amount, .u-dx .calc-out dd { font-family: var(--dots); font-weight: 800; letter-spacing: 0; color: var(--accent); }
.u-dx .price-amount small, .u-dx .calc-out dd small { font-family: var(--font); font-weight: 500; }
.u-dx .page-hero { position: relative; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.u-dx .page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(90deg, var(--b1) 0 20%, var(--b2) 20% 40%, var(--b3) 40% 60%, var(--b4) 60% 80%, var(--b1) 80% 100%);
  clip-path: polygon(0 75%, 20% 75%, 20% 50%, 40% 50%, 40% 0, 60% 0, 60% 50%, 80% 50%, 80% 87%, 100% 87%, 100% 100%, 0 100%); }
.u-dx .page-hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; }

/* Lisibilité (suite) : petits textes hors illustrations */
.u-dx .crumbs, .u-dx .crumbs a, .u-dx .crumbs span { font-size: 14px; }
.u-dx .step-num, .u-dx .sec-n { font-family: var(--pixel); font-size: 17px; letter-spacing: 0; }
.u-dx .ch-n { font-size: 14px; }
.u-dx .price-kind, .u-dx .calc dt, .u-dx .calc-out dt { font-size: 14px; }
.u-dx .price-tag { font-size: 12.5px; }
.u-dx .tag { font-size: 13.5px; }
.u-dx .footer-h { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.06em; }
.u-dx footer p, .u-dx footer a { font-size: 14.5px; }
@media (max-width: 600px) {
  .u-dx .hero h1 { font-size: 1.9rem; letter-spacing: -0.055em; }
  .u-dx h2, .u-dx .h2 { letter-spacing: -0.05em; }
}

/* ---------- Haut de l'accueil en « vitrine » (choix du 21.11.2026) ----------
   Sur ordinateur, l'illustration passe derrière le texte, sur toute la largeur.
   Un dégradé garde un fond uni sous le texte. Sur téléphone, texte puis illustration. */
.hero-demo { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
@media (min-width: 901px) {
  .dx-hero { display: block; position: relative; min-height: 600px; overflow: hidden; }
  .dx-art { position: absolute; inset: 0; border-left: 0; min-height: 0; background: var(--surface); }
  .dx-grid { opacity: 0.55; }
  .dx-art::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 38%, transparent 68%); }
  .dx-pix, .dx-ticket, .dx-steps { z-index: 2; }
  .dx-pix { left: auto; right: 27%; top: 8%; grid-template-columns: repeat(11, 24px); grid-auto-rows: 24px; }
  .dx-ticket { right: 4%; bottom: 112px; }
  .dx-steps span:nth-child(1) { height: 32px; }
  .dx-steps span:nth-child(2) { height: 64px; }
  .dx-steps span:nth-child(3) { height: 96px; }
  .dx-steps span:nth-child(4) { height: 48px; }
  .dx-steps span:nth-child(5) { height: 16px; }
  .dx-text { position: relative; z-index: 3; max-width: 700px; padding: 76px 56px 140px; }
  .u-dx .hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.5rem); max-width: 18ch; }
}
@media (min-width: 901px) {
  .dx-pix { right: max(4%, calc(100% - 700px - 11 * 24px - 40px)); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .dx-text { max-width: 600px; }
  .dx-pix { right: 4%; top: 6%; grid-template-columns: repeat(11, 18px); grid-auto-rows: 18px; }
  .dx-ticket { width: 210px; right: 4%; bottom: 110px; }
}

/* Barre du haut : le logo ne se laisse jamais écraser par le menu.
   Le menu complet a besoin d'environ 1 210 px ; en dessous, place aux trois barres. */
.u-dx .nav-inner .logo { flex-shrink: 0; }
.u-dx .wordmark { white-space: nowrap; }
.u-dx .nav-links { gap: 22px; }
@media (max-width: 1240px) {
  .nav-links a:not(.btn) { display: none; }
  .js .nav-links { display: none; }
  .js .nav-toggle { display: grid; }
}

/* Illustration de l'accueil : étape encore en développement (21.11.2026) */
.dev-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid currentColor; color: var(--warn); letter-spacing: 0.06em; vertical-align: 1px; }

/* Pages courtes (merci, 404) : liens vers les pages légales (21.11.2026) */
.simple-legal { margin-top: 48px; font-size: 14px; color: var(--muted); }
.simple-legal a { color: inherit; }
@media (max-width: 600px) { .dev-tag { display: table; margin: 6px 0 0; } }
