/* Simulateur d'enseigne M Enseignes : pensé d'abord pour le téléphone */
.simu-body footer { display: none; }
.simu { max-width: 860px; margin: 0 auto; padding: 22px 16px 120px; }
.simu-top { text-align: center; margin-bottom: 26px; }
.simu-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1; }
.simu-sub { color: var(--ink-dim); margin-top: 8px; }
.progress { height: 6px; background: #1d1d1d; margin: 22px 0 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 16.6%; background: var(--red); box-shadow: var(--glow); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.steps-dots { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; font-family: var(--font-sub); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-mute); }
.steps-dots li.done { color: var(--ink-dim); }
.steps-dots li.cur { color: #fff; }
@media (max-width: 420px) { .steps-dots { font-size: .6rem; } }

.simu .step { padding: 0; }
.simu [hidden] { display: none !important; }
.step { animation: stepIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step-num { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; background: var(--red); font-size: .8em; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.step-help { color: var(--ink-dim); margin-bottom: 18px; }
.field-label { display: block; font-family: var(--font-sub); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 8px; }
.link-btn { background: none; border: 0; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; padding: 10px 0; }
.link-btn:hover { color: var(--red); }

/* Guide photo illustré */
.photo-guide { background: var(--bg-panel); border: 1px solid var(--line); margin-bottom: 16px; }
.photo-guide summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font-family: var(--font-sub); text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.photo-guide summary::-webkit-details-marker { display: none; }
.photo-guide summary::before { content: "📐"; margin-right: 8px; }
.photo-guide summary::after { content: "+"; position: absolute; right: 16px; top: 8px; color: var(--red); font-size: 1.6rem; }
.photo-guide[open] summary::after { content: "\2212"; }
.pg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 14px; }
@media (max-width: 640px) { .pg-grid { grid-template-columns: 1fr 1fr; } }
.pg { margin: 0; }
.pg svg { width: 100%; height: auto; display: block; background: #0d0d0d; border: 2px solid; overflow: hidden; }
.pg.ok svg { border-color: #2fbf5b; }
.pg.ko svg { border-color: #5a2020; opacity: .9; }
.pg-frame { fill: none; stroke: #555; stroke-width: 2; stroke-dasharray: 5 4; }
.pg-wall { fill: #262626; stroke: #9a9a9a; stroke-width: 1.5; }
.pg-sign { fill: rgba(255,30,30,.25); stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; }
.pg-line { fill: none; stroke: #9a9a9a; stroke-width: 1.5; }
.pg figcaption { font-size: .82rem; color: var(--ink-dim); margin-top: 6px; line-height: 1.35; }
.pg figcaption b { display: block; font-family: var(--font-sub); text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; }
.pg.ok b { color: #4fdc7a; } .pg.ko b { color: #ff6b6b; }
.pg-tips { margin: 14px 14px 0; padding: 0 0 16px 18px; color: var(--ink-dim); font-size: .92rem; display: grid; gap: 6px; }
.pg-tips b { color: #fff; font-weight: 600; }

/* Gros choix (photo, import) */
.big-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: 150px; padding: 18px; cursor: pointer; background: var(--bg-panel); border: 2px dashed #333; transition: .2s;
}
.big-choice:hover, .big-choice:focus-within { border-color: var(--red); box-shadow: 0 0 24px -8px var(--red); }
.big-choice.wide { min-height: 120px; }
.bc-icon { font-size: 2.2rem; }
.bc-title { font-family: var(--font-sub); text-transform: uppercase; font-weight: 600; font-size: 1.1rem; }
.bc-sub { color: var(--ink-mute); font-size: .88rem; }
@media (max-width: 480px) { .big-choices { grid-template-columns: 1fr; } .big-choice { min-height: 110px; } }
.pg-grid.pg-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .pg-grid.pg-3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .pg-3 figcaption { font-size: .74rem; } }
.pg-door { fill: rgba(255,30,30,.18); stroke: var(--red); stroke-width: 2.5; }
.pg-eye { fill: #4fdc7a; }
.pg-arrow { fill: none; stroke: #4fdc7a; stroke-width: 2.5; stroke-linecap: round; }
.pg-astuce { margin: 12px 14px 16px; padding: 10px 12px; background: #101a12; border-left: 3px solid #4fdc7a; color: var(--ink-dim); font-size: .9rem; }
.pg-astuce b { color: #fff; }

/* Mesure de la façade */
.mesure { margin-top: 18px; padding: 16px; background: var(--bg-panel); border: 1px solid var(--line); }
.mesure h3 { font-family: var(--font-sub); text-transform: uppercase; font-size: 1.05rem; margin-bottom: 6px; }
.mesure-etat { color: var(--ink-dim); margin-bottom: 10px; }
.mesure-stage { position: relative; touch-action: none; user-select: none; border: 1px solid var(--line); background: #000; }
.mesure-stage img { width: 100%; height: auto; display: block; }
.mesure-stage.busy::after { content: "Analyse de la photo…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); font-family: var(--font-sub); text-transform: uppercase; letter-spacing: .05em; }
.mesure-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m-repere { fill: rgba(255,30,30,.16); stroke: var(--red); }
.m-zone { fill: rgba(79,220,122,.12); stroke: #4fdc7a; stroke-dasharray: 10 6; }
.m-facade { stroke: #4fa3ff; stroke-dasharray: 12 8; }
.m-cote { stroke: #ff9a1f; }
.mh { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,30,30,.35); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); cursor: grab; touch-action: none; z-index: 2; }
.loupe { position: absolute; width: 116px; height: 116px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.6); background-repeat: no-repeat; pointer-events: none; z-index: 3; }
.loupe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--red); border-radius: 50%; }
.mesure-aide { color: var(--ink-dim); font-size: .92rem; margin: 10px 0 14px; }
.mesure-aide b { color: #fff; }
.ref-question, .cotes-lues { margin-top: 6px; padding: 14px; border: 1px solid var(--line); background: #0e0e0e; margin-bottom: 12px; }
.ref-titre, .cotes-lues > p { font-size: 1.08rem; font-weight: 600; margin-bottom: 12px; }
.ref-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-btns .btn { flex: 1 1 180px; }
.ref-saisie { margin-top: 14px; display: grid; gap: 10px; }
.ref-ligne { display: flex; align-items: center; gap: 8px; }
.ref-ligne input { width: 120px !important; font-size: 1.15rem !important; text-align: center; }
.cote { display: grid; gap: 6px; margin-bottom: 12px; color: var(--ink); }
.mesure-dims { font-size: 1.1rem; margin-bottom: 10px; }
.mesure-dims b { color: #fff; }
.mesure-ref { color: var(--ink-dim); margin-top: 10px; }
/* Avertissements : bien visibles, taille normale */
.avertissement { margin: 10px 0; padding: 12px 14px; background: #2a1d05; border: 1px solid #ff9a1f; border-left-width: 5px; color: #ffd9a0; font-size: 1rem; line-height: 1.45; font-weight: 500; }
.avertissement::before { content: "⚠️ "; }
.dims-live { margin-top: 14px; }
.dims-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dims-val { font-size: 1.15rem; text-align: center; flex: 1 1 200px; }
.dims-val b { color: #fff; }
.dims-btn { padding: 10px 14px; }
.recap { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); background: var(--bg-panel); }
.recap h3 { font-family: var(--font-sub); text-transform: uppercase; margin-bottom: 8px; }
.recap p { color: var(--ink-dim); margin: 3px 0; }
.recap p b { color: #fff; }
.preview-box { margin-top: 18px; border: 1px solid var(--line); }
.preview-box img { width: 100%; height: auto; }

/* Onglets logo */
.tabs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; margin-bottom: 16px; }
.tab { font-family: var(--font-sub); text-transform: uppercase; font-weight: 600; letter-spacing: .02em; font-size: .95rem; padding: 14px 10px; background: var(--bg-panel); color: var(--ink-dim); border: 1px solid #2a2a2a; cursor: pointer; }
.tab[aria-selected="true"] { background: #1a0808; color: #fff; border-color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.tab .star { display: inline-block; animation: twinkle 2.4s infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(15deg); } }

/* Carte IA : la fonction star */
.ia-card {
  position: relative; padding: 22px; background: linear-gradient(160deg, #1a0a0a, #0e0e0e 55%);
  border: 1px solid #3a1414; box-shadow: 0 0 0 1px rgba(255,30,30,.08), 0 30px 60px -30px rgba(255,30,30,.35);
}
.ia-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ia-head h3 { font-family: var(--font-sub); text-transform: uppercase; font-size: 1.25rem; }
.ia-head p { color: var(--ink-dim); font-size: .95rem; margin-top: 2px; }
.ia-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; font-family: var(--font-display); font-size: 1.3rem; background: var(--red); box-shadow: var(--glow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.ia-card label, .estim label, .simu .field { display: grid; gap: 6px; font-family: var(--font-sub); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 14px; }
.simu input:not([type=checkbox]):not([type=range]):not([type=file]), .simu textarea, .simu select {
  width: 100%; background: #141414; border: 1px solid #2c2c2c; color: #fff; padding: 13px 14px; font: inherit; font-size: 1rem;
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
}
.simu input:focus, .simu textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-sub); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; background: #141414; color: var(--ink-dim); border: 1px solid #333; padding: 9px 14px; cursor: pointer; transition: .15s; }
.chip:hover { color: #fff; border-color: #666; }
.chip.on { color: #fff; border-color: var(--red); background: #2a0c0c; }
.chip.sw::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: -1px; box-shadow: 0 0 0 1px #555; }
.btn-generate { width: 100%; justify-content: center; font-size: 1.15rem; padding: 20px; clip-path: none; position: relative; overflow: hidden; }
.btn-generate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3s infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.btn-generate:disabled { opacity: .45; cursor: not-allowed; }
.btn-generate:disabled::after { display: none; }
.ia-count { text-align: center; color: var(--ink-mute); font-size: .85rem; margin-top: 8px; }
.ia-loading { text-align: center; padding: 26px 0 10px; color: var(--ink-dim); }
.ia-scan { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.ia-scan span { width: 70px; height: 70px; background: #151515; border: 1px solid #2a2a2a; position: relative; overflow: hidden; }
.ia-scan span::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--red); box-shadow: var(--glow); animation: scan 1.4s infinite ease-in-out; }
.ia-scan span:nth-child(2)::after { animation-delay: .2s; } .ia-scan span:nth-child(3)::after { animation-delay: .4s; }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.ia-demo-note { color: #ffb43a; font-size: .85rem; margin-top: 12px; border-left: 3px solid #ffb43a; padding-left: 10px; }
.ia-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .ia-results { grid-template-columns: repeat(4, 1fr); } }
.ia-result { position: relative; aspect-ratio: 1; background: #fff; border: 3px solid transparent; cursor: pointer; padding: 6px; transition: .2s; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.ia-result:nth-child(2) { animation-delay: .1s; } .ia-result:nth-child(3) { animation-delay: .2s; } .ia-result:nth-child(4) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.ia-result img { width: 100%; height: 100%; object-fit: contain; }
.ia-result:hover { transform: translateY(-3px); }
.ia-result.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), var(--glow); }
.ia-result.on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; }
@media (min-width: 640px) { .ia-results { grid-template-columns: repeat(3, 1fr); } }
.ia-result { display: grid; grid-template-rows: 1fr auto; padding: 10px 10px 6px; }
.ia-result img { min-height: 0; }
.ia-result-titre { display: block; color: #555; font-size: .78rem; text-align: center; margin-top: 4px; }
.ia-retouche { margin-top: 16px; padding: 14px; border: 1px dashed var(--line); }
.ia-retouche .field { margin-bottom: 10px; }
.ia-test-info { margin-top: 12px; padding: 8px 12px; background: #1a1405; border-left: 3px solid #ff9a1f; color: #ffcf8a; font-size: .85rem; }
.ia-test select { border-color: #ff9a1f !important; }
.chip.sw-perso { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.sw-perso input { width: 22px; height: 22px; padding: 0 !important; border: 0 !important; background: none !important; cursor: pointer; }
.ia-mention { color: var(--ink-mute); font-size: .82rem; font-style: italic; margin-top: 14px; text-align: center; }
.check { display: flex !important; align-items: center; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-body) !important; font-size: 1rem !important; color: var(--ink) !important; margin: 14px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.logo-chosen { margin-top: 20px; }
.checker { display: inline-block; padding: 12px; background: repeating-conic-gradient(#2a2a2a 0 25%, #1c1c1c 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); }
.checker img { max-height: 140px; max-width: 100%; }

/* Types d'enseigne */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
@media (max-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
.type { text-align: left; background: var(--bg-panel); border: 1px solid #2a2a2a; color: #fff; padding: 12px; cursor: pointer; transition: .15s; }
.type b { display: block; font-family: var(--font-sub); text-transform: uppercase; font-size: .95rem; }
.type span { color: var(--ink-mute); font-size: .8rem; }
.type.on { border-color: var(--red); background: #1f0909; box-shadow: inset 3px 0 0 var(--red); }

/* Placement intelligent */
.ia-place { padding: 16px; margin-bottom: 14px; background: linear-gradient(160deg, #1a0a0a, #0e0e0e 60%); border: 1px solid #3a1414; }
.ia-place-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ia-place-head b { display: block; font-family: var(--font-sub); text-transform: uppercase; font-size: 1.1rem; }
.ia-place-head span { color: var(--ink-dim); font-size: .9rem; }
.ia-badge.small { width: 40px; height: 40px; font-size: 1.05rem; }
.ia-place-row { display: flex; gap: 8px; margin-top: 10px; }
.ia-place-row input { flex: 1; min-width: 0; }
.ia-place-row .btn { clip-path: none; padding: 12px 18px; white-space: nowrap; }
.ia-place-row .btn:disabled { opacity: .5; }
.place-msg { margin-top: 10px; font-size: .9rem; color: #9fe6b4; border-left: 3px solid #2fbf5b; padding-left: 10px; }
.place-msg.demo { color: #ffb43a; border-color: #ffb43a; }
.stage.busy::before { content: "L'IA regarde votre façade…"; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(0,0,0,.55); font-family: var(--font-sub); text-transform: uppercase; letter-spacing: .04em; }
.stage.busy::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; z-index: 5; background: var(--red); box-shadow: var(--glow); animation: scan 1.6s infinite ease-in-out; }

/* Zone de placement */
.stage { position: relative; width: 100%; overflow: hidden; touch-action: none; user-select: none; background: #000; border: 1px solid var(--line); }
.stage img { width: 100%; height: auto; display: block; pointer-events: none; }
#stage-logo { position: absolute; left: 0; top: 0; transform-origin: 0 0; cursor: move; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.handle { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255,30,30,.9); border: 3px solid #fff; box-shadow: 0 0 12px rgba(255,30,30,.8); cursor: grab; display: none; z-index: 3; touch-action: none; }
.stage.persp .handle { display: block; }
@media (pointer: coarse) { .handle { width: 44px; height: 44px; margin: -22px 0 0 -22px; } }
.handle::after { content: ""; position: absolute; inset: -14px; } /* zone tactile élargie */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; outline: 1px dashed rgba(255,255,255,0); }
.place-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 12px; }
.range { display: flex !important; align-items: center; gap: 10px; flex: 1 1 220px; font-family: var(--font-sub); text-transform: uppercase; font-size: .85rem; color: var(--ink-dim); margin: 0 !important; }
.range input { flex: 1; accent-color: var(--red); }
.switch-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--red); }

/* Maquette jour / nuit */
.mockup { position: relative; background: #000; border: 1px solid var(--line); overflow: hidden; }
.mockup canvas { display: block; width: 100%; height: auto; }
#render-night { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.mockup.night #render-night { opacity: 1; animation: nightOn 1.1s both; }
@keyframes nightOn { 0% { opacity: 0; } 30% { opacity: .9; } 36% { opacity: .35; } 48% { opacity: 1; } 54% { opacity: .6; } 70%, 100% { opacity: 1; } }
.mockup-wait { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); font-family: var(--font-sub); text-transform: uppercase; }
.daynight { display: flex; justify-content: center; margin: 18px 0; }
.dn-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: min(360px, 100%); height: 64px;
  background: #1a1a1a; border: 2px solid #333; border-radius: 40px; cursor: pointer; font-family: var(--font-sub); text-transform: uppercase; font-weight: 600; font-size: 1.05rem; color: #fff; padding: 0;
}
.dn-knob { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 30px; background: linear-gradient(135deg, #ffd34d, #ff9d2e); box-shadow: 0 0 20px rgba(255,190,60,.6); transition: transform .5s cubic-bezier(.5,1.6,.4,1), background .5s; z-index: 0; }
.dn-sun, .dn-moon { position: relative; z-index: 1; }
.dn-toggle[aria-pressed="true"] .dn-knob { transform: translateX(100%); background: linear-gradient(135deg, #2a2f6b, #0b0e2a); box-shadow: 0 0 20px rgba(120,140,255,.6), inset 0 0 0 2px #4a55c8; }
.light-field { text-align: center; }
.light-field .chips { justify-content: center; }
.note-type { color: var(--ink-dim); text-align: center; font-size: .92rem; margin-top: 8px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; margin-top: 16px; }

/* Estimation */
.estim { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 640px) { .estim { grid-template-columns: 1fr; } }
.estim-type { margin-bottom: 14px; color: var(--ink-dim); }
.estim-type b { color: #fff; }
.width-row { display: flex; align-items: center; gap: 10px; text-transform: none; }
.width-row input[type=range] { flex: 1; accent-color: var(--red); }
.width-row input[type=number] { width: 110px !important; text-align: center; font-size: 1.2rem !important; }
.estim-price { text-align: center; padding: 26px 16px; background: radial-gradient(circle at 50% 40%, #2a0a0a, #0e0e0e 70%); border: 1px solid #3a1414; }
.ep-label { display: block; font-family: var(--font-sub); text-transform: uppercase; color: var(--ink-dim); letter-spacing: .08em; }
.ep-num { display: block; font-family: var(--font-display); font-size: clamp(3rem, 12vw, 4.6rem); line-height: 1.05; color: #fff; text-shadow: var(--glow); }
.ep-ht { font-family: var(--font-sub); text-transform: uppercase; color: var(--ink-dim); }
.estim-hint { margin: -6px 0 14px; color: var(--ink-dim); font-size: .9rem; }
.estim { align-items: start; }
.estim-group { border: 1px solid var(--line); padding: 4px 14px 8px; margin: 6px 0 14px; }
.estim-group legend { font-family: var(--font-sub); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); padding: 0 6px; }
.estim-group .field { margin: 4px 0 10px; }
.estim-group .field.sub { margin-left: 30px; }
.estim-group .estim-hint { margin: 0 0 8px 30px; }
.estim-side { position: sticky; top: 12px; display: grid; gap: 12px; }
.estim-maquette { width: 100%; height: auto; border: 1px solid var(--line); }
.estim-maquette:not([width]) { display: none; }
@media (max-width: 640px) { .estim-side { position: static; } }
.estim .check { margin: 8px 0; font-size: .95rem !important; }
.estim .check.big { margin-top: 4px; }
.ep-ttc { margin-top: 10px; color: var(--ink-dim); }
.ep-ttc a { color: #fff; }
.estim-price.fourchette .ep-num { font-size: clamp(2.1rem, 8vw, 3.2rem); }
.estim-detail-titre { color: var(--ink-dim); font-size: .9rem; margin-bottom: 6px; }
.estim-price.sur-devis .ep-num { font-size: clamp(2.4rem, 9vw, 3.4rem); }
.estim-detail { margin-top: 22px; overflow-x: auto; }
.estim-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.estim-table th { text-align: left; font-family: var(--font-sub); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.estim-table td { padding: 10px; border-bottom: 1px solid #1f1f1f; vertical-align: top; }
.estim-table td:nth-child(n+2), .estim-table th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.estim-table td small { display: block; color: var(--ink-mute); font-size: .8rem; margin-top: 3px; }
.estim-table tfoot td { text-align: right; border-bottom: 0; padding: 6px 10px; color: var(--ink-dim); }
.estim-table tfoot tr.ttc td { color: #fff; font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .estim-table thead { display: none; }
  .estim-table tbody td { display: block; text-align: left !important; border: 0; padding: 2px 0; }
  .estim-table tbody td:first-child { padding-top: 12px; }
  .estim-table tbody td:last-child { border-bottom: 1px solid #1f1f1f; padding-bottom: 12px; font-weight: 700; }
  .estim-table tbody td:nth-child(3)::before { content: 'PU HT : '; color: var(--ink-mute); }
  .estim-table tfoot td { padding: 4px 0; }
}
.mention { color: var(--ink-mute); font-size: .85rem; font-style: italic; margin-top: 14px; }

/* Devis */
.simu-form { margin-top: 6px; }
.simu-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { color: var(--ink-mute); font-size: .82rem; }
.form-error { color: #ff6b6b; font-weight: 600; }
.sent { text-align: center; padding: 30px 10px; }
.sent-check { width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--red); box-shadow: var(--glow); animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
.sent h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 2rem; }
.sent p { color: var(--ink-dim); }
.direct { display: flex; gap: 10px; margin-top: 18px; }
.direct .btn { flex: 1; justify-content: center; }
.direct .wa { border-color: #25d366; }

/* Formulaire de contact obligatoire */
.gate { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.gate[hidden] { display: none; }
.gate-box {
  position: relative; width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(170deg, #1d0909, #0e0e0e 45%); border-top: 3px solid var(--red); box-shadow: 0 -20px 80px rgba(255,30,30,.25);
  animation: gateUp .45s cubic-bezier(.2,.9,.3,1);
}
@keyframes gateUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .gate { align-items: center; } .gate-box { border: 1px solid #3a1414; border-top: 3px solid var(--red); } }
.gate-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--ink-dim); font-size: 2rem; cursor: pointer; line-height: 1; padding: 6px; }
.gate-icon { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 2rem; border-radius: 50%; background: #120a1e; box-shadow: 0 0 0 2px #4a55c8, 0 0 30px rgba(120,140,255,.5); animation: twinkle 3s infinite; }
.gate h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); text-align: center; line-height: 1.05; }
.gate-sub { text-align: center; color: var(--ink-dim); margin: 10px 0 18px; font-size: .95rem; }
.gate form label:not(.check) { display: grid; gap: 6px; font-family: var(--font-sub); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 12px; }
.gate .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .gate .row { grid-template-columns: 1fr; } }
.gate .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent span { font-size: .95rem; }
.gate-go { width: 100%; justify-content: center; clip-path: none; margin-top: 4px; font-size: 1.1rem; }
.rgpd a { color: var(--ink-dim); }

/* Navigation bas d'écran */
.simu-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px; justify-content: space-between;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0)); background: rgba(10,10,10,.94); backdrop-filter: blur(8px); border-top: 3px solid var(--red);
}
.simu-nav .btn { flex: 1; max-width: 300px; justify-content: center; padding: 16px 18px; }
.simu-nav .btn-primary { clip-path: none; }
.simu-nav .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
@media (min-width: 861px) { .simu-nav { justify-content: center; } }
.simu-body .mobile-bar { display: none !important; }
.nav-simu { color: #fff !important; }
