/* Scope pour éviter de flinguer Elementor */
#gpro-chatpdf.gcp {
  /* Dark par défaut */
  --bg: #0f172a;
  --panel: #111827;
  --panel2: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255,255,255,.08);
  --accent: #22c55e;

  display: flex;
  gap: 12px;
  height: 640px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  position: relative;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Theme */
#gpro-chatpdf.gcp.theme-light{
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15,23,42,.12);
  --accent: #16a34a;
}
#gpro-chatpdf.gcp.theme-light .gcp-source{ color: #3730a3; }
#gpro-chatpdf.gcp.theme-light .gcp-msg.ai{ background: rgba(15,23,42,.04); }
#gpro-chatpdf.gcp.theme-light .gcp-drawer{ background: #ffffff; }
#gpro-chatpdf.gcp.theme-light .gcp-pdfloader{ background: rgba(255,255,255,0.75); }
#gpro-chatpdf.gcp.theme-light .gcp-spinner{
  border-color: rgba(15,23,42,0.18);
  border-top-color: rgba(15,23,42,0.8);
}

.gcp-chat {
  flex: 0 0 var(--chatW, 52%);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
}

.gcp-header-right{ display:flex; align-items:center; gap:10px; }

.gcp-about,
.gcp-reset{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  font-weight:800;
}
.gcp-reset{ font-size:20px; line-height:1; }
.gcp-about:hover,
.gcp-reset:hover{ background: rgba(255,255,255,.06); }
.gcp-about:focus-visible,
.gcp-reset:focus-visible{ outline:2px solid rgba(34,197,94,.45); outline-offset:2px; }
#gpro-chatpdf.gcp.theme-light .gcp-about:hover,
#gpro-chatpdf.gcp.theme-light .gcp-reset:hover{ background: rgba(15,23,42,.04); }

.gcp-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.gcp-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.gcp-header-left{ min-width:0; }

.gcp-theme{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  flex:0 0 auto;
}
.gcp-theme:hover{ background: rgba(255,255,255,.06); }
#gpro-chatpdf.gcp.theme-light .gcp-theme:hover{ background: rgba(15,23,42,.04); }
.gcp-theme-ic{ font-size:16px; line-height:1; }

.gcp-title {
  font-weight: 700;
  letter-spacing: .2px;
}

.gcp-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.gcp-messages {
  flex: 1;
  padding: 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gcp-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  line-height: 1.35;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.gcp-msg.me {
  margin-left: auto;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
}

.gcp-msg.ai {
  background: rgba(255,255,255,.05);
}

.gcp-msg.err {
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.25);
}

.gcp-sources {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.gcp-source {
  color: #c7d2fe;
  text-decoration: none;
  opacity: .9;
}
.gcp-source:hover { opacity: 1; text-decoration: underline; }

.gcp-inputbar {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.15);
}

.gcp-input {
  flex: 1;
  resize: none;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  min-height: 44px;
}

.gcp-input:focus {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.gcp-send {
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.18);
  color: var(--text);
  padding: 0 16px;
  min-width: 110px;
  cursor: pointer;
  font-weight: 700;
}

.gcp-send:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.gcp-hint {
  padding: 8px 12px 12px;
  font-size: 12px;
  color: var(--muted);
}

.gcp-hint code {
  color: #c7d2fe;
}

/* Drawer PDF */
.gcp-drawer {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: #0b1220;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.gcp-resizer{
  width: 10px;
  cursor: col-resize;
  background: rgba(255,255,255,.03);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
#gpro-chatpdf.gcp.theme-light .gcp-resizer{ background: rgba(15,23,42,.03); }

/* Modal À propos */
.gcp-modal.hidden{ display:none; }
.gcp-modal{ position:absolute; inset:0; z-index:50; }
.gcp-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.gcp-modal-card{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width:min(520px, calc(100% - 40px));
  border-radius:16px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.gcp-modal-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--border); }
.gcp-modal-title{ font-weight:800; letter-spacing:.2px; }
.gcp-modal-close{
  width:34px; height:34px; border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.gcp-modal-close:hover{ background: rgba(255,255,255,.06); }
.gcp-modal-body{ padding:14px; color: var(--text); }
.gcp-modal-body p{ margin: 0 0 10px; }

.gcp-drawer.hidden { display: none; }

.gcp-drawer-header {
  position: sticky;
  top: 0;
  z-index: 120;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,.98);
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.gcp-drawer-title {
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 13px;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcp-drawer-close {
  position: relative;
  z-index: 130;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  min-width: 98px;
  border: 1px solid rgba(255,255,255,.7);
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
.gcp-drawer-close:hover,
.gcp-drawer-close:focus-visible {
  background: #f8fafc;
  border-color: #ffffff;
  transform: translateY(-1px);
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}
.gcp-drawer-close:active { transform: translateY(0); }

.gcp-pdf {
  flex: 1;
  overflow: auto;
  padding: 12px;
  height: 100%;
}

/* PDF.js viewer iframe */
.gcp-pdf iframe{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #0b1220;
}

/* Loader PDF */
.gcp-pdfwrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.gcp-pdfwrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.gcp-pdfloader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 10, 20, 0.65);
  backdrop-filter: blur(2px);
  z-index: 10;
}
.gcp-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.9);
  animation: gcp-spin 0.9s linear infinite;
}
.gcp-pdfloader span {
  font-size: 13px;
  opacity: 0.9;
}
@keyframes gcp-spin {
  to { transform: rotate(360deg); }
}

/* Réponses multi-questions : chaque réponse garde ses sources juste dessous. */
.gcp-msg.ai.multi {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gcp-answer-section {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
}
.gcp-answer-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.gcp-answer-question {
  font-weight: 700;
  margin-bottom: 6px;
}
.gcp-answer-text {
  white-space: pre-wrap;
}
.theme-light .gcp-answer-section {
  border-top-color: rgba(15,23,42,0.12);
}

/* Sources intégrées : le lien affiché est "page X", directement dans la réponse. */
.gcp-inline-source {
  color: #c7d2fe;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
  font-weight: 600;
}
.gcp-inline-source:hover {
  text-decoration: none;
  opacity: 1;
  border-bottom-style: solid;
}
#gpro-chatpdf.gcp.theme-light .gcp-inline-source { color: #3730a3; }
.gcp-inline-sources { display: none !important; }
.gcp-source-citation { white-space: nowrap; }

/* Aperçu propre des sources non PDF : DOCX/PPTX/XLSX ne doivent pas afficher le ZIP binaire brut. */
.gcp-source-preview {
  height: 100%;
  overflow: auto;
  padding: 18px;
}
.gcp-source-preview-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.gcp-source-preview-kicker {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.gcp-source-preview-title {
  font-weight: 800;
  color: var(--text);
}
.gcp-source-preview-body {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
#gpro-chatpdf.gcp.theme-light .gcp-source-preview-body { background: rgba(15,23,42,.04); }
.gcp-source-preview-body pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: inherit;
  line-height: 1.45;
}
.gcp-source-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile / tablette : le chat prend toute la largeur et la source s'ouvre en popup. */
@media (max-width: 1024px) {
  #gpro-chatpdf.gcp {
    width: 100%;
    height: min(760px, calc(100vh - 24px));
    min-height: 520px;
  }
  #gpro-chatpdf.gcp .gcp-chat {
    flex: 1 1 100%;
  }
  #gpro-chatpdf.gcp .gcp-resizer {
    display: none;
  }
  #gpro-chatpdf.gcp .gcp-drawer {
    position: absolute;
    inset: 10px;
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    overflow: hidden;
  }
  #gpro-chatpdf.gcp .gcp-drawer.hidden {
    display: none;
  }
  #gpro-chatpdf.gcp .gcp-drawer::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: -1;
  }
  #gpro-chatpdf.gcp .gcp-msg {
    max-width: 96%;
  }
}

@media (max-width: 640px) {
  #gpro-chatpdf.gcp {
    height: calc(100vh - 12px);
    min-height: 500px;
    border-radius: 0;
  }
  #gpro-chatpdf.gcp .gcp-inputbar {
    gap: 8px;
    padding: 10px;
  }
  #gpro-chatpdf.gcp .gcp-send {
    min-width: 88px;
    padding: 0 12px;
  }
  #gpro-chatpdf.gcp .gcp-drawer {
    inset: 6px;
    border-radius: 14px;
  }
}

/* Aperçu DOCX paginé : rendu proche d'une feuille Word/PDF, avec images et tableaux. */
.gcp-docx-viewer {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #cbd5e1;
  color: #111827;
  border-radius: 10px;
  overflow: hidden;
}
.gcp-docx-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, .94);
  color: #f8fafc;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .25);
}
.gcp-docx-nav {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 9px;
  min-height: 34px;
  padding: 5px 11px;
  cursor: pointer;
  font-weight: 700;
}
.gcp-docx-nav {
  width: 38px;
  font-size: 22px;
  line-height: 1;
}
.gcp-docx-nav:disabled {
  opacity: .4;
  cursor: default;
}
.gcp-docx-page-indicator { font-size: 13px; font-weight: 700; white-space: nowrap; }
.gcp-docx-stage {
  flex: 1;
  overflow: auto;
  padding: 24px;
}
.gpro-docx-page {
  box-sizing: border-box;
  width: min(210mm, calc(100% - 16px));
  min-height: 297mm;
  margin: 0 auto 24px;
  padding: 20mm 18mm;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 10px 35px rgba(15, 23, 42, .22);
  font-family: Calibri, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.gpro-docx-page h1,
.gpro-docx-page h2,
.gpro-docx-page h3,
.gpro-docx-page h4,
.gpro-docx-page h5,
.gpro-docx-page h6 {
  color: #111827;
  line-height: 1.2;
  margin: 1.1em 0 .55em;
  page-break-after: avoid;
}
.gpro-docx-page h1 { font-size: 2rem; }
.gpro-docx-page h2 { font-size: 1.65rem; }
.gpro-docx-page h3 { font-size: 1.32rem; }
.gpro-docx-page h4 { font-size: 1.13rem; }
.gpro-docx-page p { margin: .55em 0; }
.gpro-docx-page .gpro-docx-list-item {
  display: grid;
  grid-template-columns: 1.1em 1fr;
  gap: .25em;
  margin: .35em 0;
}
.gpro-docx-page .gpro-docx-bullet { font-weight: 700; }
.gpro-docx-page .gpro-docx-link { color: #1d4ed8; text-decoration: underline; }
.gpro-docx-page .gpro-docx-meta {
  color: #64748b;
  font-size: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 18px;
}
.gpro-docx-figure {
  margin: 18px auto;
  text-align: center;
  page-break-inside: avoid;
}
.gpro-docx-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(15,23,42,.12);
}
.gpro-docx-figure figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  max-height: 5.4em;
  overflow: hidden;
}
.gpro-docx-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}
.gpro-docx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gpro-docx-table th,
.gpro-docx-table td {
  border: 1px solid #cbd5e1;
  padding: 7px 9px;
  vertical-align: top;
  text-align: left;
}
.gpro-docx-table th { background: #f1f5f9; font-weight: 700; }
.gpro-docx-table p { margin: 0; }

@media (max-width: 1024px) {
  #gpro-chatpdf.gcp .gcp-pdf { padding: 0; }
  .gcp-docx-viewer { border-radius: 0; }
  .gcp-docx-stage { padding: 14px; }
  .gpro-docx-page {
    width: 100%;
    min-height: calc(100vh - 150px);
    padding: 24px 20px;
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .gcp-docx-toolbar { justify-content: flex-start; gap: 7px; }
  .gcp-docx-stage { padding: 8px; }
  .gpro-docx-page {
    min-height: calc(100vh - 125px);
    padding: 20px 16px;
    font-size: 14px;
    box-shadow: none;
  }
}

#gpro-chatpdf.gcp.theme-light .gcp-drawer-header { background: rgba(15,23,42,.98); }
#gpro-chatpdf.gcp.theme-light .gcp-drawer-title { color: #f8fafc; }
#gpro-chatpdf.gcp.theme-light .gcp-drawer-close { background:#fff; color:#0f172a; border-color:rgba(255,255,255,.8); }

@media (max-width: 1024px) {
  #gpro-chatpdf.gcp .gcp-drawer-header { z-index: 1210; }
  #gpro-chatpdf.gcp .gcp-drawer-close { z-index: 1220; min-width: 104px; }
}
@media (max-width: 640px) {
  #gpro-chatpdf.gcp .gcp-drawer-header { min-height: 60px; padding: 9px 10px; }
  #gpro-chatpdf.gcp .gcp-drawer-close { min-width: 96px; padding: 9px 12px; }
}

/* =========================================================
 * Widget flottant G-Bot
 * ======================================================= */
.gcp-widget-shell {
  --gcp-widget-accent: #22c55e;
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 2147482000;
  pointer-events: none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.gcp-widget-shell.gcp-widget-right { right: max(22px, env(safe-area-inset-right)); }
.gcp-widget-shell.gcp-widget-left { left: max(22px, env(safe-area-inset-left)); }

.gcp-widget-launcher {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #fff;
  cursor: pointer;
  padding: 0;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  filter: drop-shadow(0 12px 24px rgba(15,23,42,.30));
}
.gcp-widget-launcher:hover,
.gcp-widget-launcher:focus,
.gcp-widget-launcher:focus-visible,
.gcp-widget-launcher:active {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
.gcp-widget-launcher::before,
.gcp-widget-launcher::after {
  content: none !important;
  display: none !important;
}
.gcp-widget-left .gcp-widget-launcher { margin-left: 0; margin-right: auto; flex-direction: row-reverse; }
.gcp-widget-launcher-icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gcp-widget-accent);
  border: 2px solid rgba(255,255,255,.92);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15,23,42,.34), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gcp-widget-launcher-icon.has-custom-image{ background: var(--gcp-widget-accent); }
.gcp-widget-launcher-image{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:inherit;
}
.gcp-widget-launcher:hover .gcp-widget-launcher-icon,
.gcp-widget-launcher:focus-visible .gcp-widget-launcher-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 38px rgba(15,23,42,.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.gcp-widget-launcher:focus-visible { outline: none; }
.gcp-widget-launcher-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  max-width: 220px;
  padding: 9px 14px;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  font-weight: 750;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 10px 28px rgba(15,23,42,.22);
  transition: transform .2s ease, opacity .2s ease;
}
.gcp-widget-launcher:hover .gcp-widget-launcher-label { transform: translateY(-1px); }
.gcp-widget-pulse {
  position: absolute;
  z-index: 1;
  right: 0;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 2px solid var(--gcp-widget-accent);
  animation: gcp-widget-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
.gcp-widget-left .gcp-widget-pulse { right: auto; left: 0; }
@keyframes gcp-widget-pulse {
  0%, 52% { transform: scale(.95); opacity: 0; }
  58% { opacity: .55; }
  85%, 100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gcp-widget-pulse { display: none; }
  .gcp-widget-launcher-icon,
  .gcp-widget-launcher-label { transition: none; }
}

.gcp-widget-panel {
  pointer-events: auto;
  position: absolute;
  bottom: 78px;
  width: min(430px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 120px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.gcp-widget-right .gcp-widget-panel { right: 0; }
.gcp-widget-left .gcp-widget-panel { left: 0; transform-origin: bottom left; }
.gcp-widget-shell.is-open .gcp-widget-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.gcp-widget-shell.is-open .gcp-widget-launcher-label { opacity: 0; visibility: hidden; transform: translateX(8px); }
.gcp-widget-shell.is-open .gcp-widget-pulse { display: none; }

.gcp-widget-shell #gpro-chatpdf.gcp {
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 0;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15,23,42,.38);
  border-color: rgba(148,163,184,.22);
}
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-chat { flex: 1 1 100%; min-width: 0; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-resizer { display: none; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-msg { max-width: 92%; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-header { padding: 13px 14px; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-header-right { gap: 7px; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-about,
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-reset { width: 34px; height: 34px; border-radius: 10px; }
.gcp-widget-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.gcp-widget-close:hover,
.gcp-widget-close:focus-visible { background: rgba(255,255,255,.12); outline: 2px solid rgba(34,197,94,.38); }
#gpro-chatpdf.gcp.theme-light .gcp-widget-close { background: rgba(15,23,42,.04); }

/* Dans un widget étroit, les sources deviennent toujours une vue superposée. */
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-drawer {
  position: absolute;
  inset: 0;
  z-index: 1600;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: none;
}
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-drawer::before { display: none; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-drawer-header { z-index: 1610; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-drawer-close { z-index: 1620; }
.gcp-widget-shell #gpro-chatpdf.gcp .gcp-modal { z-index: 1700; }

@media (max-width: 640px) {
  body.gcp-widget-open { overflow: hidden !important; touch-action: none; }
  .gcp-widget-shell {
    inset: 0;
    bottom: auto;
    width: 100%;
    height: 100%;
  }
  .gcp-widget-shell .gcp-widget-launcher {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .gcp-widget-shell.gcp-widget-right .gcp-widget-launcher { right: max(16px, env(safe-area-inset-right)); }
  .gcp-widget-shell.gcp-widget-left .gcp-widget-launcher { left: max(16px, env(safe-area-inset-left)); }
  .gcp-widget-launcher-label { display: none; }
  .gcp-widget-shell.is-open .gcp-widget-launcher { display: none; }
  .gcp-widget-panel,
  .gcp-widget-right .gcp-widget-panel,
  .gcp-widget-left .gcp-widget-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    transform: translateY(16px);
  }
  .gcp-widget-shell.is-open .gcp-widget-panel { transform: translateY(0); }
  .gcp-widget-shell #gpro-chatpdf.gcp {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
    border: 0;
  }
  .gcp-widget-shell #gpro-chatpdf.gcp .gcp-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .gcp-widget-shell #gpro-chatpdf.gcp .gcp-hint { display: none; }
  .gcp-widget-shell #gpro-chatpdf.gcp .gcp-messages { padding: 12px; }
  .gcp-widget-shell #gpro-chatpdf.gcp .gcp-inputbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* Actions vers les pages du site utilisées comme sources. */
.gcp-web-source-actions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.gcp-web-source-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(129,140,248,.36);
  border-radius: 11px;
  background: rgba(99,102,241,.10);
  color: var(--text);
  text-decoration: none !important;
  line-height: 1.25;
}
.gcp-web-source-action > span:first-child {
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.gcp-web-source-action strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.gcp-web-source-action:hover,
.gcp-web-source-action:focus-visible {
  border-color: rgba(129,140,248,.72);
  background: rgba(99,102,241,.18);
  color: var(--text);
  outline: none;
}
#gpro-chatpdf.gcp.theme-light .gcp-web-source-action {
  border-color: rgba(79,70,229,.25);
  background: rgba(79,70,229,.07);
  color: #111827;
}
#gpro-chatpdf.gcp.theme-light .gcp-web-source-action > span:first-child { color: #4338ca; }


/* Sources web intégrées directement dans le texte de réponse. */
.gcp-answer-link {
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gcp-answer-link::after {
  content: " ↗";
  font-size: .78em;
  text-decoration: none;
}


/* ========================================================================== */
/* Intégration G-Pro Horaires & Réservations                                  */
/* ========================================================================== */
.gcp-booking-open,
.gcp-human-connect-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
  padding:0 11px;
  border-radius:12px;
  border:1px solid rgba(34,197,94,.34);
  background:rgba(34,197,94,.13);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  font-size:12px;
  line-height:1;
}
.gcp-booking-open:hover,
.gcp-booking-open:focus-visible,
.gcp-human-connect-open:hover,
.gcp-human-connect-open:focus-visible{
  background:rgba(34,197,94,.22);
  outline:2px solid rgba(34,197,94,.35);
  outline-offset:1px;
}
.gcp-widget-shell .gcp-booking-open-label{display:none;}
.gcp-widget-shell .gcp-human-connect-open-label{display:none;}
.gcp-human-connect-open{
  border-color:rgba(56,88,233,.38);
  background:rgba(56,88,233,.12);
}
.gcp-human-connect-open:hover,
.gcp-human-connect-open:focus-visible{background:rgba(56,88,233,.22);}

.gcp-booking-panel{
  position:absolute;
  inset:0;
  z-index:1800;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:inherit;
  background:var(--bg);
  color:var(--text);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.gcp-booking-panel.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.gcp-booking-header{
  position:relative;
  z-index:2;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:var(--panel);
}
.gcp-booking-title{font-size:16px;font-weight:850;}
.gcp-booking-subtitle{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.25;}
.gcp-booking-close,
.gcp-booking-back{
  appearance:none;
  border:1px solid var(--border);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:9px 11px;
  cursor:pointer;
  font-weight:750;
}
.gcp-booking-close:hover,
.gcp-booking-close:focus-visible,
.gcp-booking-back:hover,
.gcp-booking-back:focus-visible{
  background:rgba(34,197,94,.14);
  border-color:rgba(34,197,94,.35);
  outline:none;
}
.gcp-booking-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:16px;
  background:var(--panel2);
  overscroll-behavior:contain;
}
.gcp-booking-choice{max-width:760px;margin:0 auto;}
.gcp-booking-choice.is-hidden{display:none;}
.gcp-booking-intro{margin:0 0 16px;color:var(--text);font-size:15px;line-height:1.5;}
.gcp-booking-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;}
.gcp-booking-choice-card{
  appearance:none;
  width:100%;
  min-height:110px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:17px;
  border:1px solid rgba(34,197,94,.28);
  border-radius:16px;
  background:var(--panel);
  color:var(--text);
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(2,6,23,.12);
}
.gcp-booking-choice-card:hover,
.gcp-booking-choice-card:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(34,197,94,.60);
  box-shadow:0 14px 34px rgba(2,6,23,.18);
  outline:none;
}
.gcp-booking-choice-card > span{min-width:0;max-width:100%;}
.gcp-booking-choice-card > span:nth-child(2){overflow:hidden;}
.gcp-booking-choice-card strong{display:block;max-width:100%;font-size:15px;line-height:1.25;white-space:normal!important;overflow-wrap:anywhere;}
.gcp-booking-choice-card small{display:block;max-width:100%;margin-top:5px;color:var(--muted);line-height:1.35;white-space:normal!important;overflow-wrap:anywhere;}
.gcp-booking-choice-icon{font-size:28px;}
.gcp-booking-view{display:none;min-height:100%;}
.gcp-booking-view.is-active{display:block;}
.gcp-booking-view-toolbar{
  position:sticky;
  top:-16px;
  z-index:5;
  display:flex;
  align-items:center;
  gap:12px;
  margin:-16px -16px 14px;
  padding:10px 16px;
  border-bottom:1px solid var(--border);
  background:var(--panel2);
}
.gcp-booking-shortcode{
  max-width:1100px;
  margin:0 auto;
  color:initial;
}

.gcp-booking-cta{margin-top:12px;}
.gcp-booking-cta-button{
  appearance:none;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid rgba(34,197,94,.38);
  border-radius:13px;
  background:rgba(34,197,94,.12);
  color:var(--text);
  text-align:left;
  white-space:normal!important;
  overflow:hidden;
  cursor:pointer;
}
.gcp-booking-cta-button::before,.gcp-booking-cta-button::after{display:none!important;content:none!important;}
.gcp-booking-cta-button > span{min-width:0;max-width:100%;}
.gcp-booking-cta-button > span:nth-child(2){overflow:hidden;}
.gcp-booking-cta-button > span:last-child{justify-self:end;white-space:nowrap;}
.gcp-booking-cta-button:hover,
.gcp-booking-cta-button:focus-visible{
  background:rgba(34,197,94,.20);
  border-color:rgba(34,197,94,.62);
  outline:none;
}
.gcp-booking-cta-button strong{display:block;max-width:100%;font-size:13px;line-height:1.25;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;}
.gcp-booking-cta-button small{display:block;max-width:100%;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.3;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;}

/* Le widget s'élargit uniquement pendant la réservation afin de conserver le
   confort du formulaire métier sans quitter la conversation. */
.gcp-widget-shell.is-booking .gcp-widget-panel{
  width:min(980px, calc(100vw - 32px));
  height:min(820px, calc(100vh - 32px));
}
.gcp-widget-shell.is-booking.gcp-widget-right .gcp-widget-panel{right:0;}
.gcp-widget-shell.is-booking.gcp-widget-left .gcp-widget-panel{left:0;}

#gpro-chatpdf.gcp.theme-light .gcp-booking-open,
#gpro-chatpdf.gcp.theme-light .gcp-booking-close,
#gpro-chatpdf.gcp.theme-light .gcp-booking-back{
  color:#0f172a;
  background:rgba(15,23,42,.04);
}
#gpro-chatpdf.gcp.theme-light .gcp-booking-cta-button{color:#0f172a;background:rgba(22,163,74,.08);}

@media (max-width: 760px){
  .gcp-booking-open,
  .gcp-human-connect-open{width:38px;padding:0;}
  .gcp-booking-cta-button{grid-template-columns:22px minmax(0,1fr) 16px;gap:8px;padding:10px;}
  .gcp-booking-cta-button strong{font-size:12.5px;}
  .gcp-booking-cta-button small{font-size:10.5px;}
  .gcp-booking-open-label{display:none!important;}
  .gcp-booking-header{align-items:flex-start;padding:max(12px, env(safe-area-inset-top)) 12px 11px;}
  .gcp-booking-subtitle{max-width:230px;}
  .gcp-booking-close{padding:8px 9px;font-size:12px;white-space:nowrap;}
  .gcp-booking-body{padding:12px;padding-bottom:max(16px, env(safe-area-inset-bottom));}
  .gcp-booking-view-toolbar{top:-12px;margin:-12px -12px 12px;padding:9px 12px;}
  .gcp-booking-choice-grid{grid-template-columns:1fr;}
  .gcp-widget-shell.is-booking .gcp-widget-panel{width:100%;height:100dvh;}
}

/* Réservation conversationnelle */
.gcp-booking-choice-card.is-primary{
  border-color:rgba(56,88,233,.48);
  background:linear-gradient(135deg,rgba(56,88,233,.14),rgba(34,197,94,.10));
}
.gcp-booking-cta{display:grid;gap:8px;}
.gcp-booking-cta-button.is-secondary{
  border-color:var(--border);
  background:var(--panel2);
}
.gcp-booking-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.gcp-booking-action{
  appearance:none;
  border:1px solid rgba(56,88,233,.38);
  border-radius:999px;
  padding:9px 13px;
  background:rgba(56,88,233,.11);
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:750;
  line-height:1.2;
  cursor:pointer;
  transition:transform .15s ease,background .15s ease,border-color .15s ease;
}
.gcp-booking-action:hover,
.gcp-booking-action:focus-visible{
  transform:translateY(-1px);
  background:rgba(56,88,233,.19);
  border-color:rgba(56,88,233,.68);
  outline:none;
}
.gcp-booking-action.is-secondary{
  background:transparent;
  border-color:var(--border);
}
.gcp-booking-action.is-link{
  width:100%;
  border:0;
  border-radius:8px;
  padding:7px 2px;
  background:transparent;
  color:var(--muted);
  text-decoration:underline;
  text-align:left;
  font-weight:600;
}
.gcp-msg.ai .gcp-booking-actions{white-space:normal;}
@media (max-width:640px){
  .gcp-booking-actions{display:grid;grid-template-columns:1fr;}
  .gcp-booking-action{width:100%;border-radius:12px;text-align:center;}
}

/* Supervised learning feedback — compact and unobtrusive. */
.gcp-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(100, 116, 139, .18);
  font-size: 12px;
  line-height: 1.35;
  opacity: .78;
}
.gcp-feedback-btn,
.gcp-feedback-btn:hover,
.gcp-feedback-btn:focus,
.gcp-feedback-btn:active {
  appearance: none;
  min-width: 42px;
  min-height: 28px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(100, 116, 139, .32) !important;
  border-radius: 999px;
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  box-shadow: none !important;
  font: inherit;
  cursor: pointer;
}
.gcp-feedback-btn:hover,
.gcp-feedback-btn:focus-visible {
  border-color: currentColor !important;
  opacity: 1;
}
.gcp-feedback-btn:disabled {
  cursor: default;
  opacity: .45;
}
.gcp-feedback-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}
.gcp-feedback-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding-top: 2px;
}
.gcp-feedback-reasons[hidden] {
  display: none !important;
}
.gcp-feedback-reasons-label {
  flex-basis: 100%;
  font-weight: 600;
  opacity: .9;
}
.gcp-feedback-reason,
.gcp-feedback-reason:hover,
.gcp-feedback-reason:focus,
.gcp-feedback-reason:active {
  appearance: none;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(100, 116, 139, .30) !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55) !important;
  background-image: none !important;
  color: inherit !important;
  box-shadow: none !important;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
}
.gcp-feedback-reason:hover,
.gcp-feedback-reason:focus-visible {
  border-color: currentColor !important;
}
.gcp-feedback-thanks {
  font-weight: 600;
}
.gcp-feedback-error {
  flex-basis: 100%;
  color: #b42318;
}


/* G-BOT 2.0.5 — réponses structurées, numérotées et citées */
#gpro-chatpdf.gcp .gcp-msg.ai p {
  margin: 0 0 0.75em;
}
#gpro-chatpdf.gcp .gcp-msg.ai p:last-child {
  margin-bottom: 0;
}
#gpro-chatpdf.gcp .gcp-msg.ai h3,
#gpro-chatpdf.gcp .gcp-msg.ai h4 {
  margin: 0.2em 0 0.65em;
  font-size: 1.02em;
  line-height: 1.35;
  font-weight: 700;
}
#gpro-chatpdf.gcp .gcp-msg.ai ol,
#gpro-chatpdf.gcp .gcp-msg.ai ul {
  margin: 0.45em 0 0.85em 1.3em;
  padding: 0;
}
#gpro-chatpdf.gcp .gcp-msg.ai li {
  margin: 0 0 0.6em;
  padding-left: 0.2em;
  line-height: 1.5;
}
#gpro-chatpdf.gcp .gcp-msg.ai blockquote {
  margin: 0.8em 0;
  padding: 0.7em 0.9em;
  border-left: 4px solid var(--gcp-primary, #3b82f6);
  background: rgba(59, 130, 246, 0.07);
  border-radius: 0 8px 8px 0;
}
#gpro-chatpdf.gcp .gcp-msg.ai strong {
  font-weight: 700;
}

.gcp-license-locked{padding:16px 18px;border:1px solid #dba617;border-left:4px solid #dba617;border-radius:10px;background:#fff8dd;color:#30270c}
.gcp-commercial-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.gcp-commercial-action,
.gcp-commercial-quick-reply{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border:1px solid var(--accent, #22c55e);
  border-radius:999px;
  font:inherit;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.gcp-commercial-action{
  color:#fff;
  background:var(--accent, #22c55e);
  box-shadow:0 7px 18px rgba(15,23,42,.18);
}
.gcp-commercial-action.is-secondary,
.gcp-commercial-quick-reply{
  color:inherit;
  background:transparent;
  box-shadow:none;
}
.gcp-commercial-action:hover,
.gcp-commercial-action:focus-visible,
.gcp-commercial-quick-reply:hover,
.gcp-commercial-quick-reply:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 9px 22px rgba(15,23,42,.22);
}
.gcp-commercial-action:focus-visible,
.gcp-commercial-quick-reply:focus-visible{
  outline:3px solid rgba(34,197,94,.35);
  outline-offset:2px;
}

.gcp-human-connect{
  flex:1 1 100%;
  min-width:0;
  margin-top:4px;
  padding:12px;
  border:1px solid rgba(148,163,184,.45);
  border-radius:14px;
  background:rgba(255,255,255,.08);
}
.gcp-human-connect-title{display:block;margin-bottom:4px}
.gcp-human-connect-status{margin:0 0 10px;font-size:.9em;opacity:.82}
.gcp-human-connect-messages{
  display:flex;
  flex-direction:column;
  gap:7px;
  max-height:260px;
  overflow:auto;
  margin-bottom:10px;
  padding:4px;
}
.gcp-human-connect-message{
  display:flex;
  flex-direction:column;
  align-self:flex-start;
  max-width:88%;
  margin:0;
  padding:8px 10px;
  border-radius:11px;
  background:rgba(148,163,184,.16);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.gcp-human-connect-message.is-visitor{
  align-self:flex-end;
  background:color-mix(in srgb,var(--accent, #22c55e) 20%,transparent);
}
.gcp-human-connect-message strong{font-size:.78em;opacity:.72}
.gcp-human-connect-message span{display:block}
.gcp-human-connect-form{display:flex;flex-wrap:wrap;gap:8px}
.gcp-human-connect-form textarea{
  flex:1 1 100%;
  box-sizing:border-box;
  min-height:72px;
  padding:10px;
  border:1px solid rgba(148,163,184,.65);
  border-radius:10px;
  color:inherit;
  background:rgba(255,255,255,.92);
  font:inherit;
  resize:vertical;
}
.gcp-human-connect-form .gcp-commercial-action:disabled{cursor:wait;opacity:.62}
.gcp-human-connect-waiting{display:none;align-items:center;gap:5px;margin:8px 0 12px;color:var(--muted)}
.gcp-human-connect-waiting.is-active{display:flex}
.gcp-human-connect-waiting span{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:gcp-hc-pulse 1.2s infinite ease-in-out}
.gcp-human-connect-waiting span:nth-child(2){animation-delay:.15s}.gcp-human-connect-waiting span:nth-child(3){animation-delay:.3s}
.gcp-human-connect-waiting small{margin-left:5px}
@keyframes gcp-hc-pulse{0%,80%,100%{transform:scale(.55);opacity:.35}40%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.gcp-human-connect-waiting span{animation:none}}
.gcp-human-connect-intro{padding:9px 11px;border-radius:10px;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.28)}
.gcp-human-connect-identity{margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.04)}
.gcp-human-connect-identity p{font-size:.88em;color:var(--muted)}
.gcp-human-connect-identity>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gcp-human-connect-identity label{display:flex;flex-direction:column;gap:4px;font-size:.82em}
.gcp-human-connect-identity input{box-sizing:border-box;width:100%;padding:9px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--text)}
.gcp-human-connect-identity .gcp-human-connect-consent{flex-direction:row;align-items:flex-start;margin:10px 0}.gcp-human-connect-consent input{width:auto;margin-top:3px}
@media(max-width:520px){.gcp-human-connect-identity>div{grid-template-columns:1fr}}

/* G-BOT 2.0.0 — remplissage conversationnel des formulaires de contact */
.gcp-contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.gcp-contact-action{
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--accent, #22c55e);
  border-radius:999px;
  background:var(--accent, #22c55e);
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.gcp-contact-action.is-secondary{
  background:transparent;
  color:inherit;
}
form.gcp-contact-assisted{
  outline:3px solid rgba(34,197,94,.38);
  outline-offset:6px;
  transition:outline-color .2s ease;
}
.gcp-contact-field-filled{
  box-shadow:0 0 0 3px rgba(34,197,94,.22) !important;
  border-color:var(--accent, #22c55e) !important;
}
