/* Bandeau de consentement aux cookies — autonome, ne depend d'aucun token
   du design system pour rester affichable sur toutes les pages du site. */

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: cc-in 0.28s ease-out both;
}

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

@media (prefers-reduced-motion: reduce) {
  .cc-banner { animation: none; }
}

.cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 22px;
}

.cc-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.cc-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
}

.cc-link {
  color: #E64100;
  font-weight: 600;
  text-decoration: underline;
}

.cc-link:hover { text-decoration: none; }

/* --- Panneau detaille --- */

.cc-details {
  margin-top: 16px;
  border-top: 1px solid #eef0f3;
  padding-top: 14px;
  display: grid;
  gap: 12px;
  max-height: 42vh;
  overflow-y: auto;
}

.cc-group {
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 12px 14px;
}

.cc-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.cc-group-body {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7280;
}

.cc-always {
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.cc-check {
  width: 20px;
  height: 20px;
  accent-color: #E64100;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Actions --- */

.cc-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Refuser doit etre aussi accessible qu'accepter (exigence CNIL) */
.cc-btn-ghost {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

.cc-btn-ghost:hover { background: #f3f4f6; }

.cc-btn-primary {
  background: #E64100;
  color: #ffffff;
}

.cc-btn-primary:hover { background: #cc3a00; }

.cc-btn:focus-visible {
  outline: 2px solid #E64100;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; }
  .cc-inner { padding: 16px; }
  .cc-actions { justify-content: stretch; }
  .cc-btn { flex: 1 1 100%; text-align: center; }
}
