/* Bannière cookies — modal centrée sur fond assombri */

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bitcrew-overlay, rgba(5, 10, 16, 0.72));
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__panel {
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem 2rem;
  background: #ffffff;
  color: #1a2a36;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.cookie-consent__title {
  margin: 0 0 1rem;
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a2a36;
}

.cookie-consent__text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: #3d4f5c;
}

.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 400px) {
  .cookie-consent__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cookie-consent__actions .cookie-consent__refuse,
  .cookie-consent__actions .cookie-consent__accept {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
  }
}

.cookie-consent__refuse,
.cookie-consent__accept {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.05s ease;
}

.cookie-consent__refuse {
  color: #3d4f5c;
  background-color: #ffffff;
  border: 2px solid #c5d4e0;
}

.cookie-consent__refuse:hover {
  background-color: #f4f8fb;
  border-color: #9eb6c9;
  color: #2a3842;
}

.cookie-consent__refuse:focus {
  outline: 2px solid #355f7d;
  outline-offset: 2px;
}

.cookie-consent__refuse:active {
  transform: scale(0.99);
}

.cookie-consent__accept {
  color: #ffffff;
  background-color: #5d82a6;
  border: 2px solid #5d82a6;
}

.cookie-consent__accept:hover {
  background-color: #4f7394;
  border-color: #4f7394;
}

.cookie-consent__accept:focus {
  outline: 2px solid #355f7d;
  outline-offset: 2px;
}

.cookie-consent__accept:active {
  transform: scale(0.99);
}
