/* Lili's Cook — pages légales
   Aucune ressource externe : ni police, ni script, ni analytics.
   Une page qui explique la protection des données ne doit pas
   transmettre l'adresse IP du lecteur à un tiers pour s'afficher. */

:root {
  --cream: #f5e6d3;
  --paper: #fffdf9;
  --ink: #2b2118;
  --ink-soft: #6f5f51;
  --terracotta: #c8895a;
  --terracotta-deep: #9d6435;
  --rule: #e6d4bd;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- Ossature ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead__inner,
.sheet,
.colophon__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--terracotta-deep);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}

.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}

.sheet {
  background: var(--paper);
  padding-block: 3rem 4rem;
  min-height: 60vh;
}

@media (min-width: 45rem) {
  .sheet {
    border-inline: 1px solid var(--rule);
  }
}

/* ---------- Titraille ---------- */

.docmeta {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 2.5rem;
}

h2 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 3rem 0 0.75rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--terracotta);
}

h3 {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
}

p {
  margin: 0 0 1.1rem;
}

a {
  color: var(--terracotta-deep);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 700;
}

/* ---------- Éléments de contenu ---------- */

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.callout {
  background: #fbf1e4;
  border-left: 3px solid var(--terracotta-deep);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.basis {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: -0.4rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 700;
  border-bottom-color: var(--ink-soft);
}

.identity {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.8;
  background: #fbf1e4;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Sommaire de l'accueil ---------- */

.index-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.index-list li {
  border-top: 1px solid var(--rule);
  margin: 0;
}

.index-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.index-list a {
  display: block;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--ink);
}

.index-list a:hover .index-list__title,
.index-list a:focus-visible .index-list__title {
  color: var(--terracotta-deep);
}

.index-list__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  display: block;
}

.index-list__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- Pied ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.colophon__inner {
  padding-block: 1.75rem 2.5rem;
}

.colophon p {
  margin: 0 0 0.4rem;
}

/* ---------- Impression ---------- */

@media print {
  body {
    background: #fff;
  }
  .masthead nav,
  .colophon {
    display: none;
  }
  .sheet {
    border: 0;
    max-width: none;
  }
}
