/* ==========================================================================
   GreenBird Studio — bandeau et gestion des cookies
   Ajouté dans le cadre de la mise en conformité RGPD / CNIL.
   ========================================================================== */

#gb-cookie-banner,
#gb-cookie-modal {
  font-family: "Inter", Arial, sans-serif;
  box-sizing: border-box;
}
#gb-cookie-banner *,
#gb-cookie-modal * {
  box-sizing: border-box;
}

/* ---- Bandeau ---- */
#gb-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: #0d0d0d;
  color: #f2f2f2;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.35);
  border-top: 1px solid #00cc78;
}
#gb-cookie-banner[hidden] { display: none !important; }

#gb-cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 640px;
  color: #e7e7e7;
}
#gb-cookie-banner a {
  color: #4cffb6;
  text-decoration: underline;
}

.gb-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gb-cookie-btn {
  appearance: none;
  border: 1px solid #00cc78;
  background: transparent;
  color: #f2f2f2;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.gb-cookie-btn:hover { opacity: 0.85; }

.gb-cookie-btn.gb-primary {
  background: #00cc78;
  color: #0d0d0d;
  border-color: #00cc78;
}

.gb-cookie-btn.gb-link {
  border: none;
  text-decoration: underline;
  padding: 11px 6px;
  background: none;
}

/* ---- Fenêtre de personnalisation ---- */
#gb-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(5, 5, 5, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#gb-cookie-modal[hidden] { display: none !important; }

.gb-cookie-modal-box {
  background: #111;
  color: #f2f2f2;
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #2c2c2c;
}
.gb-cookie-modal-box h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #fff;
}
.gb-cookie-modal-box p {
  font-size: 14px;
  line-height: 1.5;
  color: #cfcfcf;
  margin: 0 0 20px;
}

.gb-cookie-cat {
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.gb-cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gb-cookie-cat-head strong {
  font-size: 15px;
  color: #fff;
}
.gb-cookie-cat p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b2b2b2;
}

.gb-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: none;
}
.gb-switch input { opacity: 0; width: 0; height: 0; }
.gb-switch .gb-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #585858;
  border-radius: 24px;
  transition: 0.15s;
}
.gb-switch .gb-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
}
.gb-switch input:checked + .gb-slider { background: #00cc78; }
.gb-switch input:checked + .gb-slider:before { transform: translateX(18px); }
.gb-switch input:disabled + .gb-slider { background: #3a3a3a; cursor: not-allowed; }

.gb-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ---- Placeholder Cal.com avant consentement ---- */
.gb-cal-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed #585858;
  border-radius: 10px;
  color: #cfcfcf;
  font-size: 14px;
}
.gb-cal-placeholder p { margin: 0; max-width: 420px; }

@media (max-width: 700px) {
  #gb-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .gb-cookie-actions { justify-content: stretch; }
  .gb-cookie-btn { flex: 1; text-align: center; }
}
