/* ==========================================================================
   Notice cookies — Vélothèque Uccle
   Utilise exclusivement les design tokens définis dans variables.css.
   ========================================================================== */

.cookie-notice {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 999;
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 480px;
}

.cookie-notice__text a {
  color: var(--brand-accent);
  text-decoration: underline;
}


.cookie-notice__text a:hover {
  color: #d48e1a !important;
}

.cookie-notice__text a:focus-visible {
  outline: 2px solid var(--text-inverse);
  color: #d48e1a !important;
  outline-offset: 2px;
}

/*.cookie-notice__close {*/
/*  flex: 0 0 auto;*/
/*  background: var(--brand-accent);*/
/*  color: var(--text-main);*/
/*  border: none;*/
/*  border-radius: var(--dd-radius, 10px);*/
/*  padding: 10px 20px;*/
/*  font-weight: 600;*/
/*  cursor: pointer;*/
/*}*/

.cookie-notice__close:hover {
  background: var(--color-gold-400);
}

.cookie-notice__close:focus-visible {
  outline: 3px solid var(--text-inverse);
  outline-offset: 2px;
}

/* ==========================================================================
   Page /gestion-cookies
   ========================================================================== */

.cookie-preferences-page {
  padding: 36px 0px;
}


.cookie-preferences-page__intro {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cookie-preferences-page__section {
  margin-bottom: 36px;
}

.cookie-preferences-page__section h2 {
  color: var(--brand-primary);
  font-size: 18px;
  margin-bottom: 12px;
}

.cookie-preferences-page__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-subtle);
}

.cookie-preferences-page__table th,
.cookie-preferences-page__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.cookie-preferences-page__table th {
  background: var(--surface-default);
  color: var(--text-main);
  font-weight: 600;
}

/* Responsive : empile bouton sous le texte sur mobile */
@media (max-width: 600px) {
  .cookie-notice__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-notice__close {
    width: 100%;
  }
}
