:root {
  color-scheme: dark;
  font: 100%/1.55 system-ui, -apple-system, sans-serif;
  --base: #151b1e;
  --panel: #1c2529;
  --input: #10191d;
  --ink: #f5f3eb;
  --muted: #bac6c5;
  --line: #3c4a4e;
  --teal: #8be2d5;
  --orange: #ff9e6a;
  --orange-ink: #241811;
  --race-photo: url('/install-media/competition.jpg');
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--base); color: var(--ink); }
a { color: var(--teal); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
[id] { scroll-margin-top: 12px; }
.wrap { width: min(1120px, calc(100% - 2 * clamp(16px, 5.5vw, 64px))); margin-inline: auto; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(1.35rem, 2.8vw, 2.05rem); line-height: 1.13; letter-spacing: -.038em; }
h3 { font-size: 1.06rem; line-height: 1.23; }
p + p { margin-top: .65em; }
img { max-width: 100%; }
.top { background: #11191d; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 65px; padding-block: 8px; }
.wordmark { width: clamp(110px, 27vw, 153px); margin-inline-end: auto; }
.wordmark svg { display: block; width: 100%; height: auto; }
.app-version { font: 650 .8rem ui-monospace, monospace; color: var(--muted); }
.language-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; }
.language-switch button {
  min-width: 44px; min-height: 44px; padding-inline: 5px; background: transparent;
  color: var(--muted); border: 0; border-radius: 6px; font: 700 .88rem system-ui, sans-serif;
}
.language-switch button[aria-pressed="true"] { background: var(--teal); color: #142624; }

.hero {
  display: grid; position: relative; isolation: isolate; overflow: hidden; align-items: center;
  min-height: clamp(410px, 49vw, 560px); background: #121b1b;
}
.race-scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.race-scene::before, .stands::before {
  content: ""; position: absolute; inset: 0 0 auto; width: 100%; height: 200%;
  background: var(--race-photo) 73% top / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#101717fa 0%,#101717e8 24%,#10171786 47%,#10171705 71%), linear-gradient(0deg,#151a1b80,transparent 35%);
}
.hero-copy { padding-block: clamp(30px, 6.5vw, 78px); }
.category { color: var(--teal); font-size: .88rem; font-weight: 770; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin: .16em 0 .22em; font-size: clamp(2.25rem, 6.2vw, 4.65rem); line-height: 1; letter-spacing: -.064em; }
.hero h1 span { display: block; color: var(--orange); }
.hero-copy > p:not(.category) { max-width: 32ch; font-size: clamp(1rem, 1.8vw, 1.18rem); color: #eee9e0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; margin-top: 20px; }
.hero-actions form { margin: 0; }
.text-action { display: inline-flex; min-height: 44px; align-items: center; font-weight: 690; }
.catalogue-link { color: var(--muted); }
button, summary { cursor: pointer; }
button, input, .button { font: inherit; }
.button, button[type="submit"] {
  display: inline-flex; justify-content: center; align-items: center; text-align: center;
  min-height: 46px; padding: 9px 16px; color: var(--orange-ink); background: var(--orange);
  border: 1px solid transparent; border-radius: 9px; font-weight: 780; text-decoration: none;
}
.button:hover, button[type="submit"]:hover { background: #ffb184; }
button:disabled { opacity: .7; }
.button.secondary {
  background: var(--input); color: var(--ink); border-color: var(--line);
}
.button.secondary:hover { border-color: var(--teal); }

.page-content { display: grid; gap: clamp(22px, 3.4vw, 44px); padding-block: clamp(22px, 4.2vw, 50px); }
.access-area { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.panel, .fold { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; }
.access-panel { padding: clamp(16px, 2.6vw, 26px); border-left: 3px solid var(--orange); }
.access-panel > p { margin-top: 7px; color: var(--muted); }
.access-panel .button { margin-top: 11px; }
.access-panel .counter { font-size: .9rem; }
form { max-width: 38rem; margin-top: 12px; }
input {
  display: block; width: 100%; min-height: 46px; padding: 8px 12px;
  color: var(--ink); background: var(--input); border: 1px solid #596b70; border-radius: 8px;
}
.privacy, .guide-caption, .hint, footer { color: var(--muted); }
.privacy, .guide-caption { font-size: .9rem; }
.privacy strong { color: var(--ink); }
.error { color: #ffd6ad; }

#guide-installation > p { margin: 8px 0 12px; color: var(--muted); }
.platform-guides, .access-notes { display: grid; gap: 8px; }
.platform-guides + .fold { margin-top: 8px; }
.fold { padding-inline: clamp(11px, 2vw, 19px); border-left: 3px solid var(--fold-accent, var(--teal)); }
#android { --fold-accent: #b2e3b4; }
#iphone { --fold-accent: #9fd2fd; }
#depuis-facebook { --fold-accent: #d8c1f4; }
#versions { --fold-accent: #ffc682; }
.fold > summary, .browser-guide > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  list-style: none; color: var(--ink); font-weight: 750;
}
.fold > summary { min-height: 52px; }
summary::-webkit-details-marker { display: none; }
.fold > summary::after, .browser-guide > summary::after {
  content: ""; display: block; flex: none; width: 7px; height: 7px; margin-inline-start: auto;
  color: var(--fold-accent, var(--teal)); border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.fold[open] > summary::after, .browser-guide[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.fold[open] { padding-bottom: 15px; }
.manual-content ol, .compact-steps { padding-left: 22px; margin: 8px 0 0; }
li + li { margin-top: 5px; }
.browser-guides { display: grid; gap: 7px; margin-top: 12px; }
.browser-guide {
  padding-inline: 11px; border: 1px solid var(--line); border-radius: 8px; background: #182125;
  min-width: 0;
}
.browser-guide[open] { padding-bottom: 11px; }
.browser-guide .hint { margin-top: 9px; }
.steps {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; list-style: none;
  counter-reset: step; padding: 0; margin: 11px 0;
}
.steps > li {
  margin: 0; padding: 11px; counter-increment: step; background: var(--input);
  border: 1px solid var(--line); border-radius: 9px;
}
.steps h3 { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 4px; }
.steps h3::before { content: counter(step); color: var(--teal); font-weight: 800; }
.steps p { color: var(--muted); }
.steps strong { color: var(--ink); }
.mock {
  display: grid; align-content: center; gap: 5px; min-height: 102px; padding: 7px;
  background: #111e22; border: 1px solid #42555a; border-radius: 7px; font-size: .875rem; line-height: 1.3;
}
.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 26px;
  padding: 4px 7px; border-radius: 4px; background: #22333a;
}
.mock-focus { color: var(--teal); border: 1px solid var(--teal); font-weight: 760; }
.mock-quiet { color: var(--muted); }
.mock-center { justify-content: center; text-align: center; }
.mock-icon { border-radius: 7px; }
.share-icon { width: 17px; height: 20px; flex: none; }
.phone-help { margin-top: 12px; color: var(--muted); }
.phone-help summary { min-height: 44px; align-content: center; color: var(--teal); font-weight: 710; }
.phone-help p { margin-top: 6px; }
.copy-area { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.copy-area input { max-width: 31rem; }
.success { display: flex; align-items: center; gap: 10px; }
.guide-caption { margin-top: 11px; }
.release-list { list-style: none; padding: 0; margin: 8px 0 0; }
.release-list li { border-top: 1px solid var(--line); padding-block: 10px; margin: 0; }
.release-list h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 11px; }
.release-list h3 strong { color: var(--teal); }
.release-list time { color: var(--muted); font-size: .9rem; font-weight: 500; }
.release-list p { margin-top: 4px; }

.catalogue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.catalogue-grid .panel { padding: clamp(13px,2.6vw,22px); }
.catalogue-grid p { margin-top: 7px; color: var(--muted); }
.brand-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 9px 0 0; list-style: none; }
.brand-list li { margin: 0; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(9px, 2vw, 19px); margin-top: 15px; }
.gallery figure {
  display: grid; justify-items: center; grid-template-rows: auto 1fr; align-items: start;
  gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line);
  border-top: 3px solid var(--shot-accent,var(--teal)); border-radius: 12px; background: var(--panel);
}
.gallery figure:nth-child(2) { --shot-accent: var(--orange); }
.gallery figure:nth-child(3) { --shot-accent: #b2ccf9; }
.gallery figure img {
  display: block; width: min(100%,244px); height: auto; border-radius: 16px;
  border: 4px solid #10171b; box-shadow: 0 0 0 1px #697375;
}
.gallery figcaption { width: min(100%,244px); }
.gallery p { margin-top: 5px; color: var(--muted); }
.stands { position: relative; min-height: clamp(145px, 23vw, 270px); overflow: hidden; border-radius: 12px; background: #3b3029; }
.stands::before { inset: auto 0 0; background-position: center bottom; }
footer { padding-block: 13px; border-top: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 740px) {
  .hero { grid-template-rows: auto auto; min-height: 0; }
  .hero::after { display: none; }
  .hero-copy { grid-row: 1; padding-block: 28px 19px; }
  .race-scene { grid-row: 2; position: relative; z-index: auto; min-height: clamp(150px, 44vw, 285px); }
  .steps { grid-template-columns: minmax(0,1fr); }
  .steps > li { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 9px; align-items: start; }
  .steps h3 { margin-top: 0; }
}
@media (max-width: 540px) {
  .steps > li { display: block; }
  .steps h3 { margin-top: 7px; }
  .mock { min-height: 0; }
  .catalogue-grid, .gallery { grid-template-columns: minmax(0,1fr); }
  .gallery figure { grid-template-columns: minmax(90px,2fr) minmax(0,3fr); grid-template-rows: auto; align-items: center; padding: 11px; }
}
