/* VAMO — pages de l'ancienne application de covoiturage.
   Feuille unique, sans police ni ressource externe. */

:root {
  --ink: #222222;
  --muted: #646464;
  --gold-text: #80651d;
  --gold: #c6b383;
  --gold-soft: #f4eedf;
  --ivory: #ece2cc;
  --cream: #f8f5ef;
  --band: #f1eee8;
  --line: #e9e6df;
  --line-strong: #cfc8ba;
  --white: #ffffff;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  flex: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--ivory);
  color: var(--ink);
}

.anywhere {
  overflow-wrap: anywhere;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* Mise en page */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* En-tête */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  padding: 6px 0;
}
.brand img {
  height: 28px;
  width: auto;
}

/* Bandeau de titre */
.band {
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.band-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: 32px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumbs a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid #d6d1c7;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.lede + .lede {
  margin-top: 4px;
}

/* Contenu */
.content {
  padding-top: clamp(32px, 4.5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.content-white {
  background: var(--white);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal .block > p + p,
.legal .block > p + ul,
.legal .block > ul + p {
  margin-top: 0;
}

.block-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal {
  font-size: 16px;
  line-height: 1.7;
}
.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 22px;
  margin-bottom: 8px;
}
.legal ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal li::marker {
  color: var(--gold-text);
}
.legal strong {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 15px;
}

/* Cartes */
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.card-key {
  gap: 16px;
  border: 2px solid var(--gold);
  box-shadow: 0 1px 0 var(--line);
}

/* Étapes numérotées */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  counter-increment: etape;
}
.steps li::before {
  content: counter(etape);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.steps p {
  min-width: 0;
  padding-top: 2px;
}

/* Liens */
.text-link {
  color: var(--gold-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover {
  opacity: 0.78;
}

.more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  color: var(--gold-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.more:hover {
  opacity: 0.78;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  opacity: 0.86;
}
.button span {
  overflow-wrap: anywhere;
}

/* Note d'archive */
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
}
.note svg {
  margin-top: 2px;
  color: var(--muted);
}
.note-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.note-title {
  font-size: 15px;
  font-weight: 600;
}
.note-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.archive-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.archive-sub {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.archive-date {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.part-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-soft);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.contact-box {
  padding: 20px;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--cream);
}

.closing {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.signature {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Accueil */
.home-main {
  display: flex;
  align-items: center;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(40px, 8vh, 96px);
}
.home-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.home-logo {
  align-self: flex-start;
  height: 48px;
  width: auto;
}
.home-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.home-card {
  gap: 12px;
  padding: 22px 20px;
}
.home-card .block-title {
  font-size: 19px;
}
.link-list {
  display: flex;
  flex-direction: column;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.link-list li {
  border-bottom: 1px solid var(--line);
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-list svg {
  flex: none;
  color: var(--gold-text);
}
.contact-line {
  color: var(--muted);
  font-size: 15px;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .site-header .container {
    min-height: 76px;
  }
  .brand img {
    height: 34px;
  }
  .card {
    padding: 24px;
  }
  .card-key {
    padding: 26px 28px;
  }
  .note {
    padding: 16px 20px;
  }
  .home-logo {
    height: 60px;
  }
  .home-card {
    padding: 26px 28px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
  body,
  .band,
  .content-white {
    background: #ffffff;
  }
}
