/* BusPlay by iiker — vitrine.
   Parti pris assumé : un seul thème, sombre. C'est un produit de
   divertissement, et l'interface que découvriront les passagers l'est aussi. */

:root {
  --ink: #080B11;
  --ink-2: #0D1119;
  --panel: #141A25;
  --panel-2: #1B2231;
  --line: #222B3A;
  --text: #EFF2F7;
  --dim: #8B95A6;
  --dim-2: #5F6878;
  --accent: #FF9E1B;
  --accent-2: #FF7A00;
  --accent-ink: #170F02;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gut: clamp(20px, 5vw, 64px);
  --measure: 60ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.shell { max-width: 1140px; margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow.muted { color: var(--dim-2); }

h2 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.032em;
  font-weight: 800;
  margin: 0 0 18px;
  text-wrap: balance;
}

.sub { color: var(--dim); max-width: var(--measure); font-size: 17px; margin: 0; }

/* ------------------------------------------------------------------ barre */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 17, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.topbar.scrolled { border-bottom-color: var(--line); }

.topbar .shell {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mk { color: var(--accent); display: inline-flex; line-height: 0; }
.brand .nm { font-weight: 800; letter-spacing: -.03em; font-size: 19px; }
.brand .by {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim-2);
  display: block;
  margin-top: 1px;
}

.spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  white-space: nowrap;
}

.btn:hover { border-color: var(--dim-2); background: var(--panel); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------- héros */

.hero { position: relative; padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); }

/* Halo ambré : la seule ornementation de la page. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto 50%;
  width: min(1000px, 130vw);
  height: 700px;
  translate: -50% 0;
  background: radial-gradient(ellipse at center, rgba(255, 158, 27, .13), transparent 66%);
  pointer-events: none;
}

.hero .shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.042em;
  font-weight: 800;
  margin: 0 0 22px;
  text-wrap: balance;
}

h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--dim);
  max-width: 46ch;
  margin: 0 0 34px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--dim-2);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-note .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ------------------------------------------------ maquette de l'interface */

.device-wrap { display: grid; place-items: center; }

.device {
  width: min(290px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--ink-2);
  border: 8px solid #1A2130;
  border-radius: 36px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.device::after {
  content: "";
  position: absolute;
  top: 9px; left: 50%; translate: -50% 0;
  width: 74px; height: 5px;
  border-radius: 3px;
  background: #232B3A;
}

.scr-hero {
  height: 40%;
  background:
    linear-gradient(to top, var(--ink-2) 4%, transparent 62%),
    linear-gradient(128deg, #3A2A12, #7A4A0C 52%, #2A1B31);
  padding: 22px 15px 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.scr-tag {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.scr-title { font-size: 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }

.scr-meta { font-size: 8px; color: var(--dim); }

.scr-play {
  margin-top: 4px;
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 8.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.scr-body { padding: 13px 0 0 15px; display: flex; flex-direction: column; gap: 11px; }

.scr-row-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.scr-row { display: flex; gap: 7px; }

.scr-card {
  width: 46px;
  height: 64px;
  border-radius: 5px;
  flex-shrink: 0;
  background: linear-gradient(150deg, #24304A, #161C29);
  border: 1px solid rgba(255, 255, 255, .05);
}

.scr-card:nth-child(2) { background: linear-gradient(150deg, #4A3320, #241A12); }
.scr-card:nth-child(3) { background: linear-gradient(150deg, #1E3A38, #12211F); }
.scr-card:nth-child(4) { background: linear-gradient(150deg, #3A2038, #22131F); }

.scr-row.sm .scr-card { width: 38px; height: 38px; border-radius: 50%; }

/* ------------------------------------------------------------- sections */

section { padding: clamp(56px, 9vw, 100px) 0; }

.band { border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* --------------------------------------------------------------- étapes */

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }

.step { background: var(--ink-2); padding: 26px 26px 28px; display: grid; gap: 10px; }

.step .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}

.step h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------ avantages */

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 40px;
}

.feat {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 24px 26px;
  transition: border-color .25s ease, transform .25s ease;
}

.feat:hover { border-color: #2E3A4D; transform: translateY(-2px); }

.feat .ico { color: var(--accent); margin-bottom: 14px; display: block; line-height: 0; }
.feat h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -.02em; }
.feat p { margin: 0; color: var(--dim); font-size: 15px; }

/* ------------------------------------------------------------- chiffres */

.figures {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.fig { background: var(--ink-2); padding: 28px 24px; }

.fig .v {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}

.fig .k { color: var(--dim); font-size: 14.5px; }

/* ----------------------------------------------------------- marque blanche */

.wl {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 36px;
}

.wl-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--ink-2);
}

.wl-bar {
  height: 34px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.wl-card p { margin: 0; font-size: 14px; color: var(--dim); }

/* -------------------------------------------------------------- clôture */

.close {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 158, 27, .1), transparent 60%),
    var(--ink-2);
  padding: clamp(34px, 6vw, 60px);
  text-align: center;
}

.close h2 { margin-bottom: 14px; }
.close .sub { margin: 0 auto 28px; }

/* --------------------------------------------------------------- pied */

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }

footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--dim-2);
}

footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ------------------------------------------------------------ animation */

/* Le masquage n'existe QUE sous `.anim`, classe posee par un script en tete de
   page. Sans JavaScript — ou si le script casse — le contenu reste visible.
   Masquer par defaut et reveler par script rendrait la page blanche au moindre
   incident, et invisible aux moteurs de recherche. */
.anim .rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.anim .rise.in { opacity: 1; transform: none; }

/* Les barres de la marque montent comme un vu-mètre : la traînée du logo est
   littéralement le mouvement du véhicule. Décorative, donc jamais bloquante. */
@keyframes meter {
  0%, 100% { transform: scaleY(.62); }
  50%      { transform: scaleY(1); }
}

.brand .mk .b1, .brand .mk .b2 { transform-origin: 32px center; }
.topbar .brand:hover .mk .b1 { animation: meter 1.05s ease-in-out infinite; }
.topbar .brand:hover .mk .b2 { animation: meter 1.05s ease-in-out .18s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .rise { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ------------------------------------------------------------ adaptatif */

@media (max-width: 900px) {
  .hero .shell { grid-template-columns: 1fr; }
  .device-wrap { order: -1; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar .brand .by { display: none; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}
