@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f8f7;
  --mint: #e3eeea;
  --mint-deep: #cfe2db;
  --ink: #15292d;
  --ink-soft: #4a5e61;
  --line: #c9d7d2;
  --jade: #0e6e62;
  --jade-dark: #0a564d;
  --white: #ffffff;
  --tram-a: #e2001a;
  --tram-c: #f29400;
  --tram-e: #8f71b3;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jade); text-underline-offset: 3px; }
a:hover { color: var(--jade-dark); }
:focus-visible { outline: 3px solid var(--tram-c); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 247, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; margin-right: auto; }
.brand strong { display: block; font-size: 1.08rem; font-weight: 750; letter-spacing: -0.01em; }
.brand span { font-size: .86rem; color: var(--ink-soft); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav a:hover { color: var(--jade); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 650; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--jade); color: var(--white); }
.btn-primary:hover { background: var(--jade-dark); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: .94rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 32px; margin: 0; justify-content: start; }
.facts dt { font-size: .85rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 650; }
.hero-visual { position: relative; }
.hero-visual .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }

/* Transit card: the signature element */
.transit {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 18px 40px -24px rgba(21, 41, 45, .45);
}
.hero .transit { position: absolute; left: -36px; bottom: 28px; max-width: 300px; }
.transit-title { font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stops li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lines { display: inline-flex; gap: 4px; }
.line {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--white); font-weight: 800; font-size: .9rem; line-height: 1;
}
.line-a { background: var(--tram-a); }
.line-c { background: var(--tram-c); color: var(--ink); }
.line-e { background: var(--tram-e); }
.line-bus { border-radius: 7px; width: auto; min-width: 34px; padding: 0 6px; background: var(--ink); }

/* Photo placeholders and photos */
.photo { width: 100%; overflow: hidden; background: var(--mint-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--ink-soft); font-size: .92rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.35) 14px 15px),
    var(--mint-deep);
}

/* Sections */
section { scroll-margin-top: 80px; }
.band { padding: 80px 0; }
.band-mint { background: var(--mint); }
.band-ink { background: var(--ink); color: #e9f0ee; }
.band-ink a { color: #9fd9cd; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.band-ink .section-head p { color: #b7c7c4; }

/* Publics */
.publics { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.publics-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.publics-list li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; break-inside: avoid; }

/* Specialties */
.specs { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.spec { border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; }
.spec p { flex: 1; }
.spec-jaw { background: var(--ink); color: #e9f0ee; }
.spec-jaw p { color: #c3d2cf; }
.spec-jaw .btn-ghost { border-color: #e9f0ee; color: #e9f0ee; }
.spec-jaw .btn-ghost:hover { background: #e9f0ee; color: var(--ink); }
.spec-sport { background: var(--mint); }
.spec h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.spec .btn { align-self: flex-start; margin-top: 12px; }

/* Cabinet photos */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.gallery .photo { border-radius: var(--radius-lg); height: clamp(260px, 32vw, 420px); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }

/* Timeline (parcours) */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(233, 240, 238, .18); }
.timeline .year { font-weight: 750; font-size: 1.1rem; color: #9fd9cd; }
.timeline p { margin: 0; }
.timeline .muted { color: #b7c7c4; font-size: .96rem; }

/* Practical info */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px; }
.info h3 { font-size: 1.15rem; }
.price { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.price:first-of-type { border-top: 0; }
.price strong { font-size: 1.2rem; white-space: nowrap; }
.note { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours td { text-align: right; font-weight: 650; white-space: nowrap; }

/* Access */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.address { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin-bottom: 20px; font-style: normal; }
.access .transit { box-shadow: none; margin: 0 0 24px; }
.access .photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--jade); }
.checklist li.warn::before { background: var(--tram-c); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 650; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }

/* CTA band */
.cta-band { padding: 72px 0; background: var(--jade); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .btn-primary { background: var(--white); color: var(--jade-dark); }
.cta-band .btn-primary:hover { background: var(--ink); color: var(--white); }
.cta-band .btn-ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--jade-dark); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.page-hero { padding: 56px 0 40px; }
.page-hero .hero-lead { max-width: 60ch; }
.breadcrumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.prose > * { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--mint); border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b7c7c4; padding: 56px 0 120px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer strong { color: var(--white); display: block; margin-bottom: 8px; font-size: 1.05rem; }
.site-footer a { color: #e9f0ee; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 .5em; }
.emergency { grid-column: 1 / -1; border-top: 1px solid rgba(233, 240, 238, .15); padding-top: 24px; font-size: .9rem; }

/* Mobile sticky actions */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap, .publics, .specs, .access { grid-template-columns: 1fr; }
  .hero .wrap { gap: 40px; }
  .hero-visual { max-width: 460px; }
  .hero .transit { left: auto; right: -8px; bottom: -20px; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .site-header .btn { display: none; }
  .hero { padding: 32px 0 56px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .band { padding: 56px 0; }
  .spec { padding: 28px 24px; }
  .publics-list { columns: 1; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .hero .transit { position: relative; z-index: 2; left: auto; right: auto; bottom: auto; max-width: none; margin: -48px 12px 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 248, 247, .96); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 13px 16px; }
}
.band-mint .callout { background: var(--white); }
.prose > h2:first-child { margin-top: 0; }
.gallery .photo img { object-position: center 75%; }
