/* Bandeau de consentement aux cookies et fenêtre de préférences.
   Reprend les couleurs de la maquette ; se suffit à lui-même sur toutes les pages. */
.consent {
  --c-noir: #0b0908; --c-carte: #15110f; --c-ivoire: #efe6d6; --c-doux: #b9ae9c; --c-peche: #fad49b;
  --c-ligne: rgba(239, 230, 214, .18);
  font: 400 15px/1.55 "Jost", "Futura", system-ui, sans-serif; color: var(--c-ivoire);
}
.consent *, .consent *::before, .consent *::after { box-sizing: border-box; }
.consent [hidden] { display: none !important; }

.consent__bandeau {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(460px, calc(100vw - 32px));
  padding: 24px; background: var(--c-carte); border: 1px solid var(--c-ligne);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.consent__titre { margin: 0 0 10px; font: 500 12px/1.4 "Jost", system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--c-peche); }
.consent__texte { margin: 0 0 18px; color: var(--c-doux); }
.consent__texte a, .consent__lien { color: var(--c-ivoire); border-bottom: 1px solid var(--c-ligne); text-decoration: none; }
.consent__texte a:hover, .consent__texte a:focus-visible { color: var(--c-peche); border-color: var(--c-peche); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* « Tout refuser » et « Tout accepter » ont le même poids visuel : exigence de la CNIL. */
.consent__bouton {
  flex: 1 1 auto; cursor: pointer; padding: 12px 16px; background: transparent; color: var(--c-ivoire);
  border: 1px solid rgba(239, 230, 214, .55);
  font: 500 11px/1 "Jost", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.consent__bouton:hover, .consent__bouton:focus-visible { background: var(--c-peche); border-color: var(--c-peche); color: var(--c-noir); }
.consent__bouton--discret { flex: 1 1 100%; border-color: transparent; color: var(--c-doux); padding: 8px 16px 0; }
.consent__bouton--discret:hover, .consent__bouton--discret:focus-visible { background: transparent; border-color: transparent; color: var(--c-peche); }
.consent__bouton:focus-visible, .consent__interrupteur input:focus-visible + span { outline: 2px solid var(--c-peche); outline-offset: 2px; }

.consent__voile { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(11, 9, 8, .78); }
.consent__fenetre {
  width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px;
  background: var(--c-carte); border: 1px solid var(--c-ligne);
}
.consent__fenetre h2 { margin: 0 0 8px; font: 500 28px/1.1 "Barlow", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.03em; color: var(--c-peche); }
.consent__famille { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 0; border-top: 1px solid var(--c-ligne); }
.consent__famille h3 { margin: 0 0 4px; font: 500 16px/1.3 "Jost", system-ui, sans-serif; color: var(--c-ivoire); }
.consent__famille p { margin: 0; color: var(--c-doux); font-size: 14px; }
.consent__toujours { flex: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-peche); padding-top: 3px; }

.consent__interrupteur { flex: none; position: relative; display: inline-block; cursor: pointer; }
.consent__interrupteur input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent__interrupteur span { display: block; width: 46px; height: 26px; border-radius: 13px; border: 1px solid rgba(239, 230, 214, .55); transition: background .25s, border-color .25s; }
.consent__interrupteur span::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-doux); transition: transform .25s, background .25s;
}
.consent__interrupteur input:checked + span { background: var(--c-peche); border-color: var(--c-peche); }
.consent__interrupteur input:checked + span::after { transform: translateX(20px); background: var(--c-noir); }
.consent__fenetre .consent__actions { padding-top: 20px; border-top: 1px solid var(--c-ligne); }

@media (max-width: 560px) {
  .consent__bandeau { right: 0; bottom: 0; width: 100%; border-width: 1px 0 0; padding: 20px 16px; }
  .consent__fenetre { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent__bouton, .consent__interrupteur span, .consent__interrupteur span::after { transition: none; }
}
