/* AS DÉCAP — Simulateur devis + Guide mesure (harmonisé cuivre / midnight) */

/* ═══ MODAL OVERLAY ═══ */
.dv-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000; /* au-dessus de tout : nav, gbar, FAB, sticky, promo, cookies (9999), lightbox */
  background: rgba(10, 16, 24, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
}
.dv-overlay--open { opacity: 1; pointer-events: auto; }
.dv-overlay--open .sim-modal { transform: translateY(0); opacity: 1; }

/* ═══ SIMULATEUR MODAL ═══ */
.sim-modal {
  background: var(--ds-midnight-soft);
  width: 100%;
  max-width: 960px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(184, 115, 75, 0.15);
  color: #fff;
}

.sim-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: var(--ds-midnight);
}
.sim-modal-tag {
  font-family: var(--ds-font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ds-copper-light);
  margin-bottom: 4px;
}
.sim-modal-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}
.sim-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px;
  transition: color 0.15s;
  display: flex;
}
.sim-close:hover { color: #fff; }

.sim-body { overflow-y: auto; flex: 1; padding: 0; }

/* Stepper */
.sim-stepper {
  display: flex;
  gap: 0;
  padding: 0 28px;
  background: var(--ds-midnight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.sim-stepper-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-family: var(--ds-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sim-stepper-item.is-active { color: #fff; border-bottom-color: var(--ds-copper); }
.sim-stepper-item.is-done { color: var(--ds-copper-light); }
.sim-stepper-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
}
.sim-stepper-item.is-done .sim-stepper-check {
  background: rgba(76, 175, 120, 0.2);
  border-color: rgba(76, 175, 120, 0.5);
  color: #6fcf97;
}
.sim-stepper-item.is-active .sim-stepper-check {
  background: rgba(184, 115, 75, 0.25);
  border-color: var(--ds-copper);
  color: var(--ds-copper-light);
}

/* Steps */
.sim-step { display: none; padding: 28px; }
.sim-step.is-active { display: block; }
.sim-step-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.sim-step-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ds-text-light-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Counter */
.sim-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
}
.sim-counter-btn {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(184, 115, 75, 0.45);
  background: rgba(184, 115, 75, 0.1);
  color: var(--ds-copper-light);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.sim-counter-btn:hover { background: rgba(184, 115, 75, 0.22); border-color: var(--ds-copper); }
.sim-counter-val {
  font-family: var(--ds-font-display);
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

/* Form fields */
.sim-label {
  display: block;
  font-family: var(--ds-font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}
.sim-input,
.sim-select,
.sim-textarea {
  width: 100%;
  font-family: var(--ds-font-body);
  font-size: 0.88rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 11px 14px;
  transition: border-color 0.2s;
}
.sim-input:focus,
.sim-select:focus,
.sim-textarea:focus {
  outline: none;
  border-color: var(--ds-copper);
}
.sim-input::placeholder,
.sim-textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.sim-select { cursor: pointer; }
.sim-select option { background: var(--ds-midnight); color: #fff; }
.sim-textarea { resize: vertical; min-height: 72px; }
.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sim-field { margin-bottom: 16px; }
.sim-dims-group.is-hidden { display: none; }

/* Label row + help button */
.sim-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sim-label-row .sim-label { margin-bottom: 0; }
.sim-help-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ds-copper);
  background: rgba(184, 115, 75, 0.08);
  color: var(--ds-copper-light);
  font-family: var(--ds-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.sim-help-btn:hover,
.sim-help-btn:focus-visible {
  background: rgba(184, 115, 75, 0.2);
  border-color: var(--ds-copper-light);
  color: #fff;
  outline: none;
}
.sim-help-btn:active { transform: scale(0.94); }

/* Pill buttons (colonnes, hauteur) */
.sim-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-pill {
  font-family: var(--ds-font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sim-pill:hover { border-color: rgba(184, 115, 75, 0.4); }
.sim-pill.is-active {
  border-color: var(--ds-copper);
  background: rgba(184, 115, 75, 0.18);
  color: #fff;
}

/* Step 2 layout */
.sim-config-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.sim-rad-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.sim-rad-tab {
  font-family: var(--ds-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.15s;
}
.sim-rad-tab.is-active {
  border-color: var(--ds-copper);
  background: rgba(184, 115, 75, 0.15);
  color: #fff;
}
.sim-rad-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
}
.sim-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 12px 0;
}
.sim-check input { accent-color: var(--ds-copper); margin-top: 3px; }

.sim-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 12px 0 16px;
}
.sim-consent input { accent-color: var(--ds-copper); margin-top: 3px; flex-shrink: 0; }
.sim-consent a { color: var(--ds-copper); text-decoration: underline; }

/* Preview panel */
.sim-preview {
  background: var(--ds-midnight);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  position: sticky;
  top: 0;
}
.sim-preview-thumbs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.sim-preview-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, border-color 0.15s;
}
.sim-preview-thumb.is-active { opacity: 1; border-color: var(--ds-copper); }
.sim-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sim-preview-main {
  aspect-ratio: 4/3;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.sim-preview-main img { width: 100%; height: 100%; object-fit: cover; }

/* Step 3 */
.sim-options-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sim-recap-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
}
.sim-recap-card h4 {
  font-family: var(--ds-font-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.sim-recap-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
}
.sim-recap-line strong { color: #fff; font-weight: 600; }
.sim-price-panel {
  background: linear-gradient(135deg, rgba(184, 115, 75, 0.15), rgba(184, 115, 75, 0.05));
  border: 1px solid rgba(184, 115, 75, 0.3);
  padding: 24px;
  text-align: center;
}
.sim-price-label {
  font-family: var(--ds-font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-copper-light);
  margin-bottom: 8px;
}
.sim-price-total {
  font-family: var(--ds-font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--ds-copper-light);
  line-height: 1;
  margin-bottom: 6px;
}
.sim-price-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.sim-pro-hint {
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  margin: -8px 0 14px;
}
.sim-tva-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid rgba(184, 115, 75, 0.35);
  border-radius: 2px;
  background: rgba(184, 115, 75, 0.08);
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.sim-tva-notice__icon {
  flex-shrink: 0;
  color: var(--ds-copper-light);
  margin-top: 1px;
}
.sim-tva-notice__text { flex: 1; }
.sim-tva-notice__link {
  flex-shrink: 0;
  font-family: var(--ds-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-copper-light);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.sim-tva-notice__link:hover { color: #fff; }
.sim-quote-summary .sim-tva-notice { margin-top: 14px; }

/* Message devis personnalisé (step 3 & step 4) */
.sim-quote-message {
  background: linear-gradient(135deg, rgba(184, 115, 75, 0.12), rgba(184, 115, 75, 0.04));
  border: 1px solid rgba(184, 115, 75, 0.28);
  border-radius: 6px;
  padding: 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.sim-quote-message__title {
  font-family: var(--ds-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ds-copper-light);
  margin: 0;
}
.sim-quote-message p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}
.sim-quote-message strong { color: #fff; }
.sim-quote-message--compact {
  padding: 16px 20px;
  margin-top: 16px;
  text-align: left;
  border-radius: 4px;
}
.sim-quote-message--compact .sim-quote-message__title { font-size: 0.9rem; }
.sim-quote-message--compact p { font-size: 0.78rem; }

/* Step 4 */
.sim-devis-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}
.sim-quote-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
}
.sim-quote-summary h4 {
  font-family: var(--ds-font-display);
  font-size: 1rem;
  margin-bottom: 14px;
}
.sim-quote-item {
  font-size: 0.8rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
.sim-quote-item strong { color: #fff; display: block; margin-bottom: 2px; }
.sim-quote-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid rgba(184, 115, 75, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sim-quote-total span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.sim-quote-total span:last-child {
  font-family: var(--ds-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ds-copper-light);
}

/* Drop zone photos */
.sim-drop {
  border: 2px dashed rgba(184, 115, 75, 0.45);
  background: rgba(184, 115, 75, 0.06);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  margin-top: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.sim-drop:hover,
.sim-drop--over { border-color: var(--ds-copper); background: rgba(184, 115, 75, 0.12); }
.sim-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.sim-drop-text { font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }
.sim-drop-text span { color: var(--ds-copper-light); text-decoration: underline; }
.sim-drop-hint { font-size: 0.62rem; color: rgba(255, 255, 255, 0.35); margin-top: 6px; }
.sim-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sim-preview-img {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.sim-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.sim-preview-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Help box */
.sim-help-box {
  background: rgba(184, 115, 75, 0.1);
  border: 1px solid rgba(184, 115, 75, 0.25);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}
.sim-help-box strong { color: #fff; display: block; margin-bottom: 4px; }
.sim-help-box a { color: var(--ds-copper-light); font-weight: 600; }

/* Nav buttons */
.sim-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sim-nav .ds-btn { flex: 1; justify-content: center; }
.sim-submit {
  width: 100%;
  background: var(--ds-copper);
  border: none;
  cursor: pointer;
  padding: 16px 24px;
  font-family: var(--ds-font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s;
  margin-top: 16px;
}
.sim-submit:hover { background: var(--ds-copper-light); }
.sim-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* Success */
.sim-success {
  padding: 48px 28px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sim-success.is-visible { display: flex; }
.sim-success-title {
  font-family: var(--ds-font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}
.sim-success-msg {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 400px;
}
.sim-success-tel {
  font-family: var(--ds-font-display);
  font-size: 1.4rem;
  color: var(--ds-copper-light);
  font-weight: 600;
}

/* Inline host (contact-devis) */
.sim-inline-host {
  max-width: 960px;
  margin: 0 auto;
}
.ds-section--ivory .sim-inline-host .sim-modal {
  box-shadow: var(--ds-shadow-lg);
}
.sim-inline-host .sim-modal {
  max-width: 100%;
  max-height: none;
  transform: none;
  opacity: 1;
  box-shadow: var(--ds-shadow-md);
}
.sim-inline-host .sim-close { display: none; }

/* ═══ GUIDE MESURE (3 colonnes dark) ═══ */
.guide-tech {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--ds-midnight);
  color: #fff;
}
.gt-head { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.gt-h2 {
  font-family: var(--ds-font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 12px 0 16px;
  color: #fff;
}
.gt-h2 em { font-style: italic; color: var(--ds-copper-light); }
.gt-lead {
  font-family: var(--ds-font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ds-text-light-muted);
}

.gt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 72px;
}
.gt-card {
  background: var(--ds-midnight);
  display: flex;
  flex-direction: column;
}
.gt-card-num {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  padding: 28px 28px 0;
  letter-spacing: -0.04em;
}
.gt-card-svg { padding: 0 20px; flex-shrink: 0; }
.gt-card-svg svg { width: 100%; height: auto; display: block; }
.gt-card-body { padding: 20px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.gt-card-badge {
  font-family: var(--ds-font-ui);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ds-copper-light);
  background: rgba(184, 115, 75, 0.12);
  border: 1px solid rgba(184, 115, 75, 0.3);
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 12px;
}
.gt-card-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}
.gt-card-desc {
  font-family: var(--ds-font-body);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
  margin-bottom: 16px;
}
.gt-card-desc strong,
.gt-card-desc .gt-accent { color: rgba(255, 255, 255, 0.88); font-weight: 400; }
.gt-card-desc .gt-accent { color: var(--ds-copper-light); }
.gt-card-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-card-pill {
  font-family: var(--ds-font-ui);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}
.gt-card-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--ds-font-body);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(184, 115, 75, 0.06);
  border: 1px solid rgba(184, 115, 75, 0.18);
  border-left: 2px solid var(--ds-copper);
  padding: 10px 12px;
  margin-top: 4px;
}
.gt-tip-icon { flex-shrink: 0; line-height: 1.4; }

.gt-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 72px;
  position: relative;
}
.gt-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--ds-copper), rgba(184, 115, 75, 0.2), var(--ds-copper));
  opacity: 0.4;
}
.gt-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.gt-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(184, 115, 75, 0.4);
  background: rgba(184, 115, 75, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.gt-step-icon svg { color: var(--ds-copper-light); width: 22px; height: 22px; }
.gt-step-n {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--ds-copper);
  border-radius: 50%;
  font-family: var(--ds-font-ui);
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gt-step-title {
  font-family: var(--ds-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.gt-step-desc {
  font-family: var(--ds-font-body);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
}

.gt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, rgba(184, 115, 75, 0.18), rgba(184, 115, 75, 0.06));
  border: 1px solid rgba(184, 115, 75, 0.25);
  padding: 40px 48px;
  flex-wrap: wrap;
}
.gt-cta h3 {
  font-family: var(--ds-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.gt-cta p {
  font-family: var(--ds-font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}
.gt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gt-cta-link {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
.gt-cta-link:hover {
  border-color: var(--ds-copper-light) !important;
  color: var(--ds-copper-light) !important;
}

/* Page devis inline */
.devis-page-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 0.9rem;
  color: var(--ds-text-muted);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 900px) {
  .sim-config-layout,
  .sim-options-layout,
  .sim-devis-layout { grid-template-columns: 1fr; }
  .sim-preview { position: static; }
  .gt-cards { grid-template-columns: 1fr; }
  .gt-steps { flex-direction: column; gap: 32px; align-items: flex-start; }
  .gt-steps::before { display: none; }
  .gt-step { flex-direction: row; text-align: left; gap: 20px; align-items: flex-start; width: 100%; }
  .gt-step-icon { flex-shrink: 0; margin-bottom: 0; }
  .gt-cta { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  .gt-card-body { padding: 16px 20px 24px; }
  .gt-cta { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .sim-stepper-item span:not(.sim-stepper-check) { display: none; }
  .sim-step { padding: 20px 16px; }
  .sim-modal-head { padding: 16px; }
  .sim-stepper { padding: 0 12px; }
  .sim-row { grid-template-columns: 1fr; }
  .sim-counter-val { font-size: 2.4rem; }
  .dv-overlay { padding: 0; align-items: stretch; }
  .sim-modal { max-height: 100dvh; border: none; }
  .gt-cta { flex-direction: column; text-align: center; }
}

/* ═══ GUIDE AIDE MODALE (simulateur devis) ═══ */
.guide-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010; /* au-dessus du modal devis */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(8, 14, 22, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.guide-help-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.guide-help-modal {
  width: min(960px, 100%);
  max-height: min(90dvh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--ds-midnight);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.guide-help-overlay.is-open .guide-help-modal {
  transform: translateY(0);
}
.guide-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.guide-help-tag {
  font-family: var(--ds-font-ui);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ds-copper-light);
  margin-bottom: 6px;
}
.guide-help-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.guide-help-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.guide-help-close:hover,
.guide-help-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}
.guide-help-body {
  overflow-y: auto;
  padding: 16px 24px 8px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.guide-help-lead {
  font-family: var(--ds-font-body);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 20px;
  max-width: 560px;
}
.guide-help-cards {
  margin-bottom: 0;
  grid-template-columns: repeat(3, 1fr);
}
.guide-help-cards .gt-card {
  transition: box-shadow 0.25s, border-color 0.25s;
  border: 1px solid transparent;
}
.guide-help-cards .gt-card.is-highlighted {
  border-color: var(--ds-copper);
  box-shadow: inset 0 0 0 1px rgba(184, 115, 75, 0.35), 0 0 24px rgba(184, 115, 75, 0.12);
}
.guide-help-foot {
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  text-align: center;
}
.guide-help-link {
  font-family: var(--ds-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-copper-light);
  text-decoration: none;
  transition: color 0.2s;
}
.guide-help-link:hover { color: #fff; }

@media (max-width: 768px) {
  .guide-help-cards { grid-template-columns: 1fr; }
  .guide-help-head { padding: 16px 16px 10px; }
  .guide-help-body { padding: 12px 16px 8px; }
  .guide-help-foot { padding: 12px 16px 16px; }
  .guide-help-modal { max-height: 92dvh; }
}

/* ═══ SÉLECTEUR TYPE DE PROJET ═══ */
.sim-type-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.sim-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.sim-type-card {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all .2s;
  color: #fff;
}
.sim-type-card:hover {
  border-color: rgba(184, 115, 75, 0.5);
  background: rgba(184, 115, 75, 0.08);
}
.sim-type-card strong {
  display: block;
  font-size: .92rem;
  margin: 8px 0 4px;
  color: rgba(255, 255, 255, 0.85);
}
.sim-type-card > span:not(.sim-type-card__icon) {
  font-size: .76rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
  display: block;
}
.sim-type-card__icon { font-size: 1.6rem; display: block; }
.sim-type-card.is-active {
  border-color: var(--ds-copper);
  background: rgba(184, 115, 75, 0.12);
}
.sim-type-card.is-active strong { color: var(--ds-copper-light); }

/* ═══ HINT CHAMPS + BOUTON LIEN ═══ */
.sim-field-hint {
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 4px 0 0;
  line-height: 1.5;
}
.sim-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: .75rem;
  color: var(--ds-copper-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.sim-link-btn:hover { color: #fff; }

/* ═══ TYPE D'INSTALLATION + MESSAGE INFO ═══ */
.sim-req { color: var(--ds-copper-light); font-weight: 700; }
.sim-field-error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, .15) !important;
}
.sim-field-error + .sim-field-error-msg { display: block; }
.sim-field-error-msg {
  display: none;
  font-size: .75rem;
  color: #e89384;
  margin-top: 4px;
}
.sim-install-error {
  margin: 8px 0 0;
  font-family: var(--ds-font-body);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #e89384;
}
.install-message {
  display: none;
  margin-top: 10px;
  padding: 11px 14px;
  font-family: var(--ds-font-body);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ds-text-light-muted, rgba(255, 255, 255, 0.78));
  background: linear-gradient(180deg, rgba(232, 201, 126, 0.1), rgba(184, 115, 75, 0.08));
  border: 1px solid rgba(232, 201, 126, 0.32);
  border-left: 3px solid var(--ds-copper);
}
.install-message.is-visible { display: block; }

/* ═══ COULEUR RAL — CHAMP + APERÇU ═══ */
.ral-field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.ral-field-row .sim-input { flex: 1 1 150px; min-width: 0; }
.ral-picker-btn {
  flex-shrink: 0;
  font-family: var(--ds-font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 16px;
  border: 1.5px solid var(--ds-copper);
  background: rgba(184, 115, 75, 0.12);
  color: var(--ds-copper-light);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ral-picker-btn:hover,
.ral-picker-btn:focus-visible {
  background: rgba(184, 115, 75, 0.26);
  border-color: var(--ds-copper-light);
  color: #fff;
  outline: none;
}
.ral-preview {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ral-preview.is-visible { display: flex; }
.ral-preview__chip {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.ral-preview__chip.is-dark { border-color: rgba(255, 255, 255, 0.25); }
.ral-preview__chip--undecided {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 6px, rgba(255,255,255,0.06) 6px 12px);
  border-color: rgba(255, 255, 255, 0.3);
}
.ral-preview__label {
  font-family: var(--ds-font-body);
  font-size: 0.82rem;
  color: #fff;
}

/* ═══ LIEN NUANCIER + OPTION « À DÉFINIR » ═══ */
.ral-nuancier-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--ds-font-body);
  font-size: 0.78rem;
  color: var(--ds-gold, #e8c97e);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
.ral-nuancier-link:hover,
.ral-nuancier-link:focus-visible {
  color: var(--ds-copper-light, #d99a72);
  outline: none;
}
.ral-undecided {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.ral-picker-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.afr-ral-btn { padding: 11px 18px; }
.sim-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══ MODALE NUANCIER RAL ═══ */
.ral-modal {
  position: fixed;
  inset: 0;
  z-index: 100020; /* au-dessus du modal devis et du guide */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(8, 14, 22, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ral-modal.is-open { opacity: 1; pointer-events: auto; }
.ral-modal__panel {
  width: min(720px, 100%);
  max-height: min(88dvh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--ds-midnight);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.ral-modal.is-open .ral-modal__panel { transform: translateY(0); }
.ral-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.ral-modal__title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.ral-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ral-modal__close:hover,
.ral-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}
.ral-modal__sub {
  margin: 0;
  padding: 12px 22px 4px;
  font-family: var(--ds-font-body);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.ral-search-wrap {
  padding: 12px 22px 4px;
  flex-shrink: 0;
}
.ral-search {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--ds-font-body);
  font-size: 0.92rem;
  color: #fff;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.ral-search::placeholder { color: rgba(255, 255, 255, 0.4); }
.ral-search:focus {
  outline: none;
  border-color: var(--ds-copper, #b8734b);
  background: rgba(255, 255, 255, 0.08);
}
.ral-search-empty {
  margin: 10px 0 0;
  font-family: var(--ds-font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.ral-grid {
  overflow-y: auto;
  padding: 16px 22px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.ral-swatch[hidden] { display: none; }
.ral-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.ral-swatch:hover { border-color: rgba(184, 115, 75, 0.5); background: rgba(184, 115, 75, 0.08); }
.ral-swatch:active { transform: scale(0.97); }
.ral-swatch.is-selected {
  border-color: var(--ds-copper);
  background: rgba(184, 115, 75, 0.18);
  box-shadow: 0 0 0 1px rgba(232, 201, 126, 0.3);
}
.ral-swatch__chip {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.ral-swatch__chip.is-dark { border-color: rgba(255, 255, 255, 0.22); }
.ral-swatch__code {
  font-family: var(--ds-font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
}
.ral-swatch__name {
  font-family: var(--ds-font-body);
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .ral-picker-btn { flex: 1 1 100%; padding: 10px 16px; }
  .ral-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .ral-modal__panel { max-height: 92dvh; }
  .ral-search-wrap { padding: 10px 16px 4px; }
  .ral-search { font-size: 16px; }
  .ral-nuancier-link { font-size: 0.82rem; }
}
@media (max-width: 420px) {
  .ral-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}
