@font-face {
  font-family: Sora;
  src: url("/consent-sora.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/consent-source-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
.peloche-consent {
  --cookie-green: #1a5e3a;
  --cookie-ink: #193425;
  --cookie-paper: #fffcf5;
  font: 400 1rem/1.45 "Source Sans 3", system-ui, sans-serif;
  color: var(--cookie-ink);
}
.peloche-consent [hidden] { display: none !important; }
.peloche-cookie-banner,
.peloche-cookie-dialog {
  box-sizing: border-box;
  background: var(--cookie-paper);
  color: var(--cookie-ink);
  border: 1px solid #b8cbbb;
  border-radius: 16px;
  padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 10px 42px #19342535;
}
.peloche-cookie-banner {
  position: fixed;
  z-index: 1500;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) 1rem;
  max-width: 68rem;
  max-height: calc(100vh - 2rem);
  max-height: min(65dvh, 30rem);
  margin-inline: auto;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.peloche-cookie-dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; margin: auto; }
.peloche-cookie-dialog::backdrop { background: #102d22aa; }
.peloche-consent h2 { margin: 0 0 .4rem; font: 600 1.16rem/1.25 Sora, system-ui, sans-serif; }
.peloche-consent p { margin: 0; }
.peloche-consent .peloche-cookie-links { margin-top: .4rem; }
.peloche-cookie-links a { text-decoration: underline; text-underline-offset: .16em; }
.peloche-cookie-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.peloche-cookie-actions button {
  min-height: 44px;
  box-sizing: border-box;
  padding: .46rem .65rem;
  border: 1px solid var(--cookie-green);
  border-radius: 8px;
  background: var(--cookie-paper);
  color: var(--cookie-green);
  font: 600 .88rem/1.25 Sora, system-ui, sans-serif;
  cursor: pointer;
}
.peloche-cookie-actions button:hover { background: #e9f2e8; }
.peloche-consent :is(button, a, input):focus-visible { outline: 3px solid var(--cookie-green); outline-offset: 3px; }
.peloche-cookie-option {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem;
  margin-block: 1rem;
  border: 1px solid #bbcbbd;
  border-radius: 10px;
  cursor: pointer;
}
.peloche-cookie-option input { accent-color: var(--cookie-green); width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0 0; }
.peloche-cookie-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.peloche-cookie-footer { display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: .35rem; font-size: .94rem; }
.peloche-cookie-footer a { text-decoration: underline; text-underline-offset: .16em; }
.peloche-legal { max-width: 50rem; margin: 2rem auto; padding-inline: 1rem; color: #193425; font: 400 1.125rem/1.55 "Source Sans 3",system-ui,sans-serif; }
.peloche-legal :is(h1,h2) { color: #1a5e3a; font-family: Sora,system-ui,sans-serif; }
@media (max-width: 850px) { .peloche-cookie-banner { grid-template-columns: 1fr; gap: .65rem; } }
@media (max-width: 500px) {
  .peloche-cookie-banner { inset-inline: .5rem; bottom: max(.5rem, env(safe-area-inset-bottom)); }
  .peloche-cookie-actions button { flex: 1 1 8rem; }
}
.site-footer > .peloche-cookie-footer { grid-column: 1 / -1; }
.peloche-cookie-links a { color: var(--cookie-green); }
@media (max-width: 500px) {
  .peloche-cookie-banner .peloche-cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .peloche-cookie-banner .peloche-cookie-actions button { padding-inline: .25rem; }
}
