/* Consentement — composant volontairement calme, lisible et mobile-first. */
.consent[hidden] { display: none !important; }
.consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 24, 18, .34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.consent-open { overflow: hidden; }
.consent__card {
  position: relative;
  width: min(100%, 46rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: #263126;
  background: #f4f0e8;
  box-shadow: 0 1.5rem 5rem rgba(14, 22, 14, .2);
}
.consent__eyebrow {
  margin: 0 0 .85rem;
  font-size: .68rem;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.consent h2 {
  margin: 0 2.5rem 1rem 0;
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.02;
  font-weight: 400;
}
.consent__intro {
  max-width: 62ch;
  margin: 0 0 .85rem;
  font-size: .96rem;
  line-height: 1.65;
}
.consent__privacy,
.consent-manage {
  color: inherit;
  font: inherit;
  font-size: .78rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.5rem;
}
.consent button {
  min-height: 48px;
  border: 1px solid #3a4a38;
  border-radius: 0;
  padding: .8rem 1rem;
  color: #263126;
  background: transparent;
  font: inherit;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}
.consent button:focus-visible,
.consent__privacy:focus-visible,
.consent-manage:focus-visible {
  outline: 2px solid #263126;
  outline-offset: 3px;
}
.consent .consent__primary,
.consent [data-consent="refuse"],
.consent .consent__save {
  color: #fff;
  background: #3a4a38;
}
.consent .consent__text {
  grid-column: 1 / -1;
  min-height: 44px;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.consent__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  min-height: 44px !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 1.65rem !important;
  line-height: 1;
}
.consent__choices {
  margin: 1.5rem 0;
  border-top: 1px solid rgba(38, 49, 38, .24);
}
.consent__choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(38, 49, 38, .24);
}
.consent__choice strong { display: block; margin-bottom: .25rem; font-weight: 500; }
.consent__choice p { margin: 0; font-size: .82rem; line-height: 1.5; }
.consent__always { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.consent__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent__switch {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid #3a4a38;
  transition: background .2s ease;
}
.consent__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #3a4a38;
  transition: transform .2s ease, background .2s ease;
}
.consent__choice input:checked + .consent__switch { background: #3a4a38; }
.consent__choice input:checked + .consent__switch::after {
  transform: translateX(22px);
  background: #fff;
}
.consent__choice input:focus-visible + .consent__switch {
  outline: 2px solid #263126;
  outline-offset: 3px;
}
.consent__save { width: 100%; }
.consent-manage {
  display: inline;
  min-height: 44px;
  margin: 0;
  border: 0;
  padding: .5rem 0;
  background: transparent;
  cursor: pointer;
}
@media (min-width: 720px) {
  .consent { padding: 2rem; }
  .consent__actions { grid-template-columns: auto auto auto; justify-content: start; }
  .consent .consent__text { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .consent__switch,
  .consent__switch::after { transition: none; }
}
