/* GISEL - Fenêtre de consentement cookies (classes préfixées gcc-) */
.gcc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 16, 64, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

.gcc-dialog {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px 28px 22px;
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(26, 16, 64, .28);
  animation: gccIn .28s cubic-bezier(.22, 1, .36, 1);
}

@keyframes gccIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.gcc-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #7C6FFF;
}

.gcc-body {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.gcc-more {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #7C6FFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gcc-actions {
  display: flex;
  gap: 12px;
}

/* Les deux boutons ont exactement la même taille et le même poids */
.gcc-btn {
  flex: 1 1 0;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid #7C6FFF;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.gcc-btn:hover { transform: translateY(-1px); }
.gcc-btn:focus-visible { outline: 3px solid rgba(124, 111, 255, .45); outline-offset: 2px; }

.gcc-btn-accept {
  background: #7C6FFF;
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 111, 255, .35);
}

.gcc-btn-refuse {
  background: #fff;
  color: #7C6FFF;
}

.gcc-btn-refuse:hover { background: #f5f3ff; }

.gcc-foot {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 420px) {
  .gcc-dialog { padding: 22px 18px 18px; }
  .gcc-actions { flex-direction: column-reverse; }
}

/* ── Consent Mode v2 : bouton Personnaliser + panneau de choix ── */
.gcc-overlay [hidden] { display: none !important; }

.gcc-btn-custom {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  background: transparent;
  border-color: #ede9fe;
  color: #6b5fe0;
  font-size: 14px;
}
.gcc-btn-custom:hover { background: #f5f3ff; }

.gcc-panel { margin-bottom: 4px; }

.gcc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f0ff;
  cursor: pointer;
}
.gcc-row:first-child { cursor: default; }
.gcc-row-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gcc-row-title { font-size: 14px; font-weight: 700; color: #1e1040; }
.gcc-row-desc { font-size: 12.5px; line-height: 1.5; color: #6b7280; }
.gcc-panel .gcc-actions { margin-top: 18px; }

.gcc-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; }
.gcc-switch input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.gcc-slider {
  position: absolute; inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: background .15s;
}
.gcc-slider::before {
  content: "";
  position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.gcc-switch input:checked + .gcc-slider { background: #7C6FFF; }
.gcc-switch input:checked + .gcc-slider::before { transform: translateX(18px); }
.gcc-switch input:disabled { cursor: not-allowed; }
.gcc-switch input:disabled + .gcc-slider { opacity: .55; }
.gcc-switch input:focus-visible + .gcc-slider { outline: 3px solid rgba(124, 111, 255, .45); outline-offset: 2px; }
