/*========================================================
== Modale de consentement cookies (#cookie-consent-modal)
==========================================================*/
/* Masquée par défaut, affichée via l'ajout de la classe .show en JS */
#cookie-consent-modal {
  display: none;
  position: fixed;
  z-index: 2147483647; /* Valeur maximale - Doit rester au-dessus de tous les autres éléments de la page */
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-consent-modal.show {
  display: flex;
}

#cookie-consent-modal .modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: white;
  border: none;
  border-radius: 15px;
  padding: 32px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: cookie-consent-modal-in 0.25s ease;
}

@keyframes cookie-consent-modal-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#cookie-consent-modal .cookie-consent-dismiss {
  position: absolute;
  right: 20px;
  font-size: 0.85rem;
  color: var(--color-grey-mid);
  text-decoration: underline;
  cursor: pointer;
}

#cookie-consent-modal .cookie-consent-dismiss:hover {
  color: var(--color-primary);
}

#cookie-consent-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

#cookie-consent-modal p {
  font-size: 0.95rem;
  color: var(--color-primary-light);
  margin-bottom: 24px;
}

#cookie-consent-modal a {
  color: var(--color-secondary);
  text-decoration: underline;
}

#cookie-consent-modal .cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  #cookie-consent-modal .modal-content {
    padding: 48px 20px 24px;
  }

  #cookie-consent-modal .cookie-consent-dismiss {
    top: 16px;
    right: 16px;
    font-size: 0.8rem;
  }

  #cookie-consent-modal .cookie-consent-actions {
    flex-direction: column-reverse;
  }

  #cookie-consent-modal .cookie-consent-actions .btn {
    width: 100%;
  }
}