/* The public site: the same language as the app (app.css), laid out wider. */

.site {
  padding-bottom: 0;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: var(--border);
}

.site-brand-link {
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: none;
  gap: 18px;
}

.site-nav a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--action);
}

.site-cta {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.site main {
  max-width: 72rem;
  margin: 0 auto;
}

.site-section {
  padding: 48px 20px;
  border-bottom: var(--hairline);
}

.site-section--paper {
  background: var(--paper);
}

.site-section h2 {
  margin-top: 0;
  font-size: 34px;
  letter-spacing: -1px;
}

.lead {
  max-width: 40rem;
  font-size: 18px;
  line-height: 1.5;
}

.hero-site {
  display: grid;
  gap: 24px;
  padding: 40px 20px;
}

.hero-site > * {
  min-width: 0; /* a long word never widens the grid beyond the screen */
}

.hero-site h1 {
  /* « d'enregistrement » (about 8.5 em wide) stays on one line: sized on the
     screen on a phone, on its half-width column on a computer. */
  font-size: clamp(28px, 9vw, 64px);
  letter-spacing: -1.5px;
  line-height: 0.95;
  overflow-wrap: break-word;
}

.hero-photo,
.photos img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: var(--border);
}

.usages ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--border);
  border-bottom: var(--border);
}

.usages li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-bottom: var(--hairline);
}

.usages li strong {
  font-size: 20px;
  font-weight: 900;
}

.usages .mono {
  font-size: 12px;
  color: var(--penalty);
}

.specs {
  display: grid;
  margin: 24px 0;
  border: var(--border);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: var(--hairline);
}

.specs dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--penalty);
}

.specs dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.photos {
  display: grid;
  gap: 12px;
}

.offer {
  max-width: 34rem;
  margin-top: 24px;
  padding: 20px;
  border: var(--border);
}

.offer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.offer-head strong {
  font-size: 20px;
  font-weight: 900;
}

.offer-price {
  margin: 12px 0;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.offer-price span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--grey);
}

.offer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hairline);
}

.offer li {
  padding: 10px 0;
  border-bottom: var(--hairline);
}

.offer li::before {
  content: "— ";
  color: var(--penalty);
}

.booking {
  display: grid;
  gap: 24px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
}

.step-number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-weight: 900;
  color: var(--white);
  background: var(--ink);
}

.booking-example {
  padding: 16px;
  background: var(--white);
  border: var(--border);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--taken);
}

.records {
  padding: 40px 20px;
  color: var(--white);
  background: var(--ink);
}

.records .label {
  color: var(--pending);
}

.records-line {
  margin: 8px 0 20px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.records .todo {
  color: var(--white);
  border-color: var(--white);
}

.address {
  margin: 16px 0;
  font-size: 18px;
  font-style: normal;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 20px 32px;
  font-size: 14px;
  border-top: var(--border);
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--ink);
}

/* A text still to be supplied by the studio: framed, impossible to miss. */
.todo {
  display: inline-block;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--penalty);
  border: 1.5px dashed var(--penalty);
}

.contact {
  display: grid;
  gap: 24px;
}

.contact-form {
  max-width: 34rem;
}

.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  font: inherit;
  border: var(--border);
  border-radius: 0;
  background: var(--white);
}

/* The robot trap: out of sight and out of reach for people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal {
  max-width: 46rem;
}

.legal h1 {
  font-size: 40px;
  letter-spacing: -1px;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 20px;
}

.specs--wide {
  grid-template-columns: 1fr;
}

.specs--wide div {
  flex-direction: column;
  gap: 4px;
}

.specs--wide dd {
  font-weight: 500;
  text-align: left;
}

.legal-list {
  padding-left: 1.2rem;
}

@media (min-width: 760px) {
  .contact {
    grid-template-columns: 1fr 1.4fr;
  }

  .hero-site h1 {
    font-size: clamp(32px, 4.4vw, 64px);
  }

  .hero-site {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    padding: 64px 32px;
  }

  .site-section {
    padding: 72px 32px;
  }

  .usages ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .usages li {
    border-bottom: 0;
    border-right: var(--hairline);
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs div:nth-child(odd) {
    border-right: var(--hairline);
  }

  .specs--wide {
    grid-template-columns: 1fr;
  }

  .specs--wide div:nth-child(odd) {
    border-right: 0;
  }

  .photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .records {
    padding: 56px 32px;
  }
}

/* The section menu needs a wide screen to sit beside the logo and the button. */
@media (min-width: 1000px) {
  .site-nav {
    display: flex;
  }
}
