/* ── Bandeau cookies, version fenêtre centrale (2026-10-10) ──────────────
   Chargée en dernier sur les 50 pages, après la feuille de chaque famille
   (city-page.css, home.css, brand.css ou le <style> en ligne des blogs).
   Toutes les règles passent par #cookie-banner pour l'emporter sur les
   anciennes règles .cookie-banner sans toucher aux feuilles existantes.
   Les identifiants des boutons (#cookie-accept, #cookie-essential,
   #cookie-refuse) et les classes d'état (.hidden, .minimized) posées par le
   JS de chaque famille sont inchangés. */

#cookie-banner {
  position: fixed;
  inset: 0;
  left: 0;
  bottom: 0;
  width: auto;
  transform: none;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 16, 24, .62);
  border-radius: 0;
  box-shadow: none;
  color: #1C2B3A;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  gap: 0;
  transition: none;
}

#cookie-banner.hidden { display: none; }

#cookie-banner .cookie-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 30px 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

#cookie-banner .cookie-eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A9500A;
}

#cookie-banner .cookie-title {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 4.6vw, 24px);
  line-height: 1.25;
  color: #1C2B3A;
}

#cookie-banner p {
  margin: 0;
  color: #3A4A5A;
}

#cookie-banner strong { color: #1C2B3A; }

#cookie-banner .cookie-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: #3A4A5A;
  font-size: 14px;
}

#cookie-banner .cookie-points li {
  padding-left: 22px;
  position: relative;
}

#cookie-banner .cookie-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #E8761A;
  font-weight: 700;
}

#cookie-banner .cookie-btn {
  border: none;
  cursor: pointer;
  font-family: 'Sora', system-ui, sans-serif;
  white-space: normal;
  transition: background .15s ease, color .15s ease;
}

#cookie-banner .cookie-btn-accept {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: #E8761A;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(232, 118, 26, .35);
}

#cookie-banner .cookie-btn-accept:hover { background: #C9620F; }

#cookie-banner .cookie-more {
  border-top: 1px solid #ECE7E1;
  padding-top: 12px;
  font-size: 14px;
}

#cookie-banner .cookie-more summary {
  cursor: pointer;
  font-weight: 600;
  color: #1C2B3A;
  list-style: none;
}

#cookie-banner .cookie-more summary::-webkit-details-marker { display: none; }
#cookie-banner .cookie-more summary::after { content: " ▾"; color: #6B7480; }
#cookie-banner .cookie-more[open] summary::after { content: " ▴"; }

#cookie-banner .cookie-cat {
  margin-top: 10px;
  padding: 10px 12px;
  background: #F7F5F2;
  border-radius: 10px;
  color: #3A4A5A;
}

#cookie-banner .cookie-btn-essential {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ECE7E1;
  color: #1C2B3A;
  font-weight: 600;
  font-size: 13px;
}

#cookie-banner .cookie-btn-essential:hover { background: #E0D9D1; }

#cookie-banner .cookie-btn-refuse {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 4px 2px;
  background: none;
  color: #8A929C;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 12px;
  text-decoration: underline;
}

#cookie-banner .cookie-btn-refuse:hover {
  background: none;
  color: #4A5562;
}

#cookie-banner .cookie-btn:focus-visible {
  outline: 3px solid #E8761A;
  outline-offset: 2px;
}

#cookie-banner .cookie-mini { display: none; }

/* Pastille après « Continuer sans accepter » : même place et même rôle
   qu'avant, au-dessus du CTA collant sur mobile (voir CLAUDE.md, 2026-08-20). */
#cookie-banner.minimized {
  inset: auto 20px 20px auto;
  display: flex;
  place-items: normal;
  padding: 12px 18px;
  background: #1C2B3A;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  cursor: pointer;
}

#cookie-banner.minimized:hover { background: #243648; }
#cookie-banner.minimized .cookie-content { display: none; }

#cookie-banner.minimized .cookie-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #FFFFFF;
}

@media (max-width: 639px) {
  #cookie-banner.minimized { bottom: 86px; }
  #cookie-banner .cookie-content { padding: 34px 20px 20px; }
}
