.simulator-shell {
  --color-primary: #CF984D;
  --color-primary-dark: #c28737;

  --color-bg-page: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-soft: rgba(207, 152, 77, 0.08);
  --color-bg-soft-2: rgba(207, 152, 77, 0.14);

  --color-border: rgba(11, 11, 11, 0.12);
  --color-border-soft: rgba(11, 11, 11, 0.08);

  --color-text: #121212;
  --color-text-muted: rgba(11, 11, 11, 0.72);
  --color-text-light: rgba(11, 11, 11, 0.56);

  --color-neutral-grad-1: #e8dfd1;
  --color-neutral-grad-2: #f7f1e8;

  --color-house-line: #CF984D;

  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-main: 0 18px 50px rgba(0, 0, 0, 0.10);
}



/* =========================
   RESET / BASE
   ========================= */

.simulator-shell,
.simulator-shell * {
  box-sizing: border-box;
}



html {
  scroll-behavior: smooth;
}



body.simulateur-page {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--color-bg-page);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.55;
}



body.simulateur-page main {
  display: block;
}



.simulator-shell img {
  max-width: 100%;
}



.simulator-shell button,
.simulator-shell input,
.simulator-shell select,
.simulator-shell textarea {
  font: inherit;
}



/* =========================
   STRUCTURE GLOBALE
   ========================= */

.simulator-shell .section {
  padding: 40px 0 48px;
}



.simulator-shell .section--light {
  background: transparent;
}



.simulator-shell .container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}



.simulator-shell .section-box {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-main);
  border: 1px solid var(--color-border-soft);
}




/* =========================
   HERO SIMULATEUR
   ========================= */

/* Container standard dans le hero (pas le override 1460px large du reste de la page) */
.simulator-shell .simulator-hero .container {
  max-width: var(--container);
  width: auto;
  padding: 0 22px;
}

/* H1 identique au hero standard (écrase le reset 32px du .simulator-shell h1) */
.simulator-shell .simulator-hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 20ch;
  margin-bottom: 16px;
}

/* CTA centré sous la timeline des étapes */
.simulator-shell .simulator-hero .hero__cta {
  display: flex;
  justify-content: center;
}

/* Bouton doré (écrase le .simulator-shell button { background: #1f1f1f; width: 100% }) */
.simulator-shell .simulator-hero .btn {
  background: var(--color-primary);
  color: #0b0b0b;
  width: auto;
  font-weight: 800;
}

.simulator-shell .simulator-hero .btn:hover {
  background: var(--color-primary-dark);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(207, 152, 77, 0.35);
}

.simulator-shell .simulator-hero .hero__scrim {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.20) 0%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(0, 0, 0, 0.48) 100%);
}



/* =========================
   TIMELINE HERO
   ========================= */

.simulator-shell .steps-timeline {
  width: 100%;
  max-width: 1100px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  gap: 0;
  align-items: center;
}



.simulator-shell .timeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  min-height: 110px;

  width: 100%;
  max-width: 260px;
  margin: 0 auto;

  text-align: left;
}


.simulator-shell .timeline-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  margin: 0 auto 10px;
  color: #0b0b0b;
  flex-shrink: 0;
}



.simulator-shell .timeline-text {
  text-align: left;
}



.simulator-shell .timeline-text strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 6px;
}



.simulator-shell .timeline-text span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}



.simulator-shell .timeline-separator {
  position: relative;
  height: 100%;
}



.simulator-shell .timeline-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
}



/* =========================
   HERO BUTTON
   ========================= */





/* =========================
   PAGE / CARD (ancien markup conservé)
   ========================= */

.simulator-shell .page {
  padding: 40px 16px 48px;
}



.simulator-shell .card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-main);
  border: 1px solid var(--color-border-soft);
}



.simulator-shell h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.1;
}



.simulator-shell .step-block+.step-block {
  margin-top: 34px;
}



.simulator-shell .step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--color-text);
  line-height: 1.35;
}



/* =========================
   DROPZONE / UPLOAD
   ========================= */

.simulator-shell .dropzone {
  margin-top: 10px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;

  width: 100%;
  cursor: pointer;
}

.simulator-shell .dropzone.dragover {
  border-color: var(--color-primary);
  background: var(--color-bg-soft);
  transform: scale(1.01);
  box-shadow: var(--shadow-soft);
}

/* ICON */
.simulator-shell .dropzone-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.simulator-shell .dropzone-icon-svg {
  width: 48px;
  height: 48px;
  display: block;
}

/* TEXT */
.simulator-shell .dropzone-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.simulator-shell .dropzone-subtitle {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

/* BUTTON */
.simulator-shell .upload-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: auto;
  color: inherit;
  text-decoration: underline;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.simulator-shell .upload-link:hover {
  opacity: 0.75;
}

/* FILE NAME */
.simulator-shell .file-name {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--color-text-light);
  min-height: 20px;
}

/* =========================
   RESPONSIVE TEXT & ICONS
   ========================= */

/* Desktop par défaut */
.desktop-text,
.desktop-only {
  display: block;
}

.mobile-text {
  display: none;
}

.simulator-shell .dropzone-icon .icon-upload {
  display: block !important;
}

.simulator-shell .dropzone-icon .icon-camera {
  display: none !important;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

  /* Cache desktop */
  .desktop-text,
  .desktop-only {
    display: none !important;
  }

  /* Active mobile */
  .mobile-text {
    display: block !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    width: 100%;
  }

  .simulator-shell .dropzone-icon .icon-upload {
    display: none !important;
  }

  .simulator-shell .dropzone-icon .icon-camera {
    display: block !important;
  }

  /* Structure propre mobile */
  .simulator-shell .dropzone {
    width: 100%;
    text-align: center;
    padding: 26px 16px;
  }

  .simulator-shell .dropzone-icon {
    margin-bottom: 12px;
  }

  .simulator-shell .dropzone-title {
    margin: 0;
  }

  /* On enlève le sous-texte inutile sur mobile */
  .simulator-shell .dropzone-subtitle {
    display: none;
  }
}


/* =========================
   ZONE MASQUE
   ========================= */

.simulator-shell .zone-help {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft-2);
  color: var(--color-text-muted);
  line-height: 1.5;
}



.simulator-shell .canvas-wrapper {
  width: 100%;
  position: relative;
}



.simulator-shell #canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: crosshair;
  background: #fafafa;
  touch-action: none;
}



.simulator-shell #canvas.locked {
  cursor: default;
}



/* =========================
   TEXTURES
   ========================= */

.simulator-shell .texture-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}



.simulator-shell .texture-card {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}



.simulator-shell .texture-card:hover {
  transform: translateY(-1px);
}



.simulator-shell .texture-card img,
.simulator-shell .neutral-texture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 5px;
}



.simulator-shell .neutral-texture {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-neutral-grad-1), var(--color-neutral-grad-2));
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  padding: 4px;
}



.simulator-shell .texture-card span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: #1f1f1f;
}



.simulator-shell .texture-card.selected {
  border-color: #1f1f1f;
  box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.08);
}



.simulator-shell .texture-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}



/* =========================
   BOUTONS GÉNÉRAUX
   ========================= */

.simulator-shell button {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  margin-top: 8px;
  border: none;
  background: #1f1f1f;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}



.simulator-shell button:hover {
  opacity: 0.92;
}



.simulator-shell button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}



.simulator-shell .secondary-button {
  margin-top: 14px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}



.simulator-shell .secondary-button:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}



.simulator-shell .cta-button {
  margin-top: 20px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-primary);
  color: #0b0b0b;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}



.simulator-shell .cta-button:hover {
  background: var(--color-primary-dark);
  opacity: 0.96;
}



/* =========================
   STATUS / TEXTES MODULE
   ========================= */

.simulator-shell .status {
  margin-top: 18px;
  min-height: 24px;
  color: var(--color-text-muted);
}



.simulator-shell .loading-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 420px;
}



.simulator-shell .dynamic-message {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg,
      var(--color-primary),
      var(--color-primary-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 28px;
}



.simulator-shell .disclaimer {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  text-align: center;
}



/* =========================
   LOADING BLOCK
   ========================= */

.simulator-shell .results-loading {
  margin-top: 24px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}



/* =========================
   ANIMATION OUVRIER
   ========================= */

.simulator-shell .build-animation {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
}



.simulator-shell .build-scene {
  width: 100%;
  height: auto;
  display: block;
}



.simulator-shell .worker-fill {
  fill: #242529;
}



.simulator-shell .worker-helmet {
  fill: var(--color-primary);
}



.simulator-shell .hammer-handle {
  fill: var(--color-primary);
}



.simulator-shell .hammer-head {
  fill: #242529;
}



.simulator-shell .hammer-group {
  transform-origin: 86px 122px;
  transform: rotate(-34deg);
  transition: transform 0.16s ease;
}



.simulator-shell .hammer-group.down {
  transform: rotate(-10deg);
}



.simulator-shell .impact {
  opacity: 0;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
}



.simulator-shell .impact.visible {
  opacity: 1;
}



.simulator-shell .build-line {
  stroke: var(--color-house-line);
  stroke-width: 6;
  stroke-linecap: round;
}



.simulator-shell .house-part {
  fill: var(--color-house-line);
  opacity: 0.18;
  transition: opacity 0.2s ease;
}



.simulator-shell .house-window {
  fill: none;
  stroke: #2b2b2b;
  stroke-width: 4;
  opacity: 0.18;
  transition: opacity 0.2s ease;
}



.simulator-shell .house-part.active,
.simulator-shell .house-window.active {
  opacity: 1;
}



/* =========================
   RÉSULTATS
   ========================= */

.simulator-shell .results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}



.simulator-shell .result-card {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}



.simulator-shell .result-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}



.simulator-shell .result-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-soft-2);
  min-height: 220px;
}



.simulator-shell .result-image {
  width: 100%;
  display: block;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.35s ease, transform 0.35s ease;
}



.simulator-shell .result-image.loaded {
  opacity: 1;
  transform: scale(1);
}



.simulator-shell .result-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--color-bg-soft-2) 0%,
      #fdfbf7 50%,
      var(--color-bg-soft-2) 100%);
  background-size: 200% 100%;
  animation: resultShimmer 1.2s infinite linear;
}



.simulator-shell .result-card.ready .result-skeleton {
  display: none;
}



.simulator-shell .result-actions {
  margin-top: 10px;
  display: flex;
  width: 100%;
}



.simulator-shell .result-actions a,
.simulator-shell .result-actions .result-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #0b0b0b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: #f2a65a;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}



.simulator-shell .result-actions a:hover,
.simulator-shell .result-actions .result-download-btn:hover {
  background: #e89440;
}



@keyframes resultShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}



/* =========================
   PHOTO GUIDELINES
   ========================= */

.simulator-shell .photo-guidelines {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft-2);
  border: 1px solid rgba(207, 152, 77, 0.28);
}



.simulator-shell .guidelines-title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  color: #1f1f1f;
}



.simulator-shell .guidelines-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #4d4d4d;
}



.simulator-shell .guidelines-list li {
  margin-bottom: 4px;
}



/* VISUEL AVEC IMAGES */

.simulator-shell .guidelines-visual {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}



.simulator-shell .guidelines-card {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5ded2;
  background: #fff;
  display: flex;
  flex-direction: column;
}



.simulator-shell .guidelines-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}



.simulator-shell .guidelines-card span {
  display: block;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}



.simulator-shell .guidelines-card.good span {
  color: #2e7d32;
  background: rgba(207, 152, 77, 0.18);
}



.simulator-shell .guidelines-card.bad span {
  color: #a06b1a;
  background: rgba(207, 152, 77, 0.18);
}



.simulator-shell .guidelines-context {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}



/* =========================
   AIDE ÉTAPE 2 : TEXTE + EXEMPLE
   ========================= */

.simulator-shell .zone-help-block {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft-2);
  border: 1px solid rgba(207, 152, 77, 0.28);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}



.simulator-shell .zone-help {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-size: 15px;
}



.simulator-shell .zone-help-main {
  display: flex;
  align-items: center;
  min-height: 100%;
}



.simulator-shell .zone-help-example {
  display: flex;
  flex-direction: column;
}



.simulator-shell .mask-example-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #3f3a34;
  line-height: 1.4;
}



.simulator-shell .mask-example-thumb {
  max-width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
}



.simulator-shell .mask-example-thumb img {
  display: block;
  width: 100%;
  height: auto;
}



/* =========================
   BARRE DE PROGRESSION LOADING
   ========================= */

.simulator-shell .loading-progress-wrap {
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
}



.simulator-shell .loading-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(207, 152, 77, 0.18);
  overflow: hidden;
  border: 1px solid rgba(207, 152, 77, 0.22);
}



.simulator-shell .loading-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%);
  transition: width 0.35s ease;
}



.simulator-shell .loading-progress-text {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: right;
}



/* =========================
   AVANT / APRÈS
   ========================= */

.simulator-shell .before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #f3efe7;
  user-select: none;
}



.simulator-shell .before-after-base,
.simulator-shell .before-after-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}



.simulator-shell .before-after-base img,
.simulator-shell .before-after-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}



.simulator-shell .before-after-overlay {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.95);
}



.simulator-shell .before-after-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  pointer-events: none;
}



.simulator-shell .before-after-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -18px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}



.simulator-shell .before-after-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}



.simulator-shell .before-after-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}



.simulator-shell .before-after-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}



.simulator-shell .before-after-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}



.simulator-shell .before-after-label.after {
  color: var(--color-primary-dark);
}



.simulator-shell .before-after-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -140%);
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.92;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}



.simulator-shell .before-after:hover .before-after-hint {
  opacity: 1;
}



/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 860px) {

  .simulator-shell .steps-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;

    justify-items: center;
  }



  .simulator-shell .timeline-separator {
    display: none;
  }



  .simulator-shell .timeline-step {
    align-items: flex-start;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
  }



  .simulator-shell .timeline-text {
    max-width: none;
  }



  .simulator-shell .page {
    padding: 28px 16px 40px;
  }



  .simulator-shell .card {
    padding: 24px 18px;
  }



  .simulator-shell .section {
    padding: 28px 0 40px;
  }



  .simulator-shell .container {
    padding: 0 16px;
  }



  .simulator-shell .section-box {
    padding: 28px 20px;
  }



  .simulator-shell .step-block+.step-block {
    margin-top: 28px;
  }



  .simulator-shell .results-grid {
    grid-template-columns: 1fr;
  }



  .simulator-shell .texture-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }






  .simulator-shell .zone-help-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }



  .simulator-shell .zone-help-main {
    align-items: flex-start;
  }


}




/* =========================
   HIÉRARCHIE ÉDITORIALE DES ÉTAPES
   ========================= */

.simulator-shell .step-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.62);
}



.simulator-shell .step-heading {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 900px;
}



.simulator-shell .step-intro {
  margin: 20px 0 0;
  max-width: 980px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
}



.simulator-shell .step-title {
  display: none;
}



/* =========================
   ÉTAPE 1 — MISE EN PAGE ÉDITORIALE
   ========================= */

.simulator-shell .photo-guidelines {
  margin-top: 30px;
}



.simulator-shell .photo-guidelines-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: start;
}



.simulator-shell .guidelines-left {
  display: flex;
  flex-direction: column;
}



.simulator-shell .guidelines-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}



.simulator-shell .guidelines-list {
  margin: 0;
  padding-left: 22px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
}



.simulator-shell .guidelines-list li {
  margin-bottom: 2px;
}



.simulator-shell .guidelines-context {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
}



.simulator-shell .guidelines-right .guidelines-visual {
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}



.simulator-shell .guidelines-card img {
  height: 190px;
}



.simulator-shell .guidelines-card span {
  padding: 10px 8px;
  font-size: 14px;
}


/* =========================
   ÉTAPE 2 — VERSION FINALE
   ========================= */

.simulator-shell .step-zone-layout-final {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}



.simulator-shell .step-zone-help-card,
.simulator-shell .step-zone-canvas-card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  min-width: 0;
}



.simulator-shell .step-zone-help-card {
  display: flex;
  flex-direction: column;
}



.simulator-shell .step-zone-help-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}



.simulator-shell .step-zone-help-list {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
}



.simulator-shell .step-zone-help-list li+li {
  margin-top: 2px;
}



.simulator-shell .step-zone-canvas-card {
  display: flex;
  flex-direction: column;
}



.simulator-shell .step-zone-canvas-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}



.simulator-shell .step-zone-canvas-card .canvas-wrapper {
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: canvasFadeIn 0.4s ease forwards;
}



.simulator-shell .step-zone-canvas-card #canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: crosshair;
  background: #fafafa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}



.simulator-shell .step-zone-canvas-card #canvas.locked {
  cursor: default;
}



.simulator-shell #stepZone .mask-example-thumb {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: #fff;
  box-shadow: none;
}



.simulator-shell #stepZone .mask-example-thumb img {
  display: block;
  width: 100%;
  height: auto;
}



.simulator-shell #changeImageButton {
  margin-top: 18px;
}



/* Actions étape 2 */

.simulator-shell .step-zone-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}



.simulator-shell #confirmZoneButton {
  margin-top: 0;
}



.simulator-shell #changeImageButton {
  margin-top: 0;
}





/* =========================
   RESPONSIVE — ÉTAPE 2 FINALE
   ========================= */

@media (max-width: 1024px) {

  .simulator-shell .step-zone-layout-final {
    grid-template-columns: 1fr;
    gap: 20px;
  }


}



@media (max-width: 640px) {

  .simulator-shell .step-zone-help-card,
  .simulator-shell .step-zone-canvas-card {
    padding: 18px;
  }



  .simulator-shell .step-zone-help-title,
  .simulator-shell .step-zone-canvas-title {
    font-size: 14px;
  }



  .simulator-shell .step-zone-help-list {
    font-size: 14px;
    line-height: 1.65;
  }



  .simulator-shell .step-zone-canvas-card #canvas {
    max-height: 420px;
  }


}



/* =========================
   ÉTAPE 3 / ÉTAPE 4 — ESPACEMENTS
   ========================= */

.simulator-shell #stepTextures {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-soft);
}



.simulator-shell #stepTextures .texture-grid {
  margin-top: 30px;
}



.simulator-shell #stepGenerate {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-soft);
}



.simulator-shell #stepGenerate button {
  margin-top: 8px;
}



/* =========================
   DROPZONE — ALIGNEMENT AVEC LA NOUVELLE HIÉRARCHIE
   ========================= */

.simulator-shell .dropzone {
  margin-top: 28px;
}



.simulator-shell .canvas-wrapper {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: canvasFadeIn 0.4s ease forwards;
}



@keyframes canvasFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.simulator-shell .results-loading {
  margin-top: 28px;
}



/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {

  .simulator-shell .step-heading {
    font-size: clamp(24px, 3.2vw, 32px);
  }



  .simulator-shell .step-intro {
    font-size: 15px;
  }



  .simulator-shell .photo-guidelines-grid,
  .simulator-shell .zone-help-block {
    grid-template-columns: 1fr;
    gap: 22px;
  }



  .simulator-shell .guidelines-list,
  .simulator-shell .zone-help {
    max-width: none;
  }


}



@media (max-width: 860px) {

  .simulator-shell .step-kicker {
    font-size: 12px;
    margin-bottom: 8px;
  }



  .simulator-shell .step-heading {
    font-size: 28px;
  }



  .simulator-shell .step-intro {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }



  .simulator-shell .guidelines-right .guidelines-visual {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }



  .simulator-shell .guidelines-card img {
    height: 170px;
  }



  .simulator-shell .guidelines-list {
    font-size: 15px;
    line-height: 1.7;
  }



  .simulator-shell .zone-help {
    font-size: 15px;
  }


}



@media (max-width: 640px) {

  .simulator-shell .step-heading {
    font-size: 26px;
  }



  .simulator-shell .step-intro {
    font-size: 15px;
  }



  .simulator-shell .guidelines-right .guidelines-visual {
    grid-template-columns: 1fr;
  }



  .simulator-shell .guidelines-card img {
    height: 190px;
  }



  .simulator-shell .guidelines-list,
  .simulator-shell .zone-help {
    font-size: 15px;
  }


}



/* =========================
   ÉTAPE 1 — LAYOUT FINAL
   ========================= */

.simulator-shell .step-upload-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 28px;
  align-items: stretch;
}



.simulator-shell .step-upload-examples,
.simulator-shell .step-upload-dropzone {
  min-width: 0;
}



.simulator-shell .step-upload-examples {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}



.simulator-shell .step-upload-dropzone {
  display: flex;
}



.simulator-shell .step-upload-dropzone .dropzone {
  width: 100%;
  height: 100%;
  margin-top: 0;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  background: #f6f6f6;
  box-shadow: var(--shadow-soft);
  padding: 28px 20px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100%;

  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}



/* =========================
   DROPZONE — STYLE FINAL
   ========================= */

.simulator-shell .step-upload-dropzone .dropzone.dragover {
  border-color: var(--color-primary);
  background: rgba(207, 152, 77, 0.08);
  transform: scale(1.01);
}



/* Icône upload (SVG) */

.simulator-shell .dropzone-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}



.simulator-shell .dropzone-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}



.simulator-shell .dropzone-icon-svg path:first-child {
  fill: #b7b7b7;
}



.simulator-shell .dropzone-icon-svg .dropzone-icon-highlight {
  fill: none;
  stroke: #f5f5f5;
  stroke-width: 2.4;
  stroke-linecap: round;
}



/* Textes */

.simulator-shell .dropzone-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}



.simulator-shell .dropzone-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}



/* Lien upload */

.simulator-shell .upload-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: underline;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}



.simulator-shell .upload-link:hover {
  opacity: 0.7;
}



/* Bloc exemples */

.simulator-shell .step-upload-examples .guidelines-context {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  color: var(--color-text);
}



.simulator-shell .step-upload-examples .guidelines-visual {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}



.simulator-shell .step-upload-examples .guidelines-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  background: #fff;
  box-shadow: none;
}



.simulator-shell .step-upload-examples .guidelines-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}



.simulator-shell .step-upload-examples .guidelines-card span {
  display: block;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: transparent !important;
}



.simulator-shell .step-upload-examples .guidelines-card.good span {
  color: #2e7d32;
  background: transparent !important;
}



.simulator-shell .step-upload-examples .guidelines-card.bad span {
  color: #a06b1a;
  background: transparent !important;
}



/* neutraliser l'ancien cartouche coloré si encore présent ailleurs */
.simulator-shell .photo-guidelines {
  margin-top: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}



/* =========================
   RESPONSIVE — ÉTAPE 1
   ========================= */

@media (max-width: 1024px) {

  .simulator-shell .step-upload-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }



  .simulator-shell .step-upload-examples,
  .simulator-shell .step-upload-dropzone {
    width: 100%;
  }



  .simulator-shell .step-upload-examples .guidelines-context {
    max-width: none;
  }



  .simulator-shell .step-upload-examples .guidelines-visual {
    grid-template-columns: 1fr 1fr;
  }



  .simulator-shell .step-upload-dropzone .dropzone {
    min-height: 320px;
  }


}



@media (max-width: 640px) {

  .simulator-shell .step-upload-examples {
    padding: 18px;
  }



  .simulator-shell .step-upload-examples .guidelines-visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }



  .simulator-shell .step-upload-examples .guidelines-card img {
    height: 220px;
  }



  .simulator-shell .step-upload-dropzone .dropzone {
    min-height: 280px;
    padding: 24px 16px;
  }



  .simulator-shell .dropzone-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }



  .simulator-shell .dropzone-title {
    font-size: 16px;
  }



  .simulator-shell .dropzone-subtitle {
    font-size: 13px;
  }


}




.simulator-shell #generateActionWrap {
  margin-top: 8px;
}



.simulator-shell #postResultActions {
  margin-top: 18px;
}



/* =========================
   ÉTAPE 2 — ACTIONS UX
   ========================= */

.simulator-shell .step-zone-canvas-card {
  display: flex;
  flex-direction: column;
}



.simulator-shell .step-zone-canvas-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}



.simulator-shell .step-zone-canvas-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
  flex: 1;
}



/* actions sous le canvas, dans la carte */

.simulator-shell .step-zone-canvas-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}



.simulator-shell .step-zone-canvas-actions #editZoneButton {
  width: auto;
  margin-top: 0;
  flex: 0 1 auto;
  padding-left: 18px;
  padding-right: 18px;
}



/* bouton icône poubelle */

.simulator-shell .icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}



.simulator-shell .icon-button:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}



.simulator-shell .icon-button-delete {
  flex-shrink: 0;
  position: static;
}



.simulator-shell .icon-button-svg {
  width: 18px;
  height: 18px;
  display: block;
}



.simulator-shell .icon-button-svg path {
  fill: currentColor;
}



/* action principale sous la carte */

.simulator-shell .step-zone-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}



.simulator-shell #confirmZoneButton {
  margin-top: 0;
}



/* responsive */

@media (max-width: 640px) {

  .simulator-shell .step-zone-canvas-topbar {
    gap: 12px;
  }



  .simulator-shell .step-zone-canvas-actions {
    gap: 12px;
  }



  .simulator-shell .step-zone-canvas-actions #editZoneButton {
    font-size: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }



  .simulator-shell .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }


}



/* =========================
   DISCLAIMER
   ========================= */

.simulator-shell .disclaimer {
  margin-top: 32px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}



.simulator-shell .disclaimer p {
  margin: 0;
}



.simulator-shell .disclaimer p+p {
  margin-top: 10px;
}



/* première phrase plus visible */
.simulator-shell .disclaimer-lead {
  font-weight: 600;
  color: var(--color-text);
}



/* dernière phrase plus engageante */
.simulator-shell .disclaimer-strong {
  font-weight: 600;
  color: var(--color-text);
}

/* =========================
   POST SUBMIT (simulateur)
   ========================= */

.post-submit-box {
  margin: 0 0 28px;
  padding: 30px 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 245, 241, 0.96));
  border: 1px solid rgba(207, 152, 77, 0.18);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.07),
    0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.post-submit-box.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.post-submit-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-submit-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;

  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.post-submit-box.is-visible .post-submit-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.post-submit-icon-svg {
  width: 34px;
  height: 34px;
  display: block;
  color: #CF984D;
  filter: drop-shadow(0 4px 10px rgba(207, 152, 77, 0.22));
}

.post-submit-inner h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;

  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.14s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.post-submit-box.is-visible .post-submit-inner h3 {
  opacity: 1;
  transform: translateY(0);
}

.post-submit-inner p {
  margin: 0 auto 18px;
  max-width: 62ch;
  color: #5b5b5b;
  line-height: 1.6;

  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.post-submit-box.is-visible .post-submit-inner p {
  opacity: 1;
  transform: translateY(0);
}

.post-submit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.26s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.26s;
}

.post-submit-box.is-visible .post-submit-actions {
  opacity: 1;
  transform: translateY(0);
}

.post-submit-actions .btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.post-submit-actions .btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .post-submit-box {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .post-submit-icon-svg {
    width: 30px;
    height: 30px;
  }

  .post-submit-actions .btn {
    width: 100%;
  }
}

.post-submit-actions .btn {
  background: #CF984D;
  color: #fff;
  border: none;
}

.post-submit-actions .btn:hover {
  background: #b97f2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(207, 152, 77, 0.25);
}

/* =========================
   CTA ocre (post-submit)
   ========================= */

.btn--primary-ocre {
  background: #CF984D;
  color: #fff;
  border: none;
}

.btn--primary-ocre:hover {
  background: #b97f2f;
}

/* =========================================================
   PATCH SIMULATEUR — alignement avec la nouvelle charte
   ========================================================= */

/* fond global */
body.simulateur-page {
  background: #f8f8f6;
}

/* rythme vertical */
.simulator-shell .section {
  padding: 58px 0;
}

@media (max-width: 720px) {
  .simulator-shell .section {
    padding: 34px 0;
  }
}

/* largeur généreuse comme la home */
.simulator-shell .container {
  max-width: 1460px;
  width: min(1460px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 720px) {

  .simulator-shell .container {
    width: calc(100% - 28px);
  }
}

/* blocs principaux */
.simulator-shell .section-box,
.simulator-shell .card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.025);
  border-radius: 28px;
}

.simulator-shell .section-box {
  padding: 34px;
}

.simulator-shell .card {
  padding: 24px 22px;
}

@media (max-width: 720px) {
  .simulator-shell .section-box {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .simulator-shell .card {
    padding: 20px 18px;
  }
}

/* =========================================================
   TÊTES D’ÉTAPES — structure éditoriale gauche / droite
   ========================================================= */

.simulator-shell .sim-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: 36px;
  margin-bottom: 26px;
}

.simulator-shell .sim-step-head .step-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.46);
}

.simulator-shell .sim-step-head .step-heading {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--color-text);
  max-width: 16ch;
}

/* =========================================================
   CONSIGNE ÉTAPE — version visible mais non "bloc"
   ========================================================= */

.simulator-shell .sim-step-head .step-intro,
.simulator-shell #generateStepTitle .step-intro {
  position: relative;
  margin: 0;
  max-width: 760px;
  padding-left: 22px;

  font-size: 1.04rem;
  line-height: 1.6;
  font-weight: 520;
  color: rgba(20, 20, 20, 0.96);

  animation: simStepHintReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.08s;
}

.simulator-shell .sim-step-head .step-intro::before,
.simulator-shell #generateStepTitle .step-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.32em;
  width: 2px;
  border-radius: 999px;
  background: rgba(207, 152, 77, 0.72);
}

.simulator-shell .sim-step-head .step-intro::after,
.simulator-shell #generateStepTitle .step-intro::after {
  content: "    À vous de jouer !";
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;

  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #CF984D;

  animation: simStepHintLabelPulse 1.4s ease-in-out infinite;
}

/* =========================================================
   ANIMATIONS CONSIGNE
   ========================================================= */

@keyframes simStepHintReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes simStepHintLabelPulse {

  0%,
  100% {
    opacity: 0.72;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

/* =========================================================
   FIX ÉTAPE 4
   ========================================================= */

.simulator-shell .generate-step-head.sim-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: 36px;
  margin-bottom: 18px;
}

/* =========================================================
   AJUSTEMENTS DE LAYOUTS INTERNES
   ========================================================= */

.simulator-shell .step-upload-layout,
.simulator-shell .step-zone-layout-final {
  margin-top: 30px;
}

.simulator-shell #stepTextures .texture-grid {
  margin-top: 24px;
}

.simulator-shell .results-loading,
.simulator-shell .results-grid,
.simulator-shell .disclaimer,
.simulator-shell .cta-button {
  margin-top: 28px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .simulator-shell .sim-step-head,
  .simulator-shell .generate-step-head.sim-step-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .simulator-shell .sim-step-head .step-heading {
    max-width: none;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  .simulator-shell .sim-step-head .step-intro,
  .simulator-shell #generateStepTitle .step-intro {
    max-width: none;
    padding-left: 18px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .simulator-shell .sim-step-head .step-intro::after,
  .simulator-shell #generateStepTitle .step-intro::after {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .simulator-shell .sim-step-head .step-intro,
  .simulator-shell #generateStepTitle .step-intro {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .simulator-shell .sim-step-head .step-intro::after,
  .simulator-shell #generateStepTitle .step-intro::after {
    animation: none;
  }
}

.simulator-note {
  margin-top: 20px;
  padding-left: 14px;

  border-left: 2px solid rgba(207, 152, 77, 0.35);

  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.65);
}
/* Highlight flash quand une étape s'active */
@keyframes stepFlash {
  0%   { background: rgba(207, 152, 77, 0.18); }
  100% { background: transparent; }
}

.step-highlight {
  animation: stepFlash 0.9s ease-out forwards;
  border-radius: 8px;
}
