/* Site passada.ch — feuille de style unique (accueil, courses, pages légales). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2');
}

:root {
  --navy: #0b1f36;
  --navy-2: #0f2338;
  --navy-line: #22384f;
  --ink: #0b1f36;
  --muted: #536373;
  --muted-on-navy: #a6b8cb;
  --on-navy: #eef4fa;
  --bg: #f2f5f8;
  --paper: #ffffff;
  --soft: #e8eef4;
  --line: #dce3ea;
  --blue: #0b66b8;
  --green: #4df19a;
  --radius: 20px;
  --shadow: 0 24px 48px rgba(11, 31, 54, 0.14);
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 1rem/1.6 'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--blue);
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--green);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.muted {
  color: var(--muted);
}

/* En-tête */
.site-header {
  background: var(--navy);
  color: var(--on-navy);
}
.site-header.light {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav .brand {
  display: flex;
}
.nav .brand img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-weight: 500;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
}
.nav-links a:hover {
  text-decoration: underline;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  color: var(--navy);
  filter: brightness(0.96);
}
.btn.pill {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
}
.btn.dark {
  background: var(--navy);
  color: #fff;
}
.btn.dark:hover {
  color: #fff;
}
@media (max-width: 760px) {
  .nav-links .hide-sm {
    display: none;
  }
}

/* Héros */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  padding-top: 48px;
}
.hero-text {
  flex: 1 1 480px;
  min-width: 0;
  padding-bottom: 72px;
}
.hero .eyebrow {
  color: var(--green);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero .lead {
  margin: 24px 0 0;
  font-size: 1.2rem;
  color: var(--muted-on-navy);
  max-width: 34rem;
}
.hero-phones {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  height: 560px;
  overflow: hidden;
}
.hero-phones .phone {
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border-bottom: 0;
}
.hero-phones .back {
  width: 250px;
  height: 470px;
  border-radius: 36px 36px 0 0;
  border: 8px solid var(--navy-line);
  border-bottom: 0;
}
.hero-phones .front {
  width: 280px;
  height: 540px;
  border-radius: 40px 40px 0 0;
  border: 8px solid #3a5675;
  border-bottom: 0;
}
.hero-phones img {
  display: block;
  width: 100%;
}
@media (max-width: 760px) {
  .hero-phones {
    height: 420px;
  }
  .hero-phones .back {
    display: none;
  }
  .hero-text {
    padding-bottom: 24px;
  }
}
.on-navy-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted-on-navy);
}
.on-navy-link {
  color: var(--green);
  font-weight: 600;
}
.on-navy-link:hover {
  color: #fff;
}
.compat {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.88rem;
  color: var(--muted-on-navy);
}
.compat strong {
  color: var(--on-navy);
  font-weight: 600;
}

/* Liste d'attente */
.waitlist {
  margin: 36px 0 0;
  max-width: 34rem;
}
.waitlist .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.waitlist input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--navy-line);
  background: var(--navy-2);
  color: var(--on-navy);
  font: inherit;
}
.waitlist input::placeholder {
  color: #8ea3b8;
}
.waitlist .btn {
  min-height: 52px;
}
.waitlist .hp {
  position: absolute;
  left: -5000px;
}
.waitlist .status {
  margin: 12px 0 0;
  min-height: 1.6em;
  font-weight: 500;
}
.waitlist .status.ok {
  color: var(--green);
}
.waitlist .status.err {
  color: #ffb4a6;
}
.waitlist .consent {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted-on-navy);
}
.waitlist .consent a {
  color: var(--on-navy);
}

/* Bande cantons */
.band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.band p {
  margin: 0;
  font-weight: 600;
}
.chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li a,
.chips li span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.chips li a:hover {
  background: var(--line);
}

/* Sections */
.section {
  padding-top: 88px;
  padding-bottom: 32px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.section-white {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
}
.section-white h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.section-white .wrap,
.section-white .wrap-narrow {
  padding-top: 88px;
  padding-bottom: 88px;
}
.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.steps .num {
  margin: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps h3 {
  margin: 20px 0 8px;
  font-size: 1.2rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
  margin-top: 96px;
}
.feature.reverse {
  flex-wrap: wrap-reverse;
}
.feature-text {
  flex: 1 1 420px;
  min-width: 0;
}
.feature h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0;
}
.feature-text > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.feature ul {
  margin: 20px 0 0;
  padding-left: 20px;
}
.shot {
  flex: 0 1 300px;
  margin: 0 auto;
  border-radius: 40px;
  border: 8px solid var(--navy);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.section-head p {
  margin: 10px 0 0;
}

/* Cartes de course */
.race-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.race-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}
.race-card:hover {
  border-color: var(--blue);
  color: var(--ink);
}
.section-white .race-card {
  background: var(--bg);
}
.race-card .where {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.race-card h3 {
  margin: 6px 0 4px;
  font-size: 1.25rem;
}
.race-card .date {
  margin: 0;
  color: var(--muted);
}
.race-card .dist {
  margin: 16px 0 0;
  font-size: 0.92rem;
}
.race-card .more {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
}
.canton-block {
  margin-top: 56px;
}
.canton-block h2 {
  font-size: 1.6rem;
}

/* Prix */
.prices {
  margin: 48px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.price {
  position: relative;
  border-radius: 24px;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.price.best {
  background: var(--navy);
  color: var(--on-navy);
  border-color: var(--navy);
}
.price h3 {
  margin: 0;
  font-size: 1.1rem;
}
.price .amount {
  margin: 16px 0 0;
}
.price .amount strong {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
}
.price .per {
  color: var(--muted);
}
.price.best .per,
.price.best .note {
  color: var(--muted-on-navy);
}
.price .note {
  margin: 12px 0 0;
  color: var(--muted);
}
.price .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
  background: var(--green);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.center {
  text-align: center;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Bloc d'appel */
.cta {
  margin-top: 72px;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 28px;
  padding: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.cta > div {
  flex: 1 1 360px;
}
.cta > div > p {
  margin: 10px 0 0;
  color: var(--muted-on-navy);
}
.cta .waitlist {
  flex: 1 1 380px;
  margin: 0;
}

/* Page course */
.page {
  padding-top: 32px;
  padding-bottom: 96px;
}
.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
}
.crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}
.race-hero {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.race-hero > div:first-child {
  flex: 1 1 560px;
  min-width: 0;
}
.race-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.race-hero .lead {
  margin: 20px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}
.facts {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.facts div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.facts dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}
.facts dd.small {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}
.race-hero .shot {
  flex: 0 1 280px;
}
@media (max-width: 760px) {
  .race-hero .shot {
    display: none;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.block {
  margin-top: 72px;
}
.block h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.dist-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.dist-grid .card h3 {
  margin: 0;
  font-size: 1.35rem;
}
.dist-grid .card .sub {
  margin: 4px 0 0;
  color: var(--muted);
}
.dist-grid .card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}
.dist-grid .card.main {
  border: 2px solid var(--blue);
}
.two-col {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.two-col h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.two-col ul {
  margin: 16px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card.dark {
  background: var(--navy);
  color: var(--on-navy);
  border-color: var(--navy);
}
.card.dark ul {
  color: #d5e1ec;
}
.disclaimer {
  margin: 40px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Pages légales */
.legal {
  padding-top: 40px;
  padding-bottom: 72px;
}
.legal article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}
.legal h2 {
  margin: 36px 0 8px;
  font-size: 1.35rem;
}
.legal h3 {
  margin: 24px 0 6px;
  font-size: 1.08rem;
}
.legal .meta {
  color: var(--muted);
  font-size: 0.92rem;
}
.legal .note {
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
}
.legal .table-scroll {
  overflow-x: auto;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 8px 0;
}
.legal .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

/* Pied de page */
.site-footer {
  background: var(--navy);
  color: var(--muted-on-navy);
}
.site-footer .wrap.top {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.site-footer img {
  height: 36px;
  width: auto;
}
.site-footer p {
  margin: 12px 0 0;
}
.site-footer a {
  color: var(--on-navy);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}
.site-footer .bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.85rem;
}
.site-footer .bottom p {
  margin: 0;
}
