/* Tianshan Link v4 : une société de fret, sobre et industrielle.
   Sections pleine largeur, conteneur centré, coins de 4 px au plus. Un bouton principal (orange plein)
   et un bouton secondaire (contour). Police Onest auto-hébergée. Animations de 250 ms au plus (survol, arc de vol). */
:root {
  --navy: #0b2545;
  --navy-2: #13355b;
  --ridge: #2e6a96;
  --steel: #f2f5f8;
  --line: #d6dee7;
  --slate: #3f546f;
  --white: #ffffff;
  --orange: #f2a541;
  --orange-2: #e69628;
  --r: 4px;
  --wrap: 1200px;
  --pad: 24px;
  --space: 64px;
  --bar: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-h1: clamp(32px, 3.4vw, 48px);
  --t-h2: clamp(26px, 2.4vw, 32px);
  --t-h3: 20px;
  --t-body: 18px;
  --t-small: 15px;
  font-family: "Onest", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--white); color: var(--navy); font-size: var(--t-body); line-height: 1.55;
  font-kerning: normal; caret-color: var(--orange); }
::selection { background: var(--orange); color: var(--navy); }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.small { font-size: var(--t-small); color: var(--slate); }
.code { font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ico { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--orange); color: var(--navy);
  padding: 12px 16px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { left: 12px; }

/* ------------------------------------------------------------------ boutons : deux styles, rien d'autre */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-on-dark { color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-on-dark:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-wide { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ barre du haut : fine, fixe */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(11, 37, 69, .06); } /* taste-skill-ignore : barre fixe, élément flottant */
.bar { height: var(--bar); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.mark { width: 40px; height: auto; }
.topnav { display: flex; gap: 22px; font-size: var(--t-small); font-weight: 500; }
.topnav a, .langs a, .bar-link { text-decoration: none; transition: color 160ms ease-out; }
.topnav a:hover, .bar-link:hover { color: var(--ridge); text-decoration: underline; }
.langs { margin-left: auto; display: flex; gap: 10px; font-size: var(--t-small); font-weight: 600; color: var(--slate); }
.langs a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bar-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); font-weight: 600; }
.bar-cta { min-height: 42px; font-size: var(--t-small); padding: 0 16px; }

/* ------------------------------------------------------------------ hero : une grande photo pleine largeur */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; padding: 56px 0; color: var(--white);
  background: var(--navy); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 45%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .78) 45%, rgba(11, 37, 69, .35) 100%); } /* taste-skill-ignore : voile neutre sous le texte sur photo */
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: var(--t-h1); line-height: 1.1; }
.lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: #dbe5ef; max-width: 46ch; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.card { background: var(--white); color: var(--navy); border-radius: var(--r); padding: 24px; }
.mini h2 { font-size: 20px; margin-bottom: 14px; }
.mini-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mini .cf-turnstile { margin-bottom: 12px; }
.mini .note { margin-top: 10px; font-size: var(--t-small); color: var(--slate); }

/* champs de formulaire */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: var(--t-small); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--navy); background: var(--white);
  border: 1px solid #b9c6d4; border-radius: var(--r); padding: 11px 12px; min-height: 48px; width: 100%;
  transition: border-color 160ms ease-out; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ridge); box-shadow: 0 0 0 3px rgba(46, 106, 150, .2); } /* taste-skill-ignore : anneau de focus */
.field input::placeholder, .field textarea::placeholder { color: #5f7189; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0392b; }
.msg { font-weight: 600; min-height: 1.4em; margin-top: 8px; }
.msg.ok { color: #1e7a4c; }
.msg.err { color: #c0392b; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore : champ piège anti-robot, invisible */

/* ------------------------------------------------------------------ faits concrets */
.facts { background: var(--steel); }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.facts-list li { display: flex; gap: 14px; align-items: flex-start; }
.facts-list .ico { width: 28px; height: 28px; color: var(--ridge); margin-top: 2px; }
.facts-list strong { display: block; font-size: 18px; line-height: 1.3; }
.facts-list span { display: block; font-size: var(--t-small); color: var(--slate); }

/* ------------------------------------------------------------------ sections pleine largeur */
.band { padding: var(--space) 0; }
.band-alt { background: var(--steel); }
.band-dark { background: var(--navy); color: var(--white); }
.section-lead { margin-top: 10px; color: var(--slate); max-width: 70ch; }

.svc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.svc-list { margin-top: 24px; display: grid; gap: 20px; }
.svc-item { padding-left: 16px; border-left: 3px solid var(--orange); }
.svc-item p { margin-top: 4px; color: var(--slate); max-width: 58ch; }
.agent { margin-top: 24px; font-size: var(--t-small); color: var(--slate); max-width: 60ch; }
.svc-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ routes : carte schématique + tableau */
.routes-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.map-box { background: var(--white); border-radius: var(--r); padding: 12px; }
.map { width: 100%; height: auto; display: block; font-family: "Onest", sans-serif; }
.map-ground { fill: #f7f9fb; }
.ridge { fill: #c9d6e3; }
.country { fill: #5f7189; font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.apt circle { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; }
.apt-orig circle { fill: var(--navy); }
.apt text { fill: var(--navy); font-size: 25px; }
.apt .code { font-weight: 700; }
.apt.on circle { fill: var(--orange); stroke: var(--navy); }
.arcs path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 11; }
.arcs { clip-path: inset(0 0 0 0); transition: clip-path 240ms var(--ease-out); }
.arcs.start { clip-path: inset(0 0 0 100%); transition: none; }
.routes-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: var(--t-small); border-radius: var(--r); overflow: hidden; }
.routes-table th { text-align: left; font-weight: 600; background: var(--navy); color: var(--white); padding: 10px 12px; }
.routes-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.routes-table tr.on td { background: #fff4e3; }
.row-pick { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: #9fb1c4; text-underline-offset: 4px; }
.row-pick:hover { text-decoration-color: var(--navy); }
.row-pick:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.table-box .small { margin-top: 12px; }
.origins { font-size: var(--t-small); font-weight: 600; margin-bottom: 10px; }

/* ------------------------------------------------------------------ грузы et documents */
.cargo-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ticks { margin-top: 14px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.ticks .ico { width: 20px; height: 20px; margin-top: 3px; }
.ok .ico { color: #1e7a4c; }
.no .ico { color: #b03a2e; }
.docs .ico { color: var(--ridge); }
.cargo-grid .small { margin-top: 8px; }

/* ------------------------------------------------------------------ étapes */
.steps { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 3px solid var(--orange); }
.steps h3::before { content: counter(s) ". "; color: var(--orange); }
.steps p { margin-top: 6px; color: #c9d6e3; max-width: 36ch; }

/* ------------------------------------------------------------------ FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.qas { display: grid; gap: 6px; }
.qa { background: var(--steel); border-radius: var(--r); padding: 0 18px; }
.qa summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; font-size: 18px; position: relative;
  transition: color 160ms ease-out; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px;
  font-weight: 500; color: var(--ridge); transition: transform 200ms var(--ease-out); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa summary:hover { color: var(--ridge); }
.qa p { padding: 0 0 18px; color: var(--slate); max-width: 68ch; }

/* ------------------------------------------------------------------ formulaire complet */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.quote-intro p { margin-top: 10px; color: var(--slate); }
.quote-photo { margin: 20px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-contacts { margin-top: 18px; display: grid; gap: 8px; }
.quote-contacts a, .foot-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.quote-contacts a:hover, .foot-list a:hover { text-decoration: underline; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--white); padding: 24px; border-radius: var(--r); }
.quote-form .wide { grid-column: 1 / -1; }
.quote-form .submit { justify-self: start; min-width: 240px; }

/* ------------------------------------------------------------------ pied de page */
.foot { background: var(--navy); color: #c9d6e3; padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.foot h2 { font-size: 16px; color: var(--white); margin-bottom: 12px; }
.foot-brand strong { display: block; color: var(--white); font-size: 18px; margin-top: 10px; }
.foot-brand p { margin-top: 8px; font-size: var(--t-small); max-width: 34ch; }
.mark-foot { width: 64px; height: auto; }
.foot-list { display: grid; gap: 8px; font-size: var(--t-small); }
.foot-list a { color: var(--white); }
.foot .small { color: #9fb1c4; margin-top: 10px; }
.foot-bottom { margin-top: 36px; display: grid; gap: 6px; }
.credits { font-size: 13px; color: #8ea3ba; line-height: 1.5; }
.credits a { color: #b9c8d8; }

.bottombar { display: none; }

/* ------------------------------------------------------------------ tablette */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .hero-grid, .svc-grid, .routes-grid, .faq-grid, .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cargo-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ téléphone */
@media (max-width: 680px) {
  :root { --pad: 16px; --space: 40px; --bar: 56px; --t-body: 17px; }
  body { padding-bottom: 72px; }
  .bar { gap: 12px; }
  .brand span { display: none; }
  .bar-link span { display: none; }
  .bar-cta { display: none; }
  .hero { min-height: 0; padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(24px, 6.4vw, 34px); }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
  .mini-fields { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .cargo-grid, .steps { grid-template-columns: 1fr; gap: 24px; }
  .routes-table { font-size: 14px; }
  .apt text { font-size: 40px; }
  .apt .name, .country, .ridge { display: none; }
  .apt circle { r: 14px; }
  .routes-table th:nth-child(1), .routes-table td:nth-child(1) { display: none; }
  .quote-form { grid-template-columns: 1fr; padding: 16px; }
  .quote-form .submit { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .bottombar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; position: fixed; z-index: 50;
    left: 0; right: 0; bottom: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--white);
    box-shadow: 0 -1px 0 var(--line), 0 -2px 8px rgba(11, 37, 69, .06); transition: transform 200ms var(--ease-out); } /* taste-skill-ignore : barre fixe */
  .bottombar .btn { min-height: 48px; padding: 0 10px; font-size: 15px; }
  .bottombar.away { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* ------------------------------------------------------------------ pages SEO */
.seo-head { background: var(--steel); padding-top: 32px; }
.crumbs { display: flex; gap: 8px; font-size: var(--t-small); color: var(--slate); margin-bottom: 14px; }
.crumbs a { color: var(--slate); }
.seo-head-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.seo-head h1 { font-size: var(--t-h1); max-width: 24ch; }
.seo-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.seo-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-dark { margin-top: 14px; font-size: 19px; color: var(--slate); max-width: 62ch; }
.seo-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.note-box { background: var(--steel); border-left: 3px solid var(--orange); padding: 12px 16px; border-radius: var(--r); }
.seo-table { margin: 4px 0 10px; }
.seo-aside { position: sticky; top: calc(var(--bar) + 24px); }
.seo-aside h2 { font-size: 18px; margin-bottom: 10px; }
.seo-links { display: grid; gap: 8px; font-size: var(--t-small); }
.seo-links a { font-weight: 600; }
.foot-sub { margin-top: 20px; }
@media (max-width: 1080px) {
  .seo-grid, .seo-head-grid { grid-template-columns: 1fr; gap: 28px; }
  .seo-photo { aspect-ratio: 16 / 9; }
  .seo-aside { position: static; }
}
