/* ---------------------------------------------------------------------------
   Bandeau de consentement partagé (site Eleventy + app React).
   Reprend la charte Les Arcades : rouge #DF102A, noir, taupe #91887B,
   ivoire #F7F5F0, pierre #E7E3DB.
   --------------------------------------------------------------------------- */

.consent-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #E7E3DB;
  border-radius: 18px;
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: start;
}

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

.consent-copy {
  max-width: 640px;
}

.consent-eyebrow {
  margin: 0 0 8px;
  color: #DF102A;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.consent-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #000;
}

.consent-desc {
  margin: 0;
  color: #5F584F;
  font-size: .9rem;
  line-height: 1.5;
}

.consent-more {
  margin: 8px 0 0;
  font-size: .78rem;
}

.consent-more a {
  color: #5F584F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-more a:hover {
  color: #DF102A;
}

.consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}

.consent-btn--accept {
  background: #DF102A;
  color: #fff;
}

.consent-btn--accept:hover {
  background: #b90d22;
}

.consent-btn--refuse {
  background: #000;
  color: #fff;
  border-color: #000;
}

.consent-btn--refuse:hover {
  background: #222;
}

.consent-link {
  background: none;
  border: 0;
  padding: 12px 6px;
  color: #000;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-link:hover {
  color: #DF102A;
}

.consent-preferences {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #E7E3DB;
}

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

.consent-pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.consent-pref label {
  display: block;
  cursor: pointer;
}

.consent-pref strong {
  display: block;
  margin-bottom: 2px;
  font-size: .9rem;
}

.consent-pref span {
  display: block;
  color: #91887B;
  font-size: .8rem;
  line-height: 1.45;
}

.consent-pref input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: #DF102A;
}

.consent-always {
  color: #91887B;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  margin-top: 4px;
}

.consent-save {
  justify-self: end;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}

.consent-save:hover {
  background: #DF102A;
}

.consent-btn:focus-visible,
.consent-link:focus-visible,
.consent-save:focus-visible,
.consent-more a:focus-visible {
  outline: 3px solid #DF102A;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .consent-banner {
    grid-template-columns: 1fr;
    width: 94vw;
    bottom: 12px;
    padding: 20px;
  }

  .consent-actions {
    justify-content: flex-start;
  }

  .consent-pref {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .consent-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .consent-link {
    flex: 1 1 100%;
    text-align: left;
  }

  .consent-save {
    justify-self: stretch;
    text-align: center;
  }
}
