/* nextransit.ma marketing site (NXTR-52). Fonts are self-hosted (OFL, see assets/fonts). */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/manrope-latin-700-normal.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: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin-800-normal.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: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext-800-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --navy: #102A43;
  --navy-2: #243B53;
  --terra: #D6523C;        /* brand terracotta: lines, markers, never small text */
  --terra-ink: #B5412D;    /* darker shade for buttons and text: 5.6:1 on white */
  --terra-light: #E76A54;  /* the reversed-logo accent, for text on navy */
  --ivory: #F7F2EA;
  --white: #FFFFFF;
  --ink: #102A43;
  --muted: #486581;
  --line: #D9E2EC;
  --mist: #BCCCDC;
  --ok: #1F7A4D;
  --ok-bg: #E3F4EA;
  --wait-bg: #EEF2F6;
  --alert-bg: #FBE7E3;
  --off-bg: #F1E9DC;
  --off: #7A5418;

  --font-head: 'Manrope', 'Inter', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --radius-s: 6px;
  --radius-m: 12px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
a { color: var(--terra-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--terra-ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9688rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center;
}
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1.0313rem; }
.btn-primary { background: var(--terra-ink); color: var(--white); }
.btn-primary:hover { background: #9E3524; color: var(--white); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; line-height: 0; margin-right: auto; }
.logo { display: block; width: 180px; height: auto; }
.nav-desktop { display: none; gap: 22px; }
.nav-desktop a, .menu-panel a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav-desktop a:hover { color: var(--terra-ink); }
.header-cta { display: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 10px 14px; border: 2px solid var(--navy);
  border-radius: var(--radius-s); font-weight: 600; font-size: 0.9375rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: var(--white); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 40px));
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 8px; box-shadow: 0 18px 40px rgba(16, 42, 67, 0.16);
}
.menu-panel a { padding: 12px 12px; border-radius: var(--radius-s); }
.menu-panel a:hover { background: var(--ivory); }
.menu-panel a:last-child { margin-top: 6px; background: var(--terra-ink); color: var(--white); text-align: center; }
@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu { display: none; }
}

/* Hero: the dispatch board is the one bold element of the page */
.hero { background: var(--ivory); padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em;
  max-width: 15ch; text-wrap: balance;
}
.lead { margin-top: 22px; font-size: 1.1875rem; color: var(--navy-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (min-width: 1000px) {
  .hero { padding: 80px 0 96px; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.board {
  margin: 0; background: var(--white); border-radius: var(--radius-m); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(16, 42, 67, 0.35); overflow: hidden; font-size: 0.875rem;
}
.board-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--navy); color: var(--white); padding: 12px 16px; }
.board-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.board-date { color: var(--mist); font-size: 0.8125rem; }
.board-rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 48px 1fr auto; grid-template-areas: "time trip chip" "time driver chip";
  column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.row-time { grid-area: time; font-weight: 600; font-variant-numeric: tabular-nums; align-self: start; padding-top: 1px; }
.row-trip { grid-area: trip; display: flex; flex-direction: column; min-width: 0; }
.row-trip strong { font-weight: 600; }
.row-trip span, .row-driver { color: var(--muted); font-size: 0.8125rem; }
.row-driver { grid-area: driver; }
.row .chip { grid-area: chip; }
.row-conflict { background: #FFF8F6; box-shadow: inset 4px 0 0 var(--terra); }
.row-note { grid-column: 2 / -1; margin-top: 6px; color: #8A2E1F; font-size: 0.8125rem; }
.chip { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-wait { background: var(--wait-bg); color: var(--navy-2); }
.chip-alert { background: var(--alert-bg); color: #8A2E1F; }
.chip-off { background: var(--off-bg); color: var(--off); }
.board-map { position: relative; height: 170px; }
.board-map svg { display: block; width: 100%; height: 100%; }
.map-eta {
  position: absolute; left: 14px; top: 14px; background: var(--white); border-radius: var(--radius-s);
  padding: 8px 12px; box-shadow: 0 6px 18px rgba(16, 42, 67, 0.18); display: flex; flex-direction: column; line-height: 1.35;
}
.map-eta span { color: var(--muted); font-size: 0.8125rem; }
.board-caption { padding: 8px 16px; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (min-width: 560px) {
  .row { grid-template-columns: 52px minmax(0, 1fr) 110px auto; grid-template-areas: "time trip driver chip"; }
  .row-driver { color: var(--navy-2); }
  .board-map { height: 200px; }
}

/* The one orchestrated moment: the route draws and the vehicle appears on it */
.route { stroke-dasharray: 420; stroke-dashoffset: 0; animation: draw 1.6s ease-out 0.3s both; }
.bus { animation: appear 0.4s ease-out 1.6s both; }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .route, .bus { animation: none; } }

/* Sections */
.section { padding: 72px 0; }
.section-ivory { background: var(--ivory); }
.section-intro { margin-top: 14px; color: var(--navy-2); max-width: 38em; }
@media (min-width: 1000px) { .section { padding: 104px 0; } }

.capabilities, .tracking { display: grid; gap: 0 48px; margin-top: 40px; }
.tracking { margin-top: 0; }
.capability { padding: 24px 0 26px; border-top: 2px solid var(--navy); }
.capability h3 { font-size: 1.25rem; }
.capability p { margin-top: 8px; color: var(--navy-2); max-width: 34em; }
.tracking .capability { border-top-color: var(--terra); }
@media (min-width: 760px) {
  .capabilities, .tracking { grid-template-columns: 1fr 1fr; }
}

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.125rem;
}
.step p { margin-top: 6px; color: var(--navy-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 68px; }
  .step::before { content: ""; position: absolute; top: 21px; left: 52px; right: -24px; height: 2px; background: var(--mist); }
  .step:last-child::before { display: none; }
}

/* Ecosystem diagram */
.eco { position: relative; display: grid; gap: 14px; margin-top: 40px; padding-left: 22px; }
.eco::before { content: ""; position: absolute; left: 6px; top: 24px; bottom: 24px; width: 2px; background: var(--mist); }
.eco-lines { display: none; }
.eco-node {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.eco-node strong { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--navy); }
.eco-node span { color: var(--muted); font-size: 0.9375rem; }
.eco-center { background: var(--navy); border-color: var(--navy); order: -1; }
.eco-center strong { color: var(--white); font-size: 1.25rem; }
.eco-center span { color: var(--mist); }
.is-soon { border-style: dashed; border-color: var(--mist); background: #FBFAF7; }
.eco-node .soon {
  align-self: flex-start; margin-top: 8px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--mist);
  color: var(--navy-2); font-size: 0.8125rem; font-weight: 600; background: var(--white);
}
@media (min-width: 860px) {
  .eco {
    padding-left: 0; gap: 28px 32px; grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "a . b" ". c ." "d e f";
  }
  .eco::before { display: none; }
  .eco-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .eco-lines path { stroke: var(--navy); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
  .eco-lines .eco-soon { stroke: var(--mist); stroke-dasharray: 6 6; }
  .eco-node { z-index: 1; min-height: 112px; justify-content: center; }
  .eco-center { grid-area: c; text-align: center; align-items: center; min-height: 132px; }
  .eco-a { grid-area: a; } .eco-b { grid-area: b; } .eco-d { grid-area: d; } .eco-e { grid-area: e; } .eco-f { grid-area: f; }
}

/* Compliance, on navy */
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.conf-inner { display: grid; gap: 36px; }
.conf-list { margin: 0; display: grid; gap: 0 48px; }
.conf-list > div { padding: 20px 0; border-top: 1px solid var(--navy-2); }
.conf-list dt { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--white); }
.conf-list dd { margin: 6px 0 0; color: var(--mist); }
@media (min-width: 900px) {
  .conf-inner { grid-template-columns: 4fr 7fr; }
  .conf-list { grid-template-columns: 1fr 1fr; }
}

/* Subscription */
.sub-inner { display: grid; gap: 28px; align-items: center; }
.sub-text { margin-top: 14px; color: var(--navy-2); max-width: 40em; }
@media (min-width: 900px) { .sub-inner { grid-template-columns: 1fr auto; gap: 64px; } }

/* FAQ */
.faq-inner { display: grid; gap: 28px; }
.faq details { border-top: 1px solid var(--mist); }
.faq details:last-child { border-bottom: 1px solid var(--mist); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--navy-2); max-width: 40em; }
@media (min-width: 900px) { .faq-inner { grid-template-columns: 4fr 7fr; } }

/* Demo form */
.demo { background: var(--white); }
.demo:focus { outline: none; }
.demo-inner { display: grid; gap: 36px; }
.demo-copy p { margin-top: 14px; color: var(--navy-2); max-width: 30em; }
.demo-copy .demo-alt { color: var(--ink); }
.demo-panel { background: var(--ivory); border-radius: var(--radius-m); padding: 24px 20px; }
@media (min-width: 900px) {
  .demo-inner { grid-template-columns: 4fr 7fr; gap: 56px; }
  .demo-panel { padding: 36px; }
}
.noscript-notice { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--white); border-left: 4px solid var(--terra); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px 20px; }
.form fieldset:disabled { opacity: 0.7; }
.form-hint { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 640px) {
  .form fieldset { grid-template-columns: 1fr 1fr; }
  .form-hint, .field-full, .form-status, .form .btn { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #9FB3C8; border-radius: var(--radius-s); padding: 11px 12px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--terra-ink); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #A3301F; box-shadow: inset 0 0 0 1px #A3301F; }
.field-error { color: #A3301F; font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--terra-ink); }
.field-check label { font-weight: 400; font-size: 0.9375rem; }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: var(--radius-s); background: var(--white); border-left: 4px solid #A3301F; font-size: 0.9688rem; }
.form .btn { justify-self: start; }
.success { padding: 28px 24px; background: var(--white); border-radius: var(--radius-m); border-left: 4px solid var(--ok); }
.success p { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.success:focus { outline: 3px solid var(--terra-ink); outline-offset: 3px; }

/* Simple pages: merci, confidentialite */
.page { padding: 56px 0 88px; background: var(--ivory); }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.prose { max-width: 44em; }
.prose h2 { font-size: 1.375rem; margin-top: 36px; }
.prose p, .prose ul { margin-top: 12px; color: var(--navy-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.page .lead { max-width: 34em; }
.page-actions { margin-top: 28px; }
.notice-version { margin-top: 36px; font-weight: 600; color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: var(--mist); padding: 48px 0; font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 24px; }
.legal { display: grid; gap: 8px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--terra-light); }
.site-footer strong { color: var(--white); font-weight: 600; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr; gap: 64px; align-items: start; } }
