/* Bannière de consentement cookies (voir includes/cookie-banner.php). Extrait le 02/09/2026
   (audit performance, suite du chantier CSS) : bloc <style> inline, ré-inclus (donc
   re-téléchargé par le navigateur) sur chaque page qui charge cookie-banner.php. Zéro variable
   PHP dans ce bloc à l'origine -- extraction mécanique. */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 800px;
  background: #0F172A;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: none;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  animation: cookieBannerSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieBannerSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  color: #E2E8F0;
  line-height: 1.5;
}

.cookie-text a {
  color: #6EE7B7;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-text a:hover { color: #A7F3D0; }

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

/* Refus rendu aussi lisible que l'acceptation : la CNIL demande que refuser soit
   aussi aise qu'accepter, ce qui vaut aussi pour la hierarchie visuelle. */
.btn-refuse {
  background: transparent;
  color: #F1F5F9;
  border: 1.5px solid #64748B;
}

.btn-refuse:hover {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #94A3B8;
}

.btn-accept {
  background: #047857;
  color: white;
}

.btn-accept:hover {
  background: #065F46;
  transform: translateY(-1px);
}

.btn-cookie:focus-visible {
  outline: 2px solid #6EE7B7;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
  .btn-accept:hover { transform: none; }
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0; left: 0; width: 100%; max-width: 100%;
    transform: none; border-radius: 16px 16px 0 0;
  }
}
