@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Cinema Atelier Luxury Brand OS Tokens */
  --ink: #080D15;
  --surface: #111A28;
  --surface-card: rgba(17, 26, 40, 0.94);
  --surface-elevated: #162234;
  --ivory: #FAF8F5;
  --ivory-muted: #EFE9DF;
  --platinum: #B3BBC7;
  --champagne: #C1A782;
  --champagne-soft: rgba(193, 167, 130, 0.14);
  --champagne-glow: rgba(193, 167, 130, 0.35);
  --red: #C5162E;
  --red-dark: #A32020;
  --line: rgba(193, 167, 130, 0.22);
  --muted: #B3BBC7;

  /* Backward Compatibility Aliases */
  --navy: var(--surface);
  --deep: var(--ink);
  --cyan: var(--champagne);
  --ember: var(--champagne);
  --ca-red-dot: var(--red);
  --ca-gold: var(--champagne);

  /* Typography Stacks */
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

.red-dot {
  color: var(--red, #C5162E) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700;
  display: inline;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  font-family: var(--font-sans);
  color: var(--ivory-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; }

three-d-stage:not(:defined) { visibility: hidden; }
three-d-stage { position: absolute; inset: 0; }
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

/* ---- Repli 2D : plan / coupe en SVG ---- */
#plan2d { position: absolute; inset: 0; }
#img3d {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 180px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
#img3d[hidden] { display: none; }
#img3d img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(17, 26, 40, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.img3d-vues { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.img3d-vues button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(17, 26, 40, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ivory-muted);
  font: 600 12px/1 var(--font-sans);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.img3d-vues button:hover {
  border-color: var(--champagne);
  color: var(--ivory);
}
.img3d-vues button.on {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--champagne);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(193, 167, 130, 0.25);
}
.img3d-note {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--platinum);
  text-align: center;
}
#plan2d svg { width: 100%; height: 100%; display: block; touch-action: manipulation; }
#plan2d .l-grid { stroke: rgba(193, 167, 130, 0.08); fill: none; }
#plan2d .l-edge { stroke: rgba(239, 233, 223, 0.45); stroke-width: 1.5; fill: none; }
#plan2d .l-cote { stroke: var(--champagne); stroke-width: 1; fill: none; opacity: 0.7; }
#plan2d .l-ray { stroke: var(--champagne); stroke-width: 1.5; stroke-dasharray: 4 3; fill: none; }
#plan2d .o { stroke: rgba(193, 167, 130, 0.4); stroke-width: 0.8; }
#plan2d .o.top { stroke-dasharray: 3 2; }
#plan2d .spk { transform-box: fill-box; transform-origin: center; cursor: pointer; }
#plan2d .spk.added { animation: spkin .45s cubic-bezier(.2,.8,.2,1) both; }
#plan2d .spk.hl .o { stroke: var(--champagne); stroke-width: 2; }
@keyframes spkin { from { transform: scale(.4); opacity: 0; } }
html[data-mode="2d"] [data-only="3d"], html[data-mode="3d"] [data-only="2d"] { display: none !important; }

/* ---- Étiquettes 3D (projetées) ---- */
#labels { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.lab {
  position: absolute;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ivory);
  background: rgba(8, 13, 21, 0.88);
  border: 1px solid rgba(193, 167, 130, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s, transform .2s;
}
.lab.on { opacity: 1; }
.lab small {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--champagne);
  margin-left: 6px;
}
.lab.cote {
  background: none;
  border: none;
  padding: 0;
  color: var(--platinum);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: 1;
  transform: translate(-50%, -50%);
  box-shadow: none;
}
.lab.tech {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(17, 26, 40, 0.92);
  border: 1.5px solid var(--champagne);
  color: var(--ivory);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 10px rgba(193, 167, 130, 0.2);
  pointer-events: auto;
  cursor: default;
  opacity: 1;
  transition: all .2s ease;
}
.lab.tech svg { width: 16px; height: 16px; color: var(--champagne); }
.lab.tech .cote {
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 8.5px;
  font-family: var(--font-mono);
  font-weight: 800;
  background: var(--red);
  color: var(--ivory);
  border-radius: 4px;
  padding: 1px 3.5px;
  line-height: 1.1;
  border: 1px solid rgba(193, 167, 130, 0.4);
}
.lab.tech .nom {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 13, 21, 0.95);
  border: 1px solid var(--line);
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.lab.tech .nom small {
  display: block;
  font-weight: 500;
  color: var(--platinum);
  margin-top: 2px;
}
.lab.tech:hover .nom { opacity: 1; }
.lab.mlp {
  opacity: 1;
  background: rgba(193, 167, 130, 0.16);
  border-color: rgba(193, 167, 130, 0.6);
  color: var(--ivory);
  transform: translate(-50%, 8px);
}
.lab.zone {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--champagne);
  border: 2px solid var(--ivory);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transition: all .2s ease;
}
.lab.zone svg { width: 18px; height: 18px; }
.lab.zone.off {
  background: rgba(17, 26, 40, 0.75);
  border-color: rgba(193, 167, 130, 0.35);
  color: var(--platinum);
}
.lab.zone .note {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: var(--ivory);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.lab.zone.play {
  box-shadow: 0 0 0 4px rgba(193, 167, 130, 0.4), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.lab.zone .nom {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 13, 21, 0.95);
  border: 1px solid var(--line);
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.lab.zone:hover .nom { opacity: 1; }

/* ---- Barre haute ---- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(8, 13, 21, 0.95), rgba(8, 13, 21, 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

#cta-btn-f { display: none; }
@media (max-width: 720px) {
  #cta-btn-f {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 7;
    pointer-events: auto;
  }
  html.tiroir-ouvert #cta-btn-f { display: none; }
}

@media (min-width: 721px) {
  .panel .panel-head { display: flex; justify-content: flex-end; margin: -6px -6px 0 0; }
  .panel-head .panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(193, 167, 130, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--platinum);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all .15s ease;
  }
  .panel-head .panel-close:hover {
    color: var(--ivory);
    border-color: var(--champagne);
  }
  html.panneau-replie .panel { display: none; }
  html.panneau-replie .panel-toggle {
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    position: absolute;
    top: 66px;
    right: 22px;
    z-index: 7;
  }
}

.topbar .views.defile {
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
.vplus {
  appearance: none;
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: -14px;
  border-radius: 999px;
  border: 1px solid rgba(193, 167, 130, 0.35);
  background: rgba(17, 26, 40, 0.85);
  color: var(--ivory);
  font: 600 16px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  z-index: 1;
}
.vplus[hidden] { display: none; }

.topbar .views {
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.topbar .views::-webkit-scrollbar { display: none; }
.topbar .views > * { flex: none; white-space: nowrap; }
.brand img { height: 22px; width: auto; display: block; }

.appel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  height: 32px;
  min-width: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(193, 167, 130, 0.28);
  background: rgba(17, 26, 40, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ivory-muted);
  font: 600 12px/1 var(--font-sans);
  text-decoration: none;
  transition: all .2s ease;
}
.appel:hover, .appel:focus-visible {
  border-color: rgba(193, 167, 130, 0.65);
  background: rgba(26, 38, 57, 0.85);
  color: var(--ivory);
  outline: none;
}
.appel svg { color: var(--champagne); }
.appel span { display: none; }
@media (min-width: 1100px) { .appel span { display: inline; } }

.marque { display: flex; align-items: center; gap: 10px; flex: none; }

.retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(193, 167, 130, 0.28);
  background: rgba(17, 26, 40, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ivory-muted);
  font: 600 12px/1 var(--font-sans);
  text-decoration: none;
  transition: all .2s ease;
}
.retour:hover, .retour:focus-visible {
  border-color: rgba(193, 167, 130, 0.65);
  background: rgba(26, 38, 57, 0.85);
  color: var(--ivory);
  outline: none;
}
.retour svg { color: var(--champagne); }
.retour span { display: none; }
@media (min-width: 700px) { .retour span { display: inline; } }
.telcard .marque { justify-content: space-between; }

.views { display: flex; gap: 6px; align-items: center; }
.views .sep { width: 1px; height: 20px; background: rgba(193, 167, 130, 0.25); margin: 0 4px; }
.views button, .undo {
  appearance: none;
  border: 1px solid rgba(193, 167, 130, 0.28);
  background: rgba(17, 26, 40, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ivory-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.views button:hover, .undo:hover {
  border-color: rgba(193, 167, 130, 0.65);
  background: rgba(26, 38, 57, 0.85);
  color: var(--ivory);
}
.views button.active {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--champagne);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(193, 167, 130, 0.25);
}
.undo[disabled] { opacity: .35; cursor: default; }

/* ---- Colonne gauche : immersion + alertes + pédagogie ---- */
.status {
  position: absolute;
  left: 22px;
  top: 66px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  pointer-events: auto;
  max-width: 360px;
}

.titrepack {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.94), rgba(10, 15, 24, 0.98));
  border: 1px solid rgba(193, 167, 130, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.titrepack[hidden] { display: none; }
#titrepack:not([hidden]) + .pedago { display: none; }
.titrepack .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--champagne);
}
.titrepack .t {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.titrepack .s {
  font-size: 12px;
  color: var(--platinum);
  line-height: 1.4;
}

.cedia {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 26, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(193, 167, 130, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: border-color .2s ease;
}
.cedia:hover { border-color: rgba(193, 167, 130, 0.55); }
.cedia .k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--champagne);
}
.cedia .gauge { display: flex; gap: 3px; }
.cedia .gauge i {
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.cedia .gauge i.on {
  background: var(--red);
  box-shadow: 0 0 6px rgba(197, 22, 46, 0.5);
}
.cedia .v {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ivory);
}
.cedia .i { font-size: 11px; color: var(--platinum); }

.cedia-info {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.95), rgba(8, 13, 21, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 167, 130, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  padding: 14px 16px;
}
.cedia-info.open { display: flex; }
.cedia-info .ci { font-size: 11.5px; line-height: 1.45; color: var(--platinum); }
.cedia-info .ci b { color: var(--champagne); font-weight: 700; }
.cedia-info .ci.cur { color: var(--ivory); }
.cedia-info .what {
  font-size: 11px;
  color: var(--platinum);
  border-top: 1px solid rgba(193, 167, 130, 0.2);
  padding-top: 8px;
  margin-top: 2px;
}

.alerts {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  background: rgba(193, 167, 130, 0.12);
  border: 1px solid rgba(193, 167, 130, 0.4);
  color: var(--ivory-muted);
}
.alerts.ok {
  background: rgba(40, 140, 80, 0.15);
  border-color: rgba(60, 180, 110, 0.4);
  color: #8fe6b8;
  cursor: default;
}
.alerts-list {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.95), rgba(8, 13, 21, 0.98));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 167, 130, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}
.alerts-list.open { display: flex; }
.alerts-list .ai { font-size: 11.5px; line-height: 1.45; color: #ffdca8; display: flex; gap: 6px; }
.alerts-list .ai::before { content: '⚠'; opacity: .8; color: var(--champagne); }

.pedago {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ivory);
  max-width: 34ch;
  padding-left: 14px;
  border-left: 2px solid var(--champagne);
}
.pedago .k {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 4px;
}

/* ---- Panneau de droite ---- */
.panel {
  position: absolute;
  top: 66px;
  right: 22px;
  width: 278px;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.95), rgba(8, 13, 21, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(193, 167, 130, 0.28);
  border-radius: 14px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  scrollbar-width: thin;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.grp { display: flex; flex-direction: column; gap: 7px; }
.grp .ttl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--champagne);
}
.grp .ttl .n {
  font-family: var(--font-mono);
  font-weight: 700;
  color: rgba(193, 167, 130, 0.5);
  letter-spacing: 0;
}
.grp .note { font-size: 10.5px; line-height: 1.4; color: var(--platinum); }
.grp .note:empty { display: none; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.panel .seg button, .panel .grid3 button {
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.stairs { display: flex; flex-direction: column; gap: 5px; }
.stairs button { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; text-align: left; }
.stairs button .d { font-size: 10.5px; font-weight: 500; color: var(--platinum); line-height: 1.3; }
.stairs button.active .d { color: rgba(8, 13, 21, 0.8); }

.panel button {
  appearance: none;
  border: 1px solid rgba(193, 167, 130, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 233, 223, 0.85);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  text-align: center;
  transition: all .15s ease;
  position: relative;
}
.panel button:hover:not([aria-disabled="true"]):not(.active) {
  background: rgba(193, 167, 130, 0.1);
  border-color: rgba(193, 167, 130, 0.45);
  color: var(--ivory);
}
.panel button.active {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--champagne);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(193, 167, 130, 0.22);
}
.panel button[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.panel button[aria-disabled="true"]:hover { opacity: .55; }
.panel button.reco::after {
  content: 'reco';
  position: absolute;
  top: -7px;
  right: 6px;
  font-size: 8.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--champagne);
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.why { font-size: 11px; line-height: 1.4; color: #ffdca8; display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.why.on { display: flex; }
.why .act {
  appearance: none;
  border: 1px solid rgba(193, 167, 130, 0.5);
  background: rgba(193, 167, 130, 0.14);
  color: var(--ivory);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.why.flash { color: var(--ivory); }

.maison button[disabled] { opacity: .4; cursor: not-allowed; }
.note.reco { color: var(--ivory); font-weight: 600; }

.recoact:empty { display: none; }
.recoact { display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.4; color: var(--platinum); }
.recoact button {
  align-self: flex-start;
  appearance: none;
  border: 1px solid rgba(193, 167, 130, 0.5);
  background: rgba(193, 167, 130, 0.14);
  color: var(--ivory);
  font: 700 11px/1 inherit;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.recoact button:hover {
  border-color: var(--champagne);
  background: rgba(193, 167, 130, 0.25);
}

.lien-multiroom a { color: var(--platinum); font-size: 13px; text-decoration: none; }
.lien-multiroom a b { color: var(--ivory); }

/* Multiroom : même page, autre scénario (html[data-scenario]) */
html[data-scenario="multiroom"] .panel .grp:not(.mr):not(.both), html[data-scenario="multiroom"] .modesw,
html[data-scenario="multiroom"] .sal-only, html[data-scenario="multiroom"] #cedia, html[data-scenario="multiroom"] #alerts { display: none !important; }
html:not([data-scenario="multiroom"]) .mr, html:not([data-scenario="multiroom"]) .mr-only { display: none !important; }

.mrzones { display: flex; flex-direction: column; gap: 8px; }
.mrgrp { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--platinum); margin-bottom: 4px; }
.mrtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mrcompte { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--platinum); }
.mrcompte button { appearance: none; border: none; background: none; color: var(--champagne); font: 600 11px/1 inherit; font-family: inherit; padding: 2px 0 2px 10px; cursor: pointer; }
.mrzones button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(193, 167, 130, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--platinum);
  font: 600 10px/1.15 inherit;
  font-family: inherit;
  padding: 7px 2px 6px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 0;
  text-align: center;
  transition: all .15s ease;
}
.mrzones button.on { background: rgba(193, 167, 130, 0.22); border-color: var(--champagne); color: var(--ivory); }
.mrzones button .ext { opacity: .6; font-weight: 500; }
.mrzones button svg { width: 18px; height: 18px; }
.mrzones button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.modesw { display: none !important; }
.panel[data-mode="simple"] [data-adv] { display: none; }
.panel[data-mode="avance"] [data-simple] { display: none; }

.rng { display: flex; flex-direction: column; gap: 6px; }
.rng span { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--platinum); }
.rng span b { color: var(--ivory); font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.rng input { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px; background: rgba(193, 167, 130, 0.25); outline: none; }
.rng input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ivory);
  cursor: pointer;
  border: 3px solid var(--champagne);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.rng input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ivory);
  cursor: pointer;
  border: 3px solid var(--champagne);
}
.sub { display: none; flex-direction: column; gap: 7px; }
.sub.on { display: flex; }

/* ---- Bandeau de sortie & réglages bas ---- */
.lienpack { font-size: 12px; font-weight: 600; color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lienpack:hover { color: var(--ivory); }
.lienpack[hidden] { display: none; }

.panel[data-mode="simple"] .piece-simple, .panel[data-mode="simple"] #reco-act, .panel[data-mode="simple"] #niv-act { display: none !important; }

.pas { display: grid; grid-template-columns: 52px 30px 1fr 30px; align-items: center; gap: 6px; }
.pas .l { font-size: 11.5px; color: var(--platinum); }
.pas .v { text-align: center; font-size: 12px; font-family: var(--font-mono); font-weight: 600; color: var(--ivory); line-height: 1.25; }
.pas button {
  appearance: none;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(193, 167, 130, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font: 700 15px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.pas button:disabled { opacity: .3; cursor: default; }

.coche { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ivory-muted); cursor: pointer; }
.coche input { width: 17px; height: 17px; accent-color: var(--red); flex: none; }
.coche span { flex: 1; display: grid; gap: 2px; }
.coche small { font-size: 10.5px; color: var(--platinum); }
.coche small .sup { color: var(--champagne); font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.coche img {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(193, 167, 130, 0.25);
  flex: none;
}
.coche input:disabled + span { opacity: .85; }

.reponses {
  appearance: none;
  border: 1px dashed rgba(193, 167, 130, 0.35);
  background: transparent;
  color: var(--ivory-muted);
  font: 600 12px/1.2 inherit;
  font-family: inherit;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.reponses:hover { border-color: var(--champagne); color: var(--ivory); }

.lienmode {
  appearance: none;
  border: none;
  background: none;
  padding: 2px 0;
  color: var(--platinum);
  font: 600 11px/1.3 inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: center;
  transition: color .15s ease;
}
.lienmode:hover { color: var(--ivory); }

.decouvrir {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: 600 12px/1.2 inherit;
  font-family: inherit;
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease;
}
.decouvrir:hover { color: var(--ivory); }

.exit .sum .tot { color: var(--ivory); font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.exit .sum .eti { color: var(--ivory); font-weight: 600; }

/* Découvrir ce pack */
.card.dc { width: min(620px, 100%); }
.dc .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); }
.dc h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 6px 0 4px;
  padding-right: 44px;
  color: var(--ivory);
}
.dc-apport { font-size: 13.5px; color: var(--platinum); }
.dc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.dc-cols h3 { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); margin-bottom: 6px; }
.dc-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.dc-cols li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; color: var(--ivory-muted); }
.dc-cols li.ret { opacity: .45; }
.dc-cols .vg { width: 44px; height: 44px; border-radius: 8px; background: #fff; overflow: hidden; display: block; border: 1px solid rgba(193, 167, 130, 0.2); }
.dc-cols .vg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dc-cols span.vg { background: rgba(17, 26, 40, 0.6); }
.dc-cols li small { color: var(--platinum); }
.dc-prix { font-size: 13px; color: var(--platinum); }
.dc-prix b { font-family: var(--font-mono); font-size: 22px; color: var(--ivory); margin-left: 4px; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.dc-actions [hidden] { display: none; }

/* (Simo, 13/10) téléphone : page légère à la place de la scène */
html.telephone #hud, html.telephone #plan2d, html.telephone #img3d, html.telephone #labels, html.telephone three-d-stage, html.telephone canvas { display: none !important; }
.telcard {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 28px;
  background: var(--ink);
  color: var(--ivory-muted);
}
.telcard[hidden] { display: none; }
.telcard .brand img { height: 22px; }
.telcard .k {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--champagne);
}
.telcard h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ivory);
}
.telcard .s { font-size: 14px; color: var(--platinum); margin: 0; }
.telcard .im {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(193, 167, 130, 0.25);
  background: rgba(17, 26, 40, 0.6);
}
.telcard .note { font-size: 12.5px; line-height: 1.45; color: var(--platinum); margin: 0; }
.telcard .acts { display: grid; gap: 10px; margin-top: 4px; }
.telcard .acts .btn { width: 100%; padding: 14px 18px; font-size: 14px; }
.telcard .reponses { margin-top: 4px; }

/* Voile des 3 questions */
.voile3q {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 13, 21, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.voile3q[hidden] { display: none; }
.v3q-retour { position: absolute; top: 14px; left: 14px; z-index: 1; }
.v3q-retour span { display: inline; }
.v3q-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: linear-gradient(180deg, #111A28 0%, #080D15 100%);
  color: var(--ivory-muted);
  border: 1px solid rgba(193, 167, 130, 0.32);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  --color-navy: #111A28;
  --color-blue: #C1A782;
  --color-line: rgba(193, 167, 130, 0.25);
  --color-muted: #B3BBC7;
  --color-ink: #FAF8F5;
  --color-panel: rgba(17, 26, 40, 0.85);
  --radius-card: 18px;
}
.v3q-card .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 6px;
}
.v3q-card h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ivory);
}
.v3q-card .grid { display: grid; }
.v3q-card .mt-3 { margin-top: 8px; }
.v3q-card .mt-2 { margin-top: 6px; }
.v3q-card button { font-family: inherit; cursor: pointer; }
.v3q-card .btn-primary {
  background: linear-gradient(135deg, #C5162E 0%, #A32020 100%) !important;
  color: var(--ivory) !important;
  border: 1px solid rgba(193, 167, 130, 0.35) !important;
  box-shadow: 0 4px 14px rgba(197, 22, 46, 0.4) !important;
  font-weight: 700;
}
.v3q-card .btn-sm { padding: 9px 16px; font-size: 13px; }
.v3q-card .self-end { align-self: end; }
.v3q-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(193, 167, 130, 0.3);
  background: rgba(17, 26, 40, 0.85);
  color: var(--ivory);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}
.v3q-close:hover { border-color: var(--champagne); color: var(--ivory); }
.v3q-close[hidden] { display: none; }
.v3q-card [hidden] { display: none !important; }
.v3q-card .tmp-conseil { display: block !important; }
.seg[hidden], .pas[hidden], .selbox[hidden] { display: none !important; }

/* Pack & options */
.panel[data-mode="simple"] [data-ctl="niveau"], .panel[data-mode="simple"] #niveau-note { display: none !important; }
.optpack { display: grid; gap: 9px; }
.optpack:empty { display: none; }

.chpack button {
  appearance: none;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(193, 167, 130, 0.22);
  background: rgba(17, 26, 40, 0.6);
  color: var(--ivory);
  font: 600 12px/1.25 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.chpack button small { font-weight: 500; font-size: 10.5px; color: var(--platinum); }
.chpack button .cs { color: var(--champagne); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.chpack button:hover { border-color: var(--champagne); background: rgba(17, 26, 40, 0.85); }

.panel .lienmode { border: none !important; background: none !important; box-shadow: none !important; padding: 2px 0 !important; width: auto; }
.panel .reponses { width: 100%; }
html:not([data-scenario="multiroom"]) .panel[data-mode="simple"] .piece-sal { display: none !important; }

/* Floating action exit bar */
.exit {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.92), rgba(8, 13, 21, 0.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 167, 130, 0.32);
  border-radius: 999px;
  padding: 8px 10px 8px 20px;
  max-width: calc(100vw - 340px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.exit .sum {
  font-size: 12.5px;
  color: var(--platinum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exit .sum b {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-grad {
  background: linear-gradient(135deg, #C5162E 0%, #A32020 100%) !important;
  color: #FAF8F5 !important;
  border: 1px solid rgba(193, 167, 130, 0.35) !important;
  box-shadow: 0 8px 24px rgba(197, 22, 46, 0.4) !important;
}
.btn-grad:hover {
  box-shadow: 0 12px 28px rgba(197, 22, 46, 0.6) !important;
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(17, 26, 40, 0.5) !important;
  color: var(--ivory-muted) !important;
  border: 1px solid rgba(193, 167, 130, 0.32) !important;
}
.btn-ghost:hover {
  border-color: var(--champagne) !important;
  color: var(--ivory) !important;
  background: rgba(17, 26, 40, 0.8) !important;
}

.btn-light {
  background: var(--ivory);
  color: var(--ink);
  font-weight: 700;
}

/* ---- Modale « Recevoir mon étude » ---- */
.modal {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 13, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  padding: 20px;
}
.modal.open { display: flex; }
.card {
  width: min(820px, 100%);
  max-height: 100%;
  overflow: auto;
  background: linear-gradient(180deg, #111A28 0%, #080D15 100%);
  border: 1px solid rgba(193, 167, 130, 0.3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  color: var(--ivory);
}
.card .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--champagne);
}
.card h2 {
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ivory);
}
.card p { margin: 0; color: var(--platinum); font-size: 14px; line-height: 1.5; }

.niv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.niv > div {
  border: 1px solid rgba(193, 167, 130, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(17, 26, 40, 0.6);
  transition: all .2s ease;
}
.niv > div.cur {
  border-color: var(--champagne);
  background: rgba(193, 167, 130, 0.08);
  box-shadow: 0 0 16px rgba(193, 167, 130, 0.15);
}
.niv .t {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--champagne);
}
.niv .a {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 6px;
  color: var(--ivory);
}
.niv .p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ivory-muted);
  margin-top: 4px;
}
.niv .g { font-size: 11px; color: var(--platinum); margin-top: 2px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--platinum);
}
.form input {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ivory);
  background: rgba(8, 13, 21, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 2px rgba(193, 167, 130, 0.2);
}
.form .full { grid-column: 1 / -1; }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 16px; }
.card .close { position: absolute; top: 14px; right: 14px; }
.card .wrap { position: relative; }
.card .msg { font-size: 12.5px; color: #8fe6b8; margin-top: 8px; }

.fps {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--platinum);
  display: none;
  font-variant-numeric: tabular-nums;
}
.fps.on { display: block; }

/* Desktop : poignée/bouton mobile masqués */
.grab, .panel-toggle, .panel-close, .pcta { display: none; }

/* ---------- Mobile : panneau en tiroir bas ---------- */
@media (max-width: 720px) {
  .panel {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    max-height: 66vh;
    border-radius: 18px 18px 0 0;
    padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(102%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(180deg, rgba(17, 26, 40, 0.98), rgba(8, 13, 21, 0.99));
    border: 1px solid rgba(193, 167, 130, 0.3);
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  }
  .panel.open { transform: none; }
  .grab {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 3px;
    margin: 4px auto 6px;
    background: rgba(193, 167, 130, 0.4);
    cursor: pointer;
  }
  .panel-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 -14px 4px;
  }
  .panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(193, 167, 130, 0.3);
    background: rgba(17, 26, 40, 0.8);
    color: var(--ivory);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }
  .panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    position: absolute;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 7;
  }
  .panel-toggle.hidden { display: none; }
  .topbar { padding: 11px 14px; }
  .views { gap: 4px; }
  .views button { padding: 7px 9px; font-size: 11px; }
  html[data-scenario="multiroom"] .topbar .views {
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
    max-width: calc(100vw - 118px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html[data-scenario="multiroom"] .topbar .views::-webkit-scrollbar { display: none; }
  html[data-scenario="multiroom"] .topbar .views button { flex: none; white-space: nowrap; }
  html[data-scenario="multiroom"] .lab.zone { width: 26px; height: 26px; }
  html[data-scenario="multiroom"] .lab.zone svg { width: 14px; height: 14px; }
  .status { top: 56px; left: 12px; max-width: 70vw; }
  .pedago { font-size: 12.5px; }
  .exit { display: none; }
  .pcta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    bottom: -16px;
    margin: 4px -14px -16px;
    padding: 10px 14px 16px;
    background: rgba(8, 13, 21, 0.98);
    border-top: 1px solid rgba(193, 167, 130, 0.25);
  }
  .pcta .sum { font-size: 11.5px; line-height: 1.4; color: var(--platinum); }
  .pcta .sum b { color: var(--ivory); font-family: var(--font-mono); font-weight: 700; }
  .pcta .btn { width: 100%; }
  .niv { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lab, .panel, .btn, .views button, .undo { transition: none !important; }
}

/* --- Style #1 Questionnaire data-tmp --- */
.tmp-q[data-astro-cid-axdbkci7] {
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  color: var(--ivory);
}
.tmp-q[data-astro-cid-axdbkci7] span[data-astro-cid-axdbkci7] {
  background: var(--champagne);
  color: var(--ink);
  border-radius: 999px;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-grid;
}
.tmp-choix[data-astro-cid-axdbkci7] { gap: 8px; display: grid; }
.tmp-2[data-astro-cid-axdbkci7], .tmp-t[data-astro-cid-axdbkci7] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (width >= 640px) {
  .tmp-t[data-astro-cid-axdbkci7] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tmp-mesures[data-astro-cid-axdbkci7] {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  display: grid;
}
.tmp-mesures[data-astro-cid-axdbkci7] label[data-astro-cid-axdbkci7] {
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  color: var(--platinum);
}
.tmp-mesures[data-astro-cid-axdbkci7] input[data-astro-cid-axdbkci7] {
  border: 1px solid rgba(193, 167, 130, 0.28);
  background: rgba(8, 13, 21, 0.6);
  color: var(--ivory);
  border-radius: 10px;
  width: 100%;
  padding: 9px 10px;
  font-size: 15px;
  font-family: var(--font-mono);
}
.tmp-mesures[data-astro-cid-axdbkci7] small[data-astro-cid-axdbkci7] {
  color: var(--platinum);
  font-size: 11.5px;
  font-weight: 400;
}
[data-tmp] [data-q] button {
  text-align: left;
  border: 1px solid rgba(193, 167, 130, 0.22);
  color: var(--ivory);
  background: rgba(17, 26, 40, 0.6);
  border-radius: 14px;
  gap: 2px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color .15s, background .15s;
  display: grid;
}
[data-tmp] [data-q] button small { color: var(--platinum); font-size: 12.5px; font-weight: 400; }
[data-tmp] [data-q] button:hover {
  border-color: var(--champagne);
  background: rgba(193, 167, 130, 0.08);
}
[data-tmp] [data-q] button[aria-pressed=true] {
  border-color: var(--champagne);
  background: rgba(193, 167, 130, 0.16);
  box-shadow: inset 0 0 0 1px var(--champagne), 0 0 16px rgba(193, 167, 130, 0.15);
}
[data-tmp] .tmp-carte {
  border-radius: 14px;
  border: 1px solid rgba(193, 167, 130, 0.28);
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.94), rgba(10, 15, 24, 0.98));
  gap: 10px;
  padding: 22px;
  display: grid;
  position: relative;
  color: var(--ivory);
}
[data-tmp] .tmp-carte.reco {
  border-color: var(--champagne);
  box-shadow: 0 0 0 1px var(--champagne), 0 12px 30px rgba(0, 0, 0, 0.5);
}
[data-tmp] .tmp-badge {
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(193, 167, 130, 0.15);
  color: var(--champagne);
  border: 1px solid rgba(193, 167, 130, 0.3);
  border-radius: 999px;
  justify-self: start;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}
[data-tmp] .tmp-carte.reco .tmp-badge {
  background: var(--red);
  color: var(--ivory);
  border-color: rgba(193, 167, 130, 0.4);
}
[data-tmp] .tmp-carte h3 {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  font-size: 20px;
  font-weight: 600;
  color: var(--ivory);
}
[data-tmp] .tmp-nom { color: var(--platinum); margin-top: -6px; font-size: 13.5px; }
[data-tmp] .tmp-pourquoi { color: var(--platinum); font-size: 13px; }
[data-tmp] .tmp-pourquoi b { color: var(--ivory); font-weight: 600; }
[data-tmp] .tmp-carte ul { gap: 4px; margin: 0; padding: 0; font-size: 14px; list-style: none; display: grid; color: var(--ivory-muted); }
[data-tmp] .tmp-prix { color: var(--platinum); font-size: 13.5px; }
[data-tmp] .tmp-prix b {
  color: var(--ivory);
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  margin-left: 4px;
  font-size: 24px;
}
[data-tmp] .tmp-prix small { font-size: 12px; display: block; color: var(--platinum); }
[data-tmp] .tmp-actions { flex-wrap: wrap; gap: 8px; display: flex; }
[data-tmp] .tmp-detail { color: var(--champagne); font-size: 13px; text-decoration: underline; }
[data-tmp][data-mode=simulateur] .kicker { margin-bottom: 6px; }
[data-tmp][data-mode=simulateur] h2 { line-height: 1.15; font-size: 22px !important; font-family: var(--font-serif); }
[data-tmp][data-mode=simulateur] > .grid { gap: 14px; margin-top: 16px; }
[data-tmp][data-mode=simulateur] .tmp-q { font-size: 13.5px; }
[data-tmp][data-mode=simulateur] .tmp-q span { width: 22px; height: 22px; font-size: 11.5px; }
[data-tmp][data-mode=simulateur] [data-q] button { border-radius: 11px; padding: 8px 10px; font-size: 13.5px; }
[data-tmp][data-mode=simulateur] [data-q] button small { font-size: 11.5px; }
[data-tmp][data-mode=simulateur] .mt-3 { margin-top: 8px; }
[data-tmp][data-mode=simulateur] [data-resultat] { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
[data-tmp][data-mode=simulateur] .tmp-carte { gap: 6px; padding: 14px 16px; }
[data-tmp][data-mode=simulateur] .tmp-carte h3 { font-size: 16px; }
[data-tmp][data-mode=simulateur] .tmp-prix b { font-size: 19px; }
[data-tmp][data-mode=simulateur] .tmp-carte ul { font-size: 13px; }
