/* byu-consent — bandeau de consentement maison. Bouton orange #FF7A00 à texte BLANC
   (retour au blanc décidé le 11/10), texte noir sur fond blanc, Poppins, rayon 15 px. Position fixe : aucun décalage
   de mise en page (CLS) à l'apparition. */
:root { --byu-consent-pret: 1; }

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/7d93459d_poppins-e215b6a9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/f4e80d9d_poppins-95fdc599.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.byu-consent {
  --bc-orange: #FF7A00;
  --bc-noir: #1A1A1A;
  --bc-gris: #4A4A4A;
  --bc-fond: #FFFFFF;
  --bc-ligne: #E2E2E2;
  position: fixed;
  z-index: 2147483000;
  left: 12px;
  right: 12px;
  bottom: 12px;
  box-sizing: border-box;
  max-width: 760px;
  max-height: min(62vh, 640px);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: var(--bc-fond);
  color: var(--bc-noir);
  border: 1px solid var(--bc-ligne);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  font-family: Poppins, Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
}
.byu-consent[hidden], .byu-consent [hidden] { display: none !important; }
.byu-consent:focus { outline: none; }
.byu-consent *, .byu-consent *::before, .byu-consent *::after { box-sizing: border-box; }

.byu-consent__titre, .byu-consent__soustitre {
  margin: 0 0 8px;
  padding: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bc-noir);
  letter-spacing: normal;
  text-transform: none;
}
.byu-consent__texte {
  margin: 0 0 16px;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bc-noir);
}
.byu-consent__texte--petit { font-size: 13px; margin-bottom: 14px; }
.byu-consent__lien,
.byu-consent__lien:visited { color: var(--bc-noir); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.byu-consent__lien:hover { color: var(--bc-noir); text-decoration-thickness: 2px; }
.byu-consent__lien:focus-visible { outline: 3px solid var(--bc-orange); outline-offset: 2px; border-radius: 3px; }

/* Trois actions de même gabarit : refuser est aussi visible qu'accepter. */
.byu-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.byu-consent__actions .byu-consent__btn--contour { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .byu-consent { padding: 24px; }
  .byu-consent__actions { grid-template-columns: repeat(3, 1fr); }
  .byu-consent__actions .byu-consent__btn--contour { grid-column: auto; }
}

.byu-consent button.byu-consent__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--bc-orange);
  border-radius: 15px;
  background: var(--bc-orange);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
}
.byu-consent button.byu-consent__btn:hover { background: #FF8F2B; border-color: #FF8F2B; color: #fff; }
.byu-consent button.byu-consent__btn--contour { background: var(--bc-fond); border-color: var(--bc-noir); }
.byu-consent button.byu-consent__btn--contour:hover { background: #F4F4F4; border-color: var(--bc-noir); }
.byu-consent button.byu-consent__btn:focus { outline: none; }
.byu-consent button.byu-consent__btn:focus-visible { outline: 3px solid var(--bc-noir); outline-offset: 3px; }

.byu-consent__finalites { margin: 4px 0 12px; }
.byu-consent__finalite { padding: 12px 0; border-top: 1px solid var(--bc-ligne); }
.byu-consent__finalite:last-child { border-bottom: 1px solid var(--bc-ligne); }
.byu-consent__finalite-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.byu-consent__finalite-titre { margin: 0; font-size: 15px; font-weight: 600; color: var(--bc-noir); cursor: pointer; }
.byu-consent__finalite-texte { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--bc-gris); }

/* Interrupteur accessible (input checkbox role=switch). */
.byu-consent input.byu-consent__switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--bc-noir);
  border-radius: 999px;
  background: #D9D9D9;
  cursor: pointer;
}
.byu-consent input.byu-consent__switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bc-noir);
}
.byu-consent input.byu-consent__switch:checked { background: var(--bc-orange); }
.byu-consent input.byu-consent__switch:checked::before { left: 22px; }
.byu-consent input.byu-consent__switch:disabled { cursor: not-allowed; opacity: .6; }
.byu-consent input.byu-consent__switch:focus { outline: none; }
.byu-consent input.byu-consent__switch:focus-visible { outline: 3px solid var(--bc-noir); outline-offset: 3px; }

.byu-consent__annonce {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ancre de la section cookies sous l'en-tête collant. */
#cookies { scroll-margin-top: 120px; }

@media (prefers-reduced-motion: no-preference) {
  .byu-consent:not([hidden]) { animation: byu-consent-entree .22s ease-out both; }
  .byu-consent input.byu-consent__switch::before { transition: left .15s ease; }
  @keyframes byu-consent-entree {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media print { .byu-consent { display: none !important; } }
