/* ═══════════════════════════════════════════════════════════
   Google Consent Mode v2 — Art Gallery
   Palette : fond #1a1a1a · or #c9a84c · texte #e5e7eb
   Fonts  : Cormorant Garamond (titres) · Inter (texte)
   ═══════════════════════════════════════════════════════════ */
:root {
  --agc-bg: #1a1a1a;
  --agc-bg-soft: #2a2418;
  --agc-gold: #c9a84c;
  --agc-gold-dark: #b8941f;
  --agc-text: #e5e7eb;
  --agc-muted: #9ca3af;
  --agc-border: rgba(201, 168, 76, .35);
  --agc-radius: 14px;
  --agc-font-title: 'Cormorant Garamond', Georgia, serif;
  --agc-font-body: 'Inter', system-ui, sans-serif;
}

.agc-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  z-index: 99998;
}

.agc-banner {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  margin-bottom: 16px;
  background: var(--agc-bg);
  border: 1px solid var(--agc-border);
  border-radius: var(--agc-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  padding: 26px 28px 22px;
  z-index: 99999;
  font-family: var(--agc-font-body);
  color: var(--agc-text);
  animation: agc-in .45s cubic-bezier(.2, .9, .3, 1);
}
@keyframes agc-in { from { opacity: 0; transform: translateX(-50%) translateY(24px); } }

.agc-title {
  font-family: var(--agc-font-title);
  font-size: 26px;
  color: var(--agc-gold);
  margin: 0 0 8px;
  letter-spacing: .3px;
}
.agc-text { font-size: 14px; line-height: 1.65; color: var(--agc-muted); margin: 0 0 18px; }
.agc-text a { color: var(--agc-gold); text-decoration: underline; }

.agc-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.agc-btn {
  font-family: var(--agc-font-body);
  font-size: 14.5px; font-weight: 600;
  padding: 12px 24px; border-radius: 8px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .18s ease;
  min-height: 46px;
}
.agc-btn-accept { background: var(--agc-gold); color: #1a1a1a; border-color: var(--agc-gold); }
.agc-btn-accept:hover { background: var(--agc-gold-dark); border-color: var(--agc-gold-dark); transform: translateY(-1px); }
.agc-btn-refuse { background: transparent; color: var(--agc-text); border-color: rgba(229, 231, 235, .3); }
.agc-btn-refuse:hover { border-color: var(--agc-text); }
.agc-btn-custom { background: none; border: none; color: var(--agc-muted); text-decoration: underline; font-weight: 400; padding: 12px 8px; }
.agc-btn-custom:hover { color: var(--agc-gold); }

/* ── Panneau préférences ── */
.agc-prefs {
  display: none;
  margin-top: 18px;
  border-top: 1px solid var(--agc-border);
  padding-top: 16px;
}
.agc-prefs.open { display: block; }
.agc-pref-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(201, 168, 76, .12);
}
.agc-pref-row:last-child { border-bottom: none; }
.agc-pref-name { font-size: 14.5px; font-weight: 600; color: var(--agc-text); margin: 0 0 3px; }
.agc-pref-desc { font-size: 12.5px; color: var(--agc-muted); margin: 0; line-height: 1.5; }
.agc-pref-state { font-size: 12px; color: var(--agc-gold); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.agc-switch {
  position: relative; width: 46px; height: 26px; flex-shrink: 0;
  background: #3a3222; border-radius: 26px; border: 1px solid var(--agc-border);
  cursor: pointer; transition: background .18s;
}
.agc-switch::after {
  content: ''; position: absolute; top: 2px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--agc-muted); transition: all .18s;
}
.agc-switch.on { background: var(--agc-gold); border-color: var(--agc-gold-dark); }
.agc-switch.on::after { left: 21px; background: #1a1a1a; }
.agc-switch.locked { opacity: .45; cursor: not-allowed; }

.agc-save {
  margin-top: 16px; width: 100%;
  background: var(--agc-gold); color: #1a1a1a;
  font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: 8px; border: none; cursor: pointer;
}
.agc-save:hover { background: var(--agc-gold-dark); }

/* ── Bouton réouverture (coin bas gauche) ── */
.agc-reopen {
  position: fixed; left: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--agc-bg); border: 1px solid var(--agc-border);
  color: var(--agc-gold); font-size: 20px;
  cursor: pointer; z-index: 99997;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.agc-reopen:hover { border-color: var(--agc-gold); }
.agc-reopen.show { display: flex; }

@media (max-width: 560px) {
  .agc-banner { padding: 20px 18px; }
  .agc-title { font-size: 22px; }
  .agc-actions { flex-direction: column; }
  .agc-btn { width: 100%; }
}
