.consentement[hidden], .consentement [hidden], .consentement-rappel[hidden] { display: none !important; }

.consentement {
  position: fixed;
  z-index: 2147483000;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  width: min(440px, calc(100vw - 32px));
  max-height: min(78vh, 700px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--filet-fort, rgba(255,255,255,.16));
  border-radius: var(--r-carte, 24px);
  background: var(--bulle, #14171c);
  color: var(--encre, #eceff3);
  box-shadow: var(--ombre-bulle, 0 22px 80px rgba(0,0,0,.45));
  font-family: var(--police-texte, Arial, sans-serif);
  line-height: 1.45;
  animation: consentement-arrivee 180ms ease-out both;
}

.consentement-entete {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.consentement-symbole {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: none;
}

.consentement h2 {
  margin: 0 0 10px;
  color: inherit;
  font-family: var(--police-titre, inherit);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.consentement p {
  margin: 0;
  color: var(--encre-2, #c3c9d1);
  font-size: 14px;
  line-height: 1.55;
}

.consentement p a {
  color: var(--encre, #eceff3);
  text-underline-offset: 3px;
}

.consentement-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.consentement-bouton {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--filet-fort, rgba(255,255,255,.2));
  border-radius: var(--r-controle, 12px);
  background: var(--surface-2, rgba(255,255,255,.06));
  color: var(--encre, #eceff3);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease-out, transform 180ms ease-out;
}

.consentement-bouton:hover { background: var(--pilule-survol, rgba(255,255,255,.1)); }
.consentement-bouton:active { transform: translateY(1px); }
.consentement [data-consent-settings] .consentement-bouton { grid-column: 1 / -1; }
.consentement-bouton:focus-visible, .consentement-personnaliser:focus-visible,
.pied-consentement:focus-visible, .consentement-rappel:focus-visible {
  outline: 2px solid var(--focus, #a9c8ff);
  outline-offset: 3px;
}

.consentement-personnaliser {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--encre-2, #c3c9d1);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consentement-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--filet, rgba(255,255,255,.08));
}

.consentement-option strong, .consentement-option small { display: block; }
.consentement-option strong { font-size: 14px; font-weight: 600; }
.consentement-option small { margin-top: 3px; color: var(--encre-2, #c3c9d1); font-size: 12px; line-height: 1.4; }
.consentement-option input { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--accent, #a9c8ff); cursor: pointer; }
.consentement-toujours { color: var(--ok, #7fd9a3); font-size: 17px; }

.pied-consentement {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--encre-3, #8e96a2);
  font: inherit;
  font-size: var(--t-s, 13px);
  cursor: pointer;
}
.pied-consentement:hover { color: var(--encre, #eceff3); }

.consentement-rappel {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--filet-fort, rgba(255,255,255,.16));
  border-radius: 12px;
  background: var(--bulle, #14171c);
  color: var(--encre, #eceff3);
  box-shadow: var(--ombre-bulle, 0 12px 36px rgba(0,0,0,.3));
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* Dans la console, l'accès aux préférences vit dans le menu du compte. */
body:has([data-console-shell]) .consentement-rappel { display: none !important; }

@keyframes consentement-arrivee {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .consentement { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 20px; }
  .consentement-rappel { bottom: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .consentement { animation: none; }
  .consentement-bouton { transition: none; }
}
