/**
 * Configurateur devis salle de bain (JLM) — présentation #jlmDoucheAppRoot.
 * UI alignée sur jlm-lite-devis.css (outil monte-escalier) : palette îlot sombre, Playfair + Source Sans 3.
 */
#jlmDoucheAppRoot {
  color-scheme: dark;
  --jlm-primary: #7cb3e0;
  --jlm-primary-soft: rgba(124, 179, 224, 0.18);
  --jlm-bg: #121a22;
  --jlm-bg-deep: #0e1319;
  --jlm-surface: #1a222c;
  --jlm-text: #e8eaef;
  --jlm-muted: #9aa5b5;
  --jlm-accent: #fb923c;
  --jlm-accent-dark: #f97316;
  --jlm-accent-soft: rgba(251, 146, 60, 0.14);
  --jlm-border: #2c3545;
  --jlm-media-bg: #161e28;
  --jlm-input-bg: #121a22;
  --jlm-danger: #fecaca;
  --jlm-danger-soft: rgba(248, 113, 113, 0.12);
  --jlm-radius: 14px;
  --jlm-radius-lg: 20px;
  --jlm-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  --jlm-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
  --jlm-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --jlm-font-sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;

  box-sizing: border-box;
  font-family: var(--jlm-font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--jlm-text);
  background: linear-gradient(165deg, #121a22 0%, #1a222c 48%, #141c26 100%);
  border-radius: var(--jlm-radius-lg);
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

#jlmDoucheAppRoot *,
#jlmDoucheAppRoot *::before,
#jlmDoucheAppRoot *::after {
  box-sizing: border-box;
}

#jlmDoucheAppRoot .app {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
}

/* ---------- En-tête ---------- */
#jlmDoucheAppRoot .top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1rem 1.25rem 1rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid #232c3a;
  background: transparent;
  border-radius: 0;
}

#jlmDoucheAppRoot .brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

#jlmDoucheAppRoot .logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

#jlmDoucheAppRoot .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#jlmDoucheAppRoot .small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--jlm-muted);
  line-height: 1.35;
}

#jlmDoucheAppRoot .progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 140px;
}

#jlmDoucheAppRoot .pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--jlm-primary-soft);
  color: var(--jlm-primary);
  border: 1px solid rgba(124, 179, 224, 0.28);
}

#jlmDoucheAppRoot .bar {
  width: 100%;
  max-width: 200px;
  height: 8px;
  border-radius: 999px;
  background: rgba(124, 179, 224, 0.1);
  overflow: hidden;
}

#jlmDoucheAppRoot .bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jlm-accent), var(--jlm-accent-dark));
  transition: width 0.35s ease;
}

/* ---------- Alerte validation ---------- */
#jlmDoucheAppRoot .alertBand {
  display: none;
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--jlm-radius);
  background: var(--jlm-danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: var(--jlm-danger);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

#jlmDoucheAppRoot .alertBand.show {
  display: block;
}

/* ---------- Carte étape ---------- */
#jlmDoucheAppRoot .card {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: none;
}

#jlmDoucheAppRoot .h1,
#jlmDoucheAppRoot .h2 {
  font-family: var(--jlm-font-serif);
  font-weight: 700;
  text-align: center;
  color: var(--jlm-primary);
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

#jlmDoucheAppRoot .h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
}

#jlmDoucheAppRoot .h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
}

#jlmDoucheAppRoot .txt {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  color: var(--jlm-muted);
  font-size: 1rem;
}

#jlmDoucheAppRoot .jlm-hint {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--jlm-muted);
  text-align: center;
  line-height: 1.5;
}

#jlmDoucheAppRoot .jlm-spacer-top {
  margin-top: 1rem;
}

#jlmDoucheAppRoot .nav.jlm-card-actions {
  border-top: none;
  padding-top: 0.5rem;
  margin-top: 1rem;
}

/* ---------- Grille choix ---------- */
#jlmDoucheAppRoot .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  #jlmDoucheAppRoot .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 800px) {
  #jlmDoucheAppRoot .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  /* Pages avec seulement 2 choix (marque) : rester sur 2 colonnes centrées */
  #jlmDoucheAppRoot .grid.jlm-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
  }
}

/* Boutons choix (accessibles clavier) */
#jlmDoucheAppRoot .choice {
  appearance: none;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

#jlmDoucheAppRoot .choice:hover {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: none;
  transform: translateY(-2px);
}

#jlmDoucheAppRoot .choice:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 2px;
}

#jlmDoucheAppRoot .choice.sel {
  border-color: var(--jlm-accent);
  background: var(--jlm-accent-soft);
  box-shadow: 0 0 0 1px var(--jlm-accent);
}

#jlmDoucheAppRoot .choice.sel::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--jlm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

#jlmDoucheAppRoot .media {
  aspect-ratio: 4 / 3;
  background: var(--jlm-media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

#jlmDoucheAppRoot .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#jlmDoucheAppRoot .label {
  padding: 0.65rem 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--jlm-text);
  line-height: 1.3;
}

#jlmDoucheAppRoot .fixedCard {
  border-radius: var(--jlm-radius);
  border: 1px dashed var(--jlm-border);
  background: var(--jlm-bg);
  overflow: hidden;
}

#jlmDoucheAppRoot .fixedCard .label {
  font-weight: 600;
  color: var(--jlm-muted);
  font-size: 0.85rem;
}

/* ---------- Longueur ---------- */
#jlmDoucheAppRoot .measure {
  max-width: 28rem;
  margin: 1rem auto 0;
  text-align: center;
}

#jlmDoucheAppRoot .bigVal {
  font-family: var(--jlm-font-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--jlm-primary);
  margin-top: 0.35rem;
}

#jlmDoucheAppRoot .measureRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

#jlmDoucheAppRoot .arr {
  width: 3rem;
  height: 3rem;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-surface);
  color: var(--jlm-primary);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

#jlmDoucheAppRoot .arr:hover {
  background: var(--jlm-accent-soft);
  border-color: var(--jlm-accent);
}

#jlmDoucheAppRoot .arr:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 2px;
}

#jlmDoucheAppRoot .range {
  flex: 1;
  min-width: 180px;
  max-width: 100%;
  height: 10px;
  accent-color: var(--jlm-accent);
  cursor: pointer;
}

/* ---------- Récap & prix ---------- */
#jlmDoucheAppRoot .recap {
  margin: 1rem auto 0;
  border-radius: var(--jlm-radius);
  background: transparent;
  border: none;
  padding: 1rem 1.15rem;
}

#jlmDoucheAppRoot .recap ul {
  margin: 0;
  padding-left: 1.25rem;
  text-align: left;
  color: var(--jlm-text);
  line-height: 1.65;
}

#jlmDoucheAppRoot .guaranteePhoto {
  margin: 1rem auto 0;
  border-radius: var(--jlm-radius);
  border: none;
  overflow: hidden;
  background: transparent;
}

#jlmDoucheAppRoot .guaranteePhoto img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: var(--jlm-surface);
}

#jlmDoucheAppRoot .guaranteeBig {
  margin: 1rem auto 0;
  text-align: center;
  font-family: var(--jlm-font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--jlm-primary);
}

#jlmDoucheAppRoot .price {
  text-align: center;
  margin-top: 1rem;
}

#jlmDoucheAppRoot .price .big {
  font-family: var(--jlm-font-serif);
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 700;
  color: var(--jlm-primary);
}

#jlmDoucheAppRoot .price .jlm-price-note {
  font-size: 0.88rem;
  color: var(--jlm-muted);
  margin-top: 0.35rem;
}

/* ---------- Commentaires admin ---------- */
#jlmDoucheAppRoot .comment {
  display: none;
  max-width: 42rem;
  margin: 1.15rem auto 0;
  border-radius: var(--jlm-radius);
  background: var(--jlm-accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.55);
  color: var(--jlm-text);
  padding: 1rem 1.15rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
}

#jlmDoucheAppRoot .comment.show {
  display: block;
}

/* ---------- Navigation ---------- */
#jlmDoucheAppRoot .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
  background: transparent;
}

#jlmDoucheAppRoot .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--jlm-border);
  background: var(--jlm-surface);
  color: var(--jlm-primary);
  font-family: var(--jlm-font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

#jlmDoucheAppRoot .btn:hover:not(:disabled) {
  border-color: var(--jlm-primary);
  background: var(--jlm-primary-soft);
}

#jlmDoucheAppRoot .btn:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 2px;
}

#jlmDoucheAppRoot .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#jlmDoucheAppRoot .btn.pri {
  background: linear-gradient(180deg, var(--jlm-accent), var(--jlm-accent-dark));
  border-color: transparent;
  color: #fff;
}

#jlmDoucheAppRoot .btn.pri:hover:not(:disabled) {
  filter: brightness(1.05);
  border-color: transparent;
}

#jlmDoucheAppRoot .btn.reset {
  margin-right: auto;
  background: transparent;
  border-color: transparent;
  color: var(--jlm-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 0.5rem;
}

#jlmDoucheAppRoot .btn.reset:hover:not(:disabled) {
  color: var(--jlm-primary);
  background: transparent;
}

/* ---------- Back-office (rarement visible) ---------- */
#jlmDoucheAppRoot .boOverlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.55);
  display: none;
  z-index: 999999;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

#jlmDoucheAppRoot .boOverlay.show {
  display: block;
}

#jlmDoucheAppRoot .bo {
  position: absolute;
  inset: 4%;
  background: var(--jlm-surface);
  border: 1px solid var(--jlm-border);
  border-radius: var(--jlm-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

#jlmDoucheAppRoot .boHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
}

#jlmDoucheAppRoot .boBody {
  overflow: auto;
  padding: 1rem;
  color: var(--jlm-text);
}

#jlmDoucheAppRoot .fs {
  border: 1px solid var(--jlm-border);
  border-radius: var(--jlm-radius);
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--jlm-surface);
}

#jlmDoucheAppRoot .fs legend {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jlm-primary);
}

#jlmDoucheAppRoot .lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--jlm-muted);
  margin-bottom: 0.35rem;
  text-align: left;
}

#jlmDoucheAppRoot .inp,
#jlmDoucheAppRoot .ta,
#jlmDoucheAppRoot .num {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--jlm-border);
  background: var(--jlm-input-bg);
  color: var(--jlm-text);
  padding: 0.55rem 0.65rem;
  outline: none;
  font-family: var(--jlm-font-sans);
  font-size: 0.9rem;
}

#jlmDoucheAppRoot .ta {
  min-height: 5rem;
  resize: vertical;
}

#jlmDoucheAppRoot .boActions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
}

#jlmDoucheAppRoot .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

#jlmDoucheAppRoot .hr {
  height: 1px;
  background: var(--jlm-border);
  margin: 0.65rem 0;
}

@media (max-width: 560px) {
  #jlmDoucheAppRoot .app {
    padding: 1rem max(0.85rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px)) max(0.85rem, env(safe-area-inset-right, 0px));
    min-height: unset;
  }

  #jlmDoucheAppRoot .top {
    grid-template-columns: 1fr;
  }

  #jlmDoucheAppRoot .progress {
    align-items: stretch;
    width: 100%;
  }

  #jlmDoucheAppRoot .bar {
    max-width: none;
  }

  #jlmDoucheAppRoot .grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  #jlmDoucheAppRoot .choice .label {
    font-size: 0.82rem;
    padding: 0.55rem 0.35rem 0.65rem;
    line-height: 1.25;
  }

  #jlmDoucheAppRoot .choice .media {
    max-height: min(42vh, 220px);
  }

  #jlmDoucheAppRoot .guaranteeBig {
    font-size: 1rem;
  }

  #jlmDoucheAppRoot .nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
  }

  #jlmDoucheAppRoot .nav .btn {
    min-height: 48px;
  }

  #jlmDoucheAppRoot .btn.reset {
    margin-right: 0;
    order: 3;
  }

  #jlmDoucheAppRoot .btn[data-act="prev"] {
    order: 2;
    width: 100%;
  }

  #jlmDoucheAppRoot .btn[data-act="next"],
  #jlmDoucheAppRoot .btn.pri {
    order: 1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #jlmDoucheAppRoot .bar i,
  #jlmDoucheAppRoot .choice,
  #jlmDoucheAppRoot .btn {
    transition: none;
  }

  #jlmDoucheAppRoot .choice:hover {
    transform: none;
  }
}


/* ---------- Grilles & blocs propres au configurateur douche ---------- */
#jlmDoucheAppRoot .txtLarge {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  color: var(--jlm-text);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.75;
  font-weight: 600;
}

#jlmDoucheAppRoot .modeleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}

#jlmDoucheAppRoot .avantApresGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#jlmDoucheAppRoot .meublesGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#jlmDoucheAppRoot .commentWrap {
  max-width: 42rem;
  margin: 1.15rem auto 0;
  text-align: center;
}

#jlmDoucheAppRoot .commentToggle {
  appearance: none;
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: var(--jlm-accent-soft);
  color: var(--jlm-text);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--jlm-font-sans);
  transition: border-color 0.2s, background 0.2s;
}

#jlmDoucheAppRoot .commentToggle:hover {
  border-color: var(--jlm-accent);
  background: rgba(251, 146, 60, 0.22);
}

#jlmDoucheAppRoot .commentToggleIcon {
  margin-right: 0.35rem;
}

#jlmDoucheAppRoot .commentModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 19, 25, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  z-index: 1000000;
}

#jlmDoucheAppRoot .commentModalOverlay.show {
  display: flex;
}

#jlmDoucheAppRoot .commentModal {
  width: min(42rem, 100%);
  max-height: min(84vh, 36rem);
  max-height: min(84dvh, 36rem);
  overflow: auto;
  border-radius: var(--jlm-radius-lg);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-surface);
  box-shadow: var(--jlm-shadow);
}

#jlmDoucheAppRoot .commentModalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
}

#jlmDoucheAppRoot .commentModalEyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jlm-muted);
  margin-bottom: 0.35rem;
}

#jlmDoucheAppRoot .commentModalTitle {
  font-family: var(--jlm-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jlm-primary);
  line-height: 1.2;
}

#jlmDoucheAppRoot .commentModalX {
  appearance: none;
  border: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
  color: var(--jlm-text);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

#jlmDoucheAppRoot .commentModalBody {
  padding: 1.1rem 1.15rem 0.75rem;
  color: var(--jlm-text);
  text-align: center;
  font-weight: 600;
  line-height: 1.65;
  font-size: 0.98rem;
}

#jlmDoucheAppRoot .commentModalActions {
  padding: 0 1.15rem 1.1rem;
  display: flex;
  justify-content: center;
}

#jlmDoucheAppRoot .optionList {
  max-width: 36rem;
  margin: 1.1rem auto 0;
  display: grid;
  gap: 0.65rem;
}

#jlmDoucheAppRoot .toggleRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
  cursor: pointer;
}

#jlmDoucheAppRoot .toggleRow span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--jlm-text);
}

#jlmDoucheAppRoot .bigCheckWrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 28rem;
  margin: 1.1rem auto 0;
}

#jlmDoucheAppRoot .bigCheck {
  appearance: none;
  border: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
  color: var(--jlm-text);
  border-radius: var(--jlm-radius);
  min-height: 3.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--jlm-font-sans);
  transition: border-color 0.2s, background 0.2s;
}

#jlmDoucheAppRoot .bigCheck:hover {
  border-color: rgba(249, 115, 22, 0.55);
}

#jlmDoucheAppRoot .bigCheck.sel {
  border-color: var(--jlm-accent);
  background: var(--jlm-accent-soft);
  box-shadow: 0 0 0 1px var(--jlm-accent);
}

#jlmDoucheAppRoot .choiceBigInfo {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--jlm-primary);
  font-family: var(--jlm-font-serif);
}

#jlmDoucheAppRoot .sizeGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

#jlmDoucheAppRoot .sizeLbl {
  text-align: center;
  font-size: 0.8rem;
  color: var(--jlm-muted);
  margin-bottom: 0.35rem;
}

#jlmDoucheAppRoot .bacSchemaWrap {
  margin-top: 1.25rem;
  text-align: center;
}

#jlmDoucheAppRoot .bacSchemaTitle {
  font-size: 0.85rem;
  color: var(--jlm-muted);
  margin-bottom: 0.65rem;
}

#jlmDoucheAppRoot .bacSchemaStage {
  display: flex;
  justify-content: center;
  padding: 0.65rem;
}

#jlmDoucheAppRoot .bacSchemaBox {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#jlmDoucheAppRoot .bacSchemaRect {
  position: relative;
  border: 2px solid var(--jlm-accent);
  border-radius: var(--jlm-radius);
  background: var(--jlm-media-bg);
}

#jlmDoucheAppRoot .bacSchemaLabel {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--jlm-text);
}

#jlmDoucheAppRoot .bacSchemaLabelTop {
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
}

#jlmDoucheAppRoot .bacSchemaLabelSide {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

#jlmDoucheAppRoot .aidesOnlyText {
  max-width: 40rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--jlm-muted);
}

#jlmDoucheAppRoot .finalPriceText {
  max-width: 38rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--jlm-muted);
}

#jlmDoucheAppRoot .finalPriceText p {
  margin: 0 0 0.5rem;
}

#jlmDoucheAppRoot .priceBreakdown {
  text-align: left;
  max-width: 32rem;
  margin: 0.75rem auto 0;
}

#jlmDoucheAppRoot .priceBreakdown .priceLine {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--jlm-border);
  color: var(--jlm-text);
  font-size: 0.95rem;
}

#jlmDoucheAppRoot .priceBreakdown .priceLine:last-child {
  border-bottom: 0;
}

#jlmDoucheAppRoot .propositionPhotoWrap {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

#jlmDoucheAppRoot .propositionPhotoCardFull {
  border-radius: var(--jlm-radius);
  overflow: hidden;
  border: 1px solid var(--jlm-border);
  max-width: 42rem;
  width: 100%;
  background: var(--jlm-media-bg);
}

#jlmDoucheAppRoot .propositionPhotoCardFull img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#jlmDoucheAppRoot .smallPhotoGrid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 36rem;
  margin: 1.1rem auto 0;
}

#jlmDoucheAppRoot .smallSinglePhotoWrap {
  display: flex;
  justify-content: center;
  margin: 1.1rem auto 0;
}

#jlmDoucheAppRoot .smallSinglePhotoCard {
  width: min(22rem, 100%);
}

#jlmDoucheAppRoot .wcGrid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

#jlmDoucheAppRoot .wcNonWrap {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

#jlmDoucheAppRoot .wcNonBtn {
  appearance: none;
  min-width: 10rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-bg);
  color: var(--jlm-text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--jlm-font-sans);
}

#jlmDoucheAppRoot .wcNonBtn.sel {
  border-color: var(--jlm-accent);
  background: var(--jlm-accent-soft);
}

#jlmDoucheAppRoot .boPreviewWrap {
  margin-top: 0.5rem;
  border-radius: var(--jlm-radius);
  overflow: hidden;
  border: 1px solid var(--jlm-border);
}

#jlmDoucheAppRoot .boPreview {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: var(--jlm-bg);
}

#jlmDoucheAppRoot .boPreviewEmpty {
  padding: 1.25rem;
  text-align: center;
  color: var(--jlm-muted);
  font-size: 0.88rem;
}

#jlmDoucheAppRoot .unitInputWrapLarge .num {
  min-height: 3.25rem;
}

#jlmDoucheAppRoot .unitFixLarge {
  min-width: 5.5rem;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-surface);
  color: var(--jlm-primary);
  font-weight: 700;
}

#jlmDoucheAppRoot .bigInput {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--jlm-radius);
  border: 1px solid var(--jlm-border);
  background: var(--jlm-input-bg);
  color: var(--jlm-text);
}

#jlmDoucheAppRoot .price .big + div {
  font-size: 0.88rem !important;
  color: var(--jlm-muted) !important;
  margin-top: 0.35rem;
  font-weight: 600 !important;
}

@media (max-width: 900px) {
  #jlmDoucheAppRoot .wcGrid3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #jlmDoucheAppRoot .modeleGrid {
    grid-template-columns: 1fr;
  }

  #jlmDoucheAppRoot .meublesGrid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page avec chapô WP (.devis-jlm__head) : même coquille que monte-escalier ---------- */
.devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .top .brand {
  display: none;
}

.devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .top {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

.devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .progress {
  align-items: stretch;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .progress .bar {
  max-width: none;
}

@media (min-width: 640px) {
  .devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .progress {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .pill {
    flex-shrink: 0;
  }

  .devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .progress .bar {
    flex: 1;
  }
}

.devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .top {
  border-bottom-color: transparent;
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
}

/* ---------- Mobile : confort + barre d’actions sticky ---------- */
@media (max-width: 768px) {
  #jlmDoucheAppRoot .row2 {
    grid-template-columns: 1fr;
  }

  #jlmDoucheAppRoot {
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: var(--jlm-radius);
  }

  #jlmDoucheAppRoot .app {
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  #jlmDoucheAppRoot .top {
    padding: 0.55rem 0.65rem;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
  }

  #jlmDoucheAppRoot .logo {
    width: 56px;
    height: 56px;
  }

  #jlmDoucheAppRoot .card {
    flex: none;
    min-height: 0;
    padding: 0.75rem 0.5rem 0.85rem;
  }

  #jlmDoucheAppRoot .h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  #jlmDoucheAppRoot .h2 {
    font-size: clamp(1rem, 4.2vw, 1.4rem);
    overflow-wrap: anywhere;
    hyphens: auto;
    padding-inline: 0.2rem;
  }

  #jlmDoucheAppRoot .txt,
  #jlmDoucheAppRoot .txtLarge {
    font-size: 0.95rem;
    padding-inline: 0.15rem;
  }

  #jlmDoucheAppRoot .choice .media {
    max-height: min(42vh, 220px);
  }

  #jlmDoucheAppRoot .app > .nav {
    position: sticky;
    bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    z-index: 40;
    margin-top: 0.65rem;
    padding: 0.5rem 0.45rem 0.55rem;
    background: rgba(18, 26, 34, 0.94);
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .devis-jlm:has(.devis-jlm__head) #jlmDoucheAppRoot .app > .nav {
    background: rgba(14, 19, 25, 0.94);
  }
}
