/*
  Feuille de style unique des pages légales de SaveFood.
  Aucune ressource externe : polices du système, aucune image distante.
*/

:root {
  --vert: #059669;
  --vert-fonce: #047857;
  --vert-pale: #ecfdf5;
  --encre: #0f172a;
  --encre-douce: #475569;
  --trait: #e2e8f0;
  --fond: #ffffff;
  --fond-doux: #f8fafc;
  --alerte: #fffbeb;
  --alerte-trait: #f59e0b;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.bandeau {
  background: var(--vert);
  color: #ffffff;
}

.bandeau .contenu {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.marque {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.contenu {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0.5rem 0 0.25rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--trait);
}

h3 {
  font-size: 1.075rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0.6rem 0;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.3rem;
}

a {
  color: var(--vert-fonce);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 2px;
}

.date {
  color: var(--encre-douce);
  font-size: 0.95rem;
  margin-top: 0;
}

.essentiel {
  background: var(--vert-pale);
  border-left: 4px solid var(--vert);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

.essentiel > :first-child {
  margin-top: 0;
}

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

.attention {
  background: var(--alerte);
  border-left: 4px solid var(--alerte-trait);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

.attention > :first-child {
  margin-top: 0;
}

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

.sommaire {
  background: var(--fond-doux);
  border: 1px solid var(--trait);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.sommaire ol {
  margin: 0.25rem 0 0;
}

.tableau {
  overflow-x: auto;
  margin: 0.75rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}

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

th {
  background: var(--fond-doux);
  font-weight: 600;
}

.liens {
  list-style: none;
  padding: 0;
}

.liens li + li {
  margin-top: 0.75rem;
}

.liens a {
  display: block;
  border: 1px solid var(--trait);
  border-radius: 0.75rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--encre);
}

.liens a:hover {
  border-color: var(--vert);
}

.liens strong {
  display: block;
  color: var(--vert-fonce);
  font-size: 1.1rem;
}

.liens span {
  color: var(--encre-douce);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--fond-doux);
  border: 1px solid var(--trait);
  border-radius: 0.25rem;
  padding: 0.05rem 0.3rem;
}

.pied {
  border-top: 1px solid var(--trait);
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.pied .contenu {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.pied a {
  margin-right: 1rem;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2rem;
  }

  .contenu {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
