/* Guide Devis — Se laisser guider
   Charte toutpourvostravaux.fr : orange #F28C28 / #F08E20, texte #1E1E1E */

.gd-fab,
.gd-inline-btn,
.gd-overlay,
.gd-overlay * {
  --gd-orange: #F28C28;
  --gd-orange-dark: #E07B15;
  --gd-noir: #1E1E1E;
  --gd-anthracite: #2C2C2C;
  --gd-gris-clair: #EAEAEA;
  --gd-gris-moyen: #B5B5B5;
  --gd-blanc: #FFFFFF;
  --gd-text: #222222;
  --gd-muted: #6b6b6b;
  --gd-soft: #FCF3E9; /* orange très clair pour les fonds sélectionnés */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.gd-lock { overflow: hidden; }

/* ---- Bouton flottant ---- */
.gd-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 50px;
  background: var(--gd-orange);
  color: var(--gd-blanc);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(242, 140, 40, .42);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.gd-fab:hover { background: var(--gd-orange-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(224, 123, 21, .5); color: var(--gd-blanc); }
.gd-fab svg { flex: 0 0 auto; }

@media (max-width: 600px) {
  .gd-fab { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 14px; }
}

/* ---- Bouton inline (shortcode) ---- */
.gd-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  background: var(--gd-orange);
  color: var(--gd-blanc);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.gd-inline-btn:hover { background: var(--gd-orange-dark); transform: translateY(-2px); color: var(--gd-blanc); }

/* ---- Overlay + modale ---- */
.gd-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 30, 30, .58);
  backdrop-filter: blur(2px);
  animation: gd-fade .2s ease;
}
.gd-overlay[hidden] { display: none; }
@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }

.gd-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--gd-blanc);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: gd-pop .22s cubic-bezier(.2, .9, .3, 1);
}
@keyframes gd-pop { from { transform: translateY(14px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }

/* Bouton fermer — pastille nette, bien détachée du contenu */
.gd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gd-gris-clair);
  color: var(--gd-noir);
  font-size: 24px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.gd-close:hover { background: var(--gd-orange) !important; color: var(--gd-blanc) !important; }
.gd-close:focus-visible { outline: 2px solid var(--gd-orange); outline-offset: 2px; }

.gd-progress { height: 5px; background: var(--gd-gris-clair); flex: 0 0 auto; }
.gd-progress-bar { height: 100%; width: 0; background: var(--gd-orange); transition: width .3s ease; }

/* padding-right élargi pour ne jamais passer sous le bouton fermer */
.gd-body { padding: 32px 28px 26px; padding-right: 60px; overflow-y: auto; color: var(--gd-text); }

/* ---- Étapes ---- */
.gd-step { display: flex; flex-direction: column; }
.gd-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gd-orange-dark);
  background: var(--gd-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.gd-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: var(--gd-noir); font-weight: 700; }
.gd-sub { margin: 0 0 18px; color: var(--gd-muted); font-size: 15px; line-height: 1.5; }
.gd-content { margin-bottom: 8px; }

/* Intro / success centrés */
.gd-intro, .gd-success { text-align: center; align-items: center; padding: 14px 0 6px; }
.gd-intro-icon { font-size: 48px; margin-bottom: 8px; }
.gd-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gd-soft); color: var(--gd-orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 4px auto 14px;
}

/* Cartes de choix */
.gd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-card {
  text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--gd-gris-clair);
  border-radius: 8px;
  background: var(--gd-blanc);
  color: var(--gd-noir);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.gd-card:hover { border-color: var(--gd-orange); background: var(--gd-soft) !important; color: var(--gd-noir) !important; }
.gd-card.gd-selected { border-color: var(--gd-orange); background: var(--gd-soft) !important; color: var(--gd-noir) !important; box-shadow: inset 0 0 0 1px var(--gd-orange); }
.gd-card-sm { font-size: 14px; padding: 12px 14px; }
.gd-card-unsure { grid-column: 1 / -1; color: var(--gd-muted); font-style: italic; }

@media (max-width: 480px) {
  .gd-cards { grid-template-columns: 1fr; }
}

/* Pills (choix rapides) */
.gd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gd-pill {
  padding: 9px 14px;
  border: 2px solid var(--gd-gris-clair);
  border-radius: 40px;
  background: var(--gd-blanc);
  color: var(--gd-noir);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.gd-pill:hover { border-color: var(--gd-orange); background: var(--gd-soft) !important; color: var(--gd-noir) !important; }
.gd-pill.gd-selected, .gd-pill.gd-selected:hover { border-color: var(--gd-orange); background: var(--gd-orange) !important; color: var(--gd-blanc) !important; }

/* Champs */
.gd-label { display: block; font-size: 14px; font-weight: 600; margin: 4px 0 6px; color: var(--gd-noir); }
.gd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-field { margin-bottom: 14px; }
.gd-input, .gd-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--gd-gris-clair);
  border-radius: 6px;
  font-size: 15px;
  color: var(--gd-text);
  background: var(--gd-blanc);
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .15s ease;
}
.gd-input:focus, .gd-textarea:focus { outline: none; border-color: var(--gd-orange); }
.gd-textarea { resize: vertical; min-height: 110px; margin-bottom: 14px; }
.gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 480px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-body { padding: 28px 18px 22px; padding-right: 54px; }
  .gd-title { font-size: 20px; }
}

/* Actions */
.gd-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.gd-actions-center { justify-content: center; }
.gd-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, opacity .15s ease, transform .1s ease;
}
.gd-btn-primary, .gd-btn-primary:hover { background: var(--gd-orange); color: var(--gd-blanc) !important; }
.gd-btn-primary:hover { background: var(--gd-orange-dark) !important; }
.gd-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.gd-btn-lg { padding: 14px 36px; font-size: 16px; }
.gd-btn-ghost, .gd-btn-ghost:hover { background: transparent !important; }
.gd-btn-ghost { color: var(--gd-muted) !important; }
.gd-btn-ghost:hover { color: var(--gd-noir) !important; text-decoration: underline; }

.gd-error { color: #c0392b; font-size: 14px; margin-top: 10px; min-height: 1em; }
