/* ==========================================================================
   CYBERBEAST.CH
   Dark cold-luxury automotive. Sharp corners everywhere (Cybertruck geometry).
   1 accent: Swiss red. Clash Display + Satoshi.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --bg-3: #17171a;
  --ink: #f1f1ee;
  --muted: #a3a3a8;
  --line: rgba(255, 255, 255, 0.09);
  --red: #d92d23;
  --red-deep: #b1201a;
  --display: "Clash Display", "Arial Narrow", sans-serif;
  --body: "Satoshi", -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* z-scale: 10 nav / 50 funnel */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

::selection { background: var(--red); color: #fff; }

/* ---------- type scale ---------- */

.h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.body {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.06rem;
}

.accent { color: var(--red); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- buttons (sharp, angular) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-red {
  background: var(--red);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn-red:hover { background: var(--red-deep); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); }

.btn-lg { padding: 1.05rem 2.6rem; font-size: 1.02rem; }
.btn-nav { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

/* ---------- swiss mark ---------- */

.swiss-mark {
  width: 16px; height: 16px;
  background: var(--red);
  position: relative;
  flex: 0 0 auto;
}
/* croix aux proportions officielles du drapeau: bras 6 de large, croix 20 sur un carre de 32 */
.swiss-mark::before, .swiss-mark::after {
  content: "";
  position: absolute;
  background: #fff;
}
.swiss-mark::before { left: 50%; top: 18.75%; width: 18.75%; height: 62.5%; transform: translateX(-50%); }
.swiss-mark::after { top: 50%; left: 18.75%; height: 18.75%; width: 62.5%; transform: translateY(-50%); }
.swiss-mark.big { width: 42px; height: 42px; margin-bottom: 1.4rem; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right));
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-brand { display: inline-flex; align-items: center; gap: 0.65rem; }

.nav-word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
}
.nav-word.small { font-size: 0.85rem; letter-spacing: 0.18em; color: var(--muted); }
.tld { color: var(--red); }

.nav-right { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }

.lang { display: flex; border: 1px solid var(--line); }
.lang-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: #fff; background: rgba(255, 255, 255, 0.08); }

#nav-sentinel { position: absolute; top: 90px; height: 1px; width: 1px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 78%;
  filter: saturate(0.55) brightness(0.8) contrast(1.05);
  transform: scale(1.02);
}
.hero-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.15) 35%, rgba(11,11,12,0.88) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.72) 0%, rgba(11,11,12,0) 60%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) clamp(3.5rem, 8vh, 6rem);
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(241, 241, 238, 0.75);
  margin-bottom: 1.3rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 24ch;
}
.hero-title .line { display: block; }
.hero-title .line-2 { color: rgba(241, 241, 238, 0.62); }

.hero-sub {
  margin-top: 1.4rem;
  max-width: 44ch;
  font-size: 1.1rem;
  color: rgba(241, 241, 238, 0.82);
}

.hero-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* hero load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero-title .line, .hero-sub, .hero-ctas {
    opacity: 0;
    transform: translateY(26px);
    animation: rise 0.9s var(--ease) forwards;
  }
  .hero-title .line { animation-delay: 0.12s; }
  .hero-title .line-2 { animation-delay: 0.22s; }
  .hero-sub { animation-delay: 0.34s; }
  .hero-ctas { animation-delay: 0.46s; }
  .hero-img { animation: heroZoom 14s var(--ease) forwards; }
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; }
.sq {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--red);
  margin: 0 2.2rem;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 28s linear infinite; }
}
@keyframes slide { to { transform: translateX(-33.333%); } }

/* ---------- service (sticky split) ---------- */

.service {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3rem);
}

.service-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.service-sticky { position: sticky; top: 7rem; }
.service-sticky .body { margin-top: 1.2rem; }

.model3d { margin-top: 2.6rem; }
.model3d-frame {
  position: relative;
  aspect-ratio: 4 / 3;
}
model-viewer#truck3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
}
.steps { list-style: none; display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step-n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--red);
  min-width: 2ch;
}

.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.step p { color: var(--muted); max-width: 42ch; }

/* ---------- cantons ---------- */

.cantons {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.2rem, 4vw, 3rem);
}
.cantons .body { margin-top: 1rem; }

.canton-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.canton {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.86), rgba(11,11,12,0.62)),
    var(--img) center/cover no-repeat var(--bg-2);
  background-color: #131316;
  background-blend-mode: normal, luminosity;
  aspect-ratio: 3 / 4;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.canton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(224,54,44,0) 60%, rgba(224,54,44,0.22) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.canton:hover::after { opacity: 1; }

.canton-abbr {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.canton-meta { position: relative; z-index: 1; }
.canton-meta h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}
.canton-meta p { color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin-top: 0.3rem; }

/* ---------- safety ---------- */

.safety { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.safety-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.safety-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.safety-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) brightness(0.8) contrast(1.1);
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.safety-media:hover img { transform: scale(1.0); }

.safety-copy .body { margin-top: 1.2rem; }

.safety-list {
  list-style: none;
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
}
.safety-list li { display: flex; flex-direction: column; gap: 0.3rem; padding-left: 1rem; border-left: 2px solid var(--red); }
.safety-list strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.safety-list span { color: var(--muted); font-size: 0.9rem; }

/* ---------- seasons ---------- */

.seasons {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.2rem, 4vw, 3rem);
}

.season-split {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  height: clamp(380px, 60vh, 560px);
}

.season {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-2);
  transition: flex 0.7s var(--ease);
}
.season-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.season::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,12,0.2) 25%, rgba(11,11,12,0.92) 100%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .season-split:hover .season { flex: 0.75; }
  .season-split .season:hover { flex: 1.6; }
}

.season-content { position: relative; z-index: 2; padding: clamp(1.4rem, 3vw, 2.4rem); }
.season-content h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}
.season-content p {
  margin-top: 0.5rem;
  color: rgba(241, 241, 238, 0.85);
  max-width: 38ch;
  font-size: 0.98rem;
}

.season-stats {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}
.stat-l { color: var(--muted); font-size: 0.92rem; }

/* ---------- gmk ---------- */

.gmk {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
}

.gmk-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(224,54,44,0.1), transparent 55%),
    var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.gmk-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gmk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gmk-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px; height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.gmk-play:hover { transform: scale(1.08); background: var(--red); border-color: var(--red); }
.gmk-play svg { margin-left: 4px; }

.gmk-missing {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.gmk-quote { margin-top: 2.6rem; }
.gmk-quote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
}
.gmk-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- faq ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.2rem, 4vw, 3rem);
}

.faq-list { margin-top: 2.4rem; }

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 2.4rem 1.4rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  position: relative;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--red);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--red); }
.faq-item p {
  color: var(--muted);
  padding: 0 2.4rem 1.5rem 0;
  max-width: 64ch;
}

/* ---------- pages guides ---------- */

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem clamp(1.2rem, 4vw, 3rem) 4rem;
}
.article-crumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.article-crumb a:hover { color: var(--ink); }
.article h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.article .lead {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 62ch;
}
.article h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 3rem 0 0.9rem;
}
.article p { color: var(--muted); margin-bottom: 1rem; max-width: 68ch; }
.article ul, .article ol { color: var(--muted); margin: 0 0 1rem 1.2rem; max-width: 66ch; }
.article li { margin-bottom: 0.5rem; }
.article li strong, .article p strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--red); }

.article-cta {
  margin-top: 3.5rem;
  border: 1px solid var(--line);
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.article-cta p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); max-width: 30ch; }
.article-cta .btn { text-decoration: none; }
.article-cta .btn:hover { color: #fff; }

.article-related {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.article-related a { color: var(--muted); text-decoration: none; }
.article-related a:hover { color: var(--ink); }
.article-related a::before { content: "→ "; color: var(--red); }

/* ---------- final cta ---------- */

.final {
  position: relative;
  text-align: center;
  padding: clamp(6rem, 16vh, 11rem) clamp(1.2rem, 4vw, 3rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.final-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,0.6) 50%, var(--bg) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2000&q=70&auto=format&fit=crop') center/cover no-repeat;
  filter: saturate(0.4) brightness(0.55);
}
.final > * { position: relative; }
.final .body { margin: 1.2rem auto 2.4rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.2rem, 4vw, 3rem) 2.4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-mail { color: var(--muted); transition: color 0.2s; }
.footer-mail:hover { color: var(--ink); }
.footer-legal { color: var(--muted); font-size: 0.8rem; max-width: 72ch; }
.footer-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-bottom: 1.6rem;
}
.footer-guides a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-guides a:hover { color: var(--ink); }

.footer-credit { color: rgba(163, 163, 168, 0.45); font-size: 0.72rem; margin-top: 0.5rem; }
.footer-credit a:hover { color: var(--muted); }
.footer-copy { color: rgba(163, 163, 168, 0.55); font-size: 0.8rem; margin-top: 0.8rem; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
}

/* ---------- funnel ---------- */

.funnel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 1.2rem clamp(1.2rem, 5vw, 4rem);
  padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.funnel[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .funnel { animation: funnelIn 0.45s var(--ease); }
  @keyframes funnelIn { from { opacity: 0; transform: translateY(4vh); } }
}

.funnel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.funnel-close { font-size: 2rem; line-height: 1; color: var(--muted); transition: color 0.2s; padding: 0 0.4rem; }
.funnel-close:hover { color: var(--ink); }

.funnel-progress { height: 2px; background: var(--line); margin-top: 0.4rem; }
.funnel-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.5s var(--ease);
}

.funnel-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fstep {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
}
.fstep[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fstep:not([hidden]) { animation: stepIn 0.5s var(--ease); }
  @keyframes stepIn { from { opacity: 0; transform: translateY(26px); } }
}

.fq {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.fchoices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}
.fchoices-4 { grid-template-columns: repeat(5, 1fr); }

.fcard {
  border: 1px solid var(--line);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.fcard:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-3px); }
.fcard-beast:hover { border-color: var(--red); }

.fcard-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}
.fcard-beast .fcard-name { color: var(--red); }

.fcard-spec { display: flex; flex-direction: column; gap: 0.2rem; }
.fcard-spec em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
}
.fcard-spec em small { font-size: 0.45em; font-weight: 500; color: var(--muted); margin-left: 2px; }
.fcard-spec > span { color: var(--muted); font-size: 0.85rem; }

.fcanton {
  border: 1px solid var(--line);
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.fcanton:hover { border-color: var(--red); transform: translateY(-3px); }
.fcanton em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}
.fcanton span { color: var(--muted); font-size: 0.85rem; }
.fcanton-other em { color: var(--muted); }

.phone-row { display: flex; }
.phone-row select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.15rem;
  padding: 0 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s;
}
.phone-row select:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); }
.phone-row input { flex: 1; min-width: 0; }

.ffield {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.ffield label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ffield input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.3rem;
  padding: 1rem 1.1rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s;
}
.ffield input::placeholder { color: rgba(163, 163, 168, 0.55); }
.ffield input:focus { border-color: rgba(255, 255, 255, 0.5); }
.ffield input.is-invalid { border-color: var(--red); }

.ferror { color: var(--red); font-size: 0.85rem; }

.fstep-done .body { max-width: 34ch; }

.funnel-back {
  position: absolute;
  bottom: 1.6rem;
  left: clamp(1.2rem, 5vw, 4rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.funnel-back:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-sticky { position: static; }
  .truck-draw { margin-top: 2rem; }
  .canton-grid { grid-template-columns: 1fr 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  /* --- hero: CTA pleine largeur, composition resserree --- */
  .hero-inner { padding-bottom: max(2.6rem, env(safe-area-inset-bottom)); }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { flex-direction: column; gap: 0.8rem; }
  .hero-ctas .btn { width: 100%; }

  /* --- marquee plus fin --- */
  .marquee { padding: 0.85rem 0; }
  .marquee-track { font-size: 0.78rem; letter-spacing: 0.24em; }
  .sq { width: 7px; height: 7px; margin: 0 1.6rem; }

  /* --- process A-Z --- */
  .truck-draw { margin-top: 1.6rem; }
  .step { gap: 1.1rem; padding: 1.7rem 0; }
  .step-n { font-size: 1.6rem; min-width: 1.6ch; }
  .step h3 { font-size: 1.15rem; }
  .step p { font-size: 0.95rem; }

  /* --- cantons --- */
  .canton { padding: 1.1rem; }
  .canton-abbr { font-size: 2rem; }
  .canton-meta h3 { font-size: 1rem; }
  .canton-meta p { font-size: 0.72rem; }

  /* --- safety --- */
  .safety-list { grid-template-columns: 1fr; gap: 1.4rem; }

  /* --- saisons: panneaux empiles, stats en lignes compactes --- */
  .season-split { flex-direction: column; height: auto; gap: 0.8rem; }
  .season { min-height: 320px; }
  .season-stats { grid-template-columns: 1fr; }
  .stat {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
  }
  .stat-n { font-size: 1.9rem; }
  .stat-l { text-align: right; font-size: 0.85rem; }

  /* --- gmk --- */
  .gmk-play { width: 64px; height: 64px; }
  .gmk-play svg { width: 24px; height: 24px; }

  /* --- cta final --- */
  .final .btn-lg { width: min(100%, 360px); }

  /* --- funnel: cartes horizontales app-like, boutons pleine largeur --- */
  .fchoices { grid-template-columns: 1fr; gap: 0.8rem; }
  .fchoices-4 { grid-template-columns: 1fr 1fr; }
  .fcanton-other { grid-column: 1 / -1; }
  .fcard {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.3rem 1.4rem;
    gap: 1rem;
  }
  .fcard-spec { align-items: flex-end; text-align: right; }
  .fcard-spec em { font-size: 2.4rem; }
  .fcanton { padding: 1.4rem 1rem; }
  .fstep { gap: 1.8rem; }
  .fstep .btn-lg { width: min(100%, 440px); }
  .funnel-back { position: static; margin-top: 1.2rem; align-self: center; padding: 0.6rem 1rem; }
}

@media (max-width: 560px) {
  .nav {
    height: 60px;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  #nav-sentinel { top: 70px; }
  .nav .nav-word { display: none; }
  .nav-right { gap: 0.6rem; }
  .lang-btn { font-size: 0.68rem; padding: 0.7rem 0.55rem; }
  .btn-nav { padding: 0.7rem 0.75rem; font-size: 0.72rem; }
  .swiss-mark { width: 18px; height: 18px; }
}
