/* Page publique d'une sortie (maquette 3) : mêmes couleurs et polices que
   l'appli (docs/design.md). L'accent de la saison est posé par la page
   (--accent, --accent-text, --pill). */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --background: #EEF2EA;
  --surface: #FFFFFF;
  --border: #DDE5D8;
  --text: #1F2A22;
  --text-secondary: #556358;
  --accent: #C8622D;
  --accent-text: #8E3F17;
  --pill: #F7E2D4;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

body { padding-bottom: 150px; }

h1, h2, .brand, .figures .value {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 20px;
  background: var(--background);
}
.brand { font-size: 26px; }
.open {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.art {
  max-width: 600px;
  /* Les proportions du dessin (traceSvg) : rien n'est rogné. */
  aspect-ratio: 390 / 230;
  margin: 0 auto;
  overflow: hidden;
}
.art svg { display: block; width: 100%; height: 100%; }

.sheet {
  position: relative;
  max-width: 600px;
  margin: -24px auto 0;
  padding: 24px 20px 8px;
  border-radius: 24px 24px 0 0;
  background: var(--background);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
}

.pill {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
}

h1 { margin: 0; font-size: 32px; line-height: 1.15; }
h2 { margin: 8px 0 -6px; font-size: 22px; }

.place {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--text);
  font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.organizer { display: flex; align-items: center; gap: 14px; }
.name { font-weight: 600; font-size: 17px; }
.role { color: var(--text-secondary); font-size: 15px; }

.card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
}

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}
.figures .value { font-size: 22px; }
.figures .label { color: var(--text-secondary); font-size: 14px; }

.places { display: flex; align-items: center; gap: 16px; }
.stack { display: flex; padding-left: 8px; }
.stacked { margin-left: -8px; border: 2px solid var(--surface); }
.more { background: var(--background); color: var(--text-secondary); font-size: 14px; }
.places > div:last-child { flex: 1; min-width: 0; }

.program { font-size: 17px; line-height: 1.55; }

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.note .icon { margin-top: 2px; color: var(--text-secondary); }

.closed h1 { margin-top: 4px; }
.closed-outing { display: flex; flex-direction: column; gap: 2px; }

.cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.cta > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.button {
  display: block;
  padding: 16px;
  border-radius: 999px;
  background: var(--accent-text);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.small { margin-top: 8px; color: var(--text-secondary); font-size: 13px; }
.ios { margin-top: 4px; color: var(--text); }

@media (min-width: 640px) {
  .art { border-radius: 0 0 24px 24px; }
}
