/* ALP Racing Suspension — bannière cookies
   Vert par défaut (accueil), violet sur reiger.html (data-ck-theme="reiger" posé par cookies.js).
   Ajuste --ck-accent si ton vert / violet exact est différent. */
:root {
  --ck-accent: #2fd17a;
  --ck-accent-ink: #04140b;
  --ck-bg: #0d1511;
  --ck-fg: #f3f6f4;
  --ck-muted: rgba(243, 246, 244, .72);
  --ck-line: rgba(255, 255, 255, .16);
}
html[data-ck-theme="reiger"] {
  --ck-accent: #8b5cf6;
  --ck-accent-ink: #ffffff;
  --ck-bg: #120d20;
}

html.ck-lock { overflow: hidden; }

#ck-root, #ck-root * { box-sizing: border-box; }
#ck-root { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
#ck-root [hidden] { display: none !important; }

/* Bannière */
.ck-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 880px;
  margin: 0 auto;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px 24px;
  background: var(--ck-bg);
  color: var(--ck-fg);
  border: 1px solid var(--ck-line);
  border-top: 3px solid var(--ck-accent);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  z-index: 2147483000;
}
.ck-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--ck-fg); }
.ck-text { margin: 0 0 16px; font-size: .88rem; line-height: 1.55; color: var(--ck-muted); }
.ck-text a { color: var(--ck-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Boutons : même format, même poids visuel */
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-btn {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 11px 16px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ck-fg);
  background: transparent;
  border: 1.5px solid var(--ck-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ck-btn:hover { background: var(--ck-accent); color: var(--ck-accent-ink); }
.ck-btn:focus-visible,
.ck-switch input:focus-visible + span { outline: 3px solid var(--ck-accent); outline-offset: 2px; }

/* Fenêtre « Personnaliser » */
.ck-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
  z-index: 2147483001;
}
.ck-modal {
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px;
  background: var(--ck-bg);
  color: var(--ck-fg);
  border: 1px solid var(--ck-line);
  border-top: 3px solid var(--ck-accent);
  border-radius: 14px;
}
.ck-cat { padding: 14px 0; border-top: 1px solid var(--ck-line); }
.ck-cat:last-of-type { margin-bottom: 18px; border-bottom: 1px solid var(--ck-line); }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-cat-head strong { font-size: .92rem; }
.ck-cat p { margin: 6px 0 0; font-size: .82rem; line-height: 1.5; color: var(--ck-muted); }

/* Interrupteurs (jamais pré-cochés) */
.ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.ck-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck-switch span {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  transition: background .2s;
  pointer-events: none;
}
.ck-switch span::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.ck-switch input:checked + span { background: var(--ck-accent); }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:disabled { cursor: not-allowed; }
.ck-switch input:disabled + span { opacity: .55; }

/* Espace réservé à la carte Google Maps */
.ck-embed {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; min-height: 430px;
  padding: 24px;
  text-align: center;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--ck-bg);
  color: var(--ck-fg);
  border: 1px solid var(--ck-line);
  border-radius: 12px;
}
.ck-embed p { margin: 0; max-width: 34ch; font-size: .88rem; line-height: 1.5; color: var(--ck-muted); }
.ck-embed p strong { color: var(--ck-fg); }
.ck-embed .ck-btn { flex: none; margin-top: 8px; }

@media (max-width: 600px) {
  .ck-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .ck-actions { flex-direction: column; }
  .ck-btn { flex: none; width: 100%; }
  .ck-modal { padding: 20px; }
  .ck-embed { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-btn, .ck-switch span, .ck-switch span::after { transition: none; }
}

/* Formulaire HubSpot embarqué : carte claire pour que le style HubSpot par défaut reste lisible */
.hs-form-frame {
  width: 100%;
  min-height: 120px;
  padding: clamp(16px, 3vw, 28px);
  background: #fff;
  color: #101814;
  border-radius: 14px;
}
.ck-embed--form { min-height: 260px; }
.ck-embed--form a { color: var(--ck-accent); }