/* ════════════════════════════════════════════════════════════
   COOKIES : fenêtre « Zéro cookie » et bandeau de choix (futur)
   ════════════════════════════════════════════════════════════ */
.cookies {
  position: fixed; z-index: 90; left: clamp(0.75rem, 0.4rem + 1vw, 1.5rem); bottom: calc(clamp(0.75rem, 0.4rem + 1vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 1.5rem)); padding: 1.35rem 1.4rem;
  background: var(--blanc); border: 1px solid var(--sable-200); border-radius: var(--rayon-l);
  box-shadow: 0 30px 70px rgba(94, 38, 23, 0.25); animation: cookies-apparait 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes cookies-apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookies__titre { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; font: 500 1.25rem var(--police-titre); }
.cookies__pastille { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta-100); color: var(--terracotta-700); font: 700 1rem var(--police-texte); }
.cookies__texte { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.55; color: var(--encre-700); }
.cookies__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1rem; }
.cookies__actions:has(> :only-child) { grid-template-columns: 1fr; }
/* Refuser, personnaliser et accepter ont exactement le même poids visuel */
.cookies__bouton {
  min-height: 46px; padding: 0.55rem 0.6rem; border-radius: var(--rayon-pilule); cursor: pointer;
  background: var(--blanc); border: 1.5px solid var(--terracotta-600); color: var(--terracotta-800);
  font: 700 0.86rem var(--police-texte); transition: background-color var(--transition), color var(--transition);
}
.cookies__bouton:hover { background: var(--terracotta-600); color: var(--blanc); }
.cookies__bouton--plein { background: var(--terracotta-600); color: var(--blanc); }
.cookies__bouton--plein:hover { background: var(--terracotta-700); }
.cookies__details { margin-top: 0.75rem; border-top: 1px solid var(--sable-200); }
.cookies__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--sable-200); }
.cookies__nom { margin: 0; font-weight: 700; font-size: 0.9rem; }
.cookies__description { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--encre-500); }
.cookies__interrupteur { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.cookies__interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookies__interrupteur span[aria-hidden] { position: absolute; inset: 0; border-radius: 28px; background: var(--sable-300); transition: background-color var(--transition); }
.cookies__interrupteur span[aria-hidden]::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); box-shadow: var(--ombre-1); transition: transform var(--transition); }
.cookies__interrupteur input:checked + .sr-only + span { background: var(--terracotta-600); }
.cookies__interrupteur input:checked + .sr-only + span::after { transform: translateX(20px); }
.cookies__interrupteur input:focus-visible + .sr-only + span { box-shadow: var(--focus); }
@media (max-width: 480px) { .cookies__actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; } }
