/* Cyllenia, page d'attente : une serif (Gloock) pour les titres, une grotesque (Host Grotesk) pour le texte.
   Polices servies d'ici, sous-ensemble latin : aucune requête vers un tiers. */

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/legal/fonts/gloock-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/legal/fonts/host-grotesk-latin.woff2") format("woff2");
}

:root {
  --paper: #f7f4ee;
  --ink: #1d1b18;
  --muted: #6b665e;
  --line: #e2ddd3;
  --accent: #2f5d50;
  --button: #1d1b18;
  --button-ink: #f7f4ee;
  --serif: "Gloock", Georgia, serif;
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --ink: #ece8e0;
    --muted: #a19b91;
    --line: #2c2a26;
    --accent: #8cc2b0;
    --button: #ece8e0;
    --button-ink: #151412;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* En-tête */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.top nav a:not(.button) {
  text-decoration: none;
  color: var(--muted);
}

.top nav a:not(.button):hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  opacity: 0.88;
}

.button.large {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

/* Accueil */

.hero {
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero h1 {
  max-width: 14ch;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  max-width: 34em;
  margin: 0 0 32px;
  font-size: 19px;
  color: var(--muted);
  text-wrap: pretty;
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

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

.services h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.services p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
}

.split h2 {
  margin: 0;
}

.split p {
  margin: 0 0 16px;
}

.split p:last-child {
  margin-bottom: 0;
}

/* Textes légaux */

.legal {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin: 48px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.legal p,
.legal li {
  text-wrap: pretty;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal code {
  font-size: 14px;
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.note {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
}

.note p {
  margin: 0 0 12px;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Pied de page */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .top nav a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero p {
    font-size: 17px;
  }

  .services,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
