/* ============================================================
   quiz.css — BTP Configurateur Quiz Layer v2
   Approche : fine couche de guidage, design original conservé.
   On ajoute seulement : header progress + footer navigation
   + cartes de décision OUI/NON.
   ============================================================ */

/* ─── STEPPER STATIQUE AU-DESSUS DU LAYOUT → CACHÉ ───────────────────────── */
.page > .panel { display: none !important; }

/* ─── BOUTON GUIDE ? → CACHÉ (remplacé par le quiz step-by-step) ─────────── */
#helpButton { display: none !important; }

/* ─── HIGHLIGHT PROGRESSIF — champ en cours de guidage ───────────────────── */
@keyframes gcq-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

.gcq-field-focus {
  outline: 2px solid var(--accent, #3b82f6) !important;
  outline-offset: 2px;
  border-radius: 6px;
  animation: gcq-pulse 1.4s ease infinite;
  scroll-margin: 8px;
}

/* ─── PANEL GAUCHE : flex colonne pour coller le footer en bas ────────────── */
.layout > .panel:not(.viewer) {
  display: flex !important;
  flex-direction: column;
}

/* Le .content (forms existants) prend tout l'espace disponible */
.layout > .panel:not(.viewer) > .content {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

/* ─── QUIZ HEADER ─────────────────────────────────────────────────────────── */
#gcq-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border, #1e2d45);
  background: var(--surface, #111827);
  flex-shrink: 0;
}

.gcq-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #3b82f6);
  margin-bottom: 8px;
}

.gcq-prog-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.gcq-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #3b82f6), var(--accent2, #06b6d4));
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.gcq-step-lbl {
  font-size: 10px;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ─── TIP — message de guidage contextuel ─────────────────────────────────── */
.gcq-tip {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text, #f1f5f9);
  background: rgba(59,130,246,.12);
  border-left: 3px solid var(--accent, #3b82f6);
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  margin-top: 6px;
}

.gcq-tip:empty { display: none; }
.gcq-tip strong { color: var(--accent2, #06b6d4); }

/* ─── H2 ORIGINAL CACHÉ (quiz header le remplace) ────────────────────────── */
.layout > .panel:not(.viewer) > h2 { display: none !important; }

/* ─── QUIZ FOOTER ─────────────────────────────────────────────────────────── */
#gcq-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border, #1e2d45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface, #111827);
  flex-shrink: 0;
}

.gcq-footer-right { display: flex; gap: 6px; align-items: center; }

.gcq-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: none;
  line-height: 1;
  font-family: inherit;
}

.gcq-btn-back {
  background: transparent;
  color: var(--muted, #64748b);
  border: 1px solid var(--border, #1e2d45);
}
.gcq-btn-back:hover { color: var(--text, #f1f5f9); border-color: var(--muted, #64748b); }

.gcq-btn-skip {
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 11.5px;
  font-weight: 400;
  padding: 7px 8px;
}
.gcq-btn-skip:hover { color: var(--text, #f1f5f9); }

.gcq-btn-next {
  background: var(--accent, #3b82f6);
  color: #fff;
  padding: 8px 15px;
}
.gcq-btn-next:hover { background: #2563eb; }

/* ─── OVERLAY DÉCISION ─────────────────────────────────────────────────────── */
#gcq-decision {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #f1f5f9;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: 68px;
  bottom: 52px;
}

.gcq-decision-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.gcq-decision-card--cta {
  border-color: #0e766e;
}

.gcq-decision-q {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 5px;
  line-height: 1.3;
}

.gcq-decision-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}

/* ─── CARTES OUI/NON ──────────────────────────────────────────────────────── */
.gcq-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gcq-yn-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 8px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  color: #1e293b;
  font-family: inherit;
}

.gcq-yn-btn:hover {
  border-color: #0e766e;
  background: rgba(14,118,110,.06);
  transform: translateY(-2px);
}

.gcq-yn-btn--selected {
  border-color: #0e766e !important;
  background: rgba(14,118,110,.1) !important;
}

.gcq-yn-icon { font-size: 24px; }
.gcq-yn-label { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.gcq-yn-desc  { font-size: 11px; color: var(--muted, #64748b); text-align: center; line-height: 1.4; }

/* ─── RÉCAPITULATIF (étape Contact) ──────────────────────────────────────── */
.gcq-summary {
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
}

.gcq-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.gcq-summary-row:last-child { border-bottom: none; }
.gcq-summary-row span:last-child { font-weight: 600; color: var(--accent, #3b82f6); }

/* ─── BOUTON CTA ──────────────────────────────────────────────────────────── */
.gcq-place-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--accent, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.gcq-place-btn:hover { background: #2563eb; transform: translateY(-1px); }

.gcq-place-btn--cta {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  font-size: 14px;
  padding: 13px 16px;
}
.gcq-place-btn--cta:hover { opacity: .9; transform: translateY(-1px); }

/* ─── HINT INLINE ─────────────────────────────────────────────────────────── */
.gcq-hint {
  font-size: 12px;
  color: var(--muted, #64748b);
  padding: 8px 11px;
  background: rgba(255,255,255,.03);
  border-radius: 7px;
  margin: 8px 0;
  line-height: 1.5;
}

.gcq-inline-btn {
  background: var(--accent, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ─── COACH MARKS ─────────────────────────────────────────────────────────── */
#gc-coachmark {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}
#gc-coachmark.gcm-visible { display: block; }

.gcm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  pointer-events: none;
}

.gcm-hole {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.gcm-tooltip {
  position: absolute;
  background: #fff;
  color: #0f172a;
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  pointer-events: all;
  transform: translateX(-50%);
}

.gcm-tooltip-text {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.45;
  color: #0f172a;
}

.gcm-tooltip-skip {
  font-size: 11.5px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
