/* ==============================================
   Consent banner & registration toast styles
   Replaces blocking modal with non-intrusive UX
   ============================================== */

/* --- Bandeau cookie slim (bottom) --- */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #dee2e6;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.consent-banner.show {
  transform: translateY(0);
}
.consent-banner.hidden { display: none; }

.consent-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.consent-banner-icon {
  font-size: 1.3rem;
  color: #0d6efd;
  flex-shrink: 0;
}

.consent-banner-text {
  flex: 1;
  min-width: 200px;
  color: #495057;
  font-size: 0.88rem;
  line-height: 1.4;
}
.consent-banner-text a {
  color: #0d6efd;
  text-decoration: underline;
}

.consent-banner-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cb-btn {
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.cb-btn-accept {
  background: #0d6efd;
  color: white;
}
.cb-btn-accept:hover {
  background: #0b5ed7;
}
.cb-btn-refuse {
  background: transparent;
  color: #6c757d;
  border: 1px solid #dee2e6;
}
.cb-btn-refuse:hover {
  background: #f8f9fa;
}

/* --- Toast inscription (discret, coin bas-droit) --- */
.register-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  width: calc(100% - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #0d6efd;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.register-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.register-toast.hidden { display: none; }

.register-toast-inner {
  padding: 16px 18px;
  position: relative;
}

.register-toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #adb5bd;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.register-toast-close:hover {
  color: #495057;
}

.register-toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  padding-right: 24px;
}

.register-toast-text {
  font-size: 0.82rem;
  color: #6c757d;
  margin-bottom: 12px;
  line-height: 1.4;
}

.register-toast-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.register-toast-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .consent-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
    gap: 10px;
  }
  .consent-banner-buttons {
    justify-content: center;
    width: 100%;
  }
  .cb-btn {
    flex: 1;
    justify-content: center;
  }
  .register-toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}
