/* CookieSafe™ — Freemindtronic® · cookies strictement nécessaires uniquement */

.cookiesafe-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  background: rgb(15 23 42 / 45%);
}

.cookiesafe-backdrop.is-open {
  display: block;
}

.cookiesafe-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookiesafe-modal.is-open {
  display: flex;
}

.cookiesafe-card {
  width: min(100%, 32rem);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgb(15 23 42 / 18%);
}

.cookiesafe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid #e2e8f0;
}

.cookiesafe-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}

.cookiesafe-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cookiesafe-close:hover {
  background: #f8fafc;
}

.cookiesafe-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(29 78 216 / 35%);
}

.cookiesafe-body {
  padding: 1rem 1.125rem;
}

.cookiesafe-intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.cookiesafe-pref {
  padding: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.cookiesafe-pref h3 {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.cookiesafe-pref p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

.cookiesafe-pref-status {
  display: inline-block;
  margin-top: 0.625rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
}

.cookiesafe-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.cookiesafe-policy {
  font-size: 0.8125rem;
  color: #64748b;
}

.cookiesafe-policy a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.cookiesafe-policy a:hover {
  text-decoration: underline;
}

.cookiesafe-brand {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.cookiesafe-btn-close {
  padding: 0.5rem 1rem;
  border: 1px solid #1d4ed8;
  border-radius: 0.375rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cookiesafe-btn-close:hover {
  background: #2563eb;
}

.cookiesafe-btn-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(29 78 216 / 35%);
}
