/**
 * Consent Banner — styles.
 * Loi 25 : Refuse et Accept doivent avoir une visibilité équivalente
 * (même taille, même emplacement, pas de hiérarchie visuelle imposée).
 */

/* ─── Bannière ───────────────────────────────────────────── */

.dea-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: #0f172a;
  color: #f1f5f9;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  animation: dea-consent-slide-up 0.35s ease-out;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.dea-consent-banner[hidden] { display: none; }

.dea-consent-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.dea-consent-banner__title {
  margin: 0 0 0.4rem;
  font-family: 'Antonio', 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef3c7;
}

.dea-consent-banner__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.dea-consent-banner__desc a {
  color: #fcd34d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.dea-consent-banner__desc a:hover,
.dea-consent-banner__desc a:focus-visible {
  color: #fde68a;
}

.dea-consent-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ─── Boutons (parité visuelle Refuser / Accepter) ───────── */

.dea-consent-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dea-consent-banner__btn:hover,
.dea-consent-banner__btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

/* Même visibilité : couleurs symétriques */
.dea-consent-banner__btn--refuse {
  background: transparent;
  color: #f8fafc;
  border-color: #f8fafc;
}
.dea-consent-banner__btn--refuse:hover,
.dea-consent-banner__btn--refuse:focus-visible {
  background: #f8fafc;
  color: #0f172a;
}

.dea-consent-banner__btn--accept {
  background: #fcd34d;
  color: #0f172a;
  border-color: #fcd34d;
}
.dea-consent-banner__btn--accept:hover,
.dea-consent-banner__btn--accept:focus-visible {
  background: #fde68a;
  border-color: #fde68a;
}

/* ─── Bouton flottant « revenir sur son choix » ──────────── */

.dea-consent-reopen {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 99998;
  padding: 0.5rem 0.85rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(248, 250, 252, 0.3);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dea-consent-reopen[hidden] { display: none; }

.dea-consent-reopen:hover,
.dea-consent-reopen:focus-visible {
  background: rgba(15, 23, 42, 1);
  border-color: #fcd34d;
  color: #fcd34d;
  outline: none;
}

/* ─── Animation d'arrivée ─────────────────────────────────── */

@keyframes dea-consent-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 720px) {
  .dea-consent-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem 1.1rem;
  }
  .dea-consent-banner__actions {
    justify-content: stretch;
  }
  .dea-consent-banner__btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .dea-consent-banner__desc {
    font-size: 0.85rem;
  }
}

/* ─── Préférence utilisateur : réduction d'animations ────── */

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