/* DP Studio — feuille de style */
:root {
  --navy: #182336; --navy2: #22324a; --amber: #fbbf24; --amber2: #f59e0b; --ink: #172033; --muted: #6b7280;
  --bg: #f3f5f8; --card: #ffffff; --line: #e2e6ec; --ok: #16a34a; --err: #dc2626; --blue: #2563eb;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; }
button, input, select, textarea { font: inherit; }
h3 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
h3 small { font-weight: normal; color: var(--muted); font-size: 12px; }
h3.mt, .mt { margin-top: 18px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; line-height: 1.45; }
code { background: #eef1f5; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* header */
.top { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: linear-gradient(180deg, var(--navy), var(--navy2)); color: #fff; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; }
.brand span { font-size: 18px; letter-spacing: .2px; }
.brand b { color: var(--amber); }
.brand small { color: #b9c3d3; font-size: 12px; margin-left: 4px; }
/* Pastille d'hebergeur : savoir d'un coup d'oeil si on est sur Cloudflare ou sur Netlify. */
.brand .hote { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; margin-left: 6px; border: 1px solid currentColor; opacity: .9; }
.brand .hote[data-h="cloudflare"] { color: #f6821f; }
.brand .hote[data-h="netlify"] { color: #05bdba; }
.brand .hote[data-h="local"] { color: #94a3b8; }
.dossier-name { flex: 1; display: flex; align-items: center; gap: 10px; }
.dossier-name input { flex: 1; max-width: 420px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 7px 10px; border-radius: 8px; font-weight: 600; }
.dossier-name .muted { color: #b9c3d3; font-size: 12px; }
.actions { display: flex; gap: 6px; }
.top .ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.top .ghost:hover { background: rgba(255,255,255,.16); }

/* stepper */
.steps { display: flex; gap: 4px; padding: 10px 20px 0; background: var(--navy2); }
.steps button { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: rgba(255,255,255,.06); color: #cfd6e2; border-radius: 10px 10px 0 0; cursor: pointer; }
.steps button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.steps button.active { background: var(--bg); color: var(--ink); }
.steps button.active i { background: var(--amber); color: #111; }
.steps button.done i { background: var(--ok); color: #fff; }

main { padding: 18px 20px 40px; max-width: 1500px; margin: 0 auto; }
.step { display: none; }
.step.active { display: block; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #374151; }
label input, label select, label textarea { padding: 7px 9px; border: 1px solid #cfd5de; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
label input:focus, label select:focus, textarea:focus, input:focus { outline: 2px solid rgba(37,99,235,.25); border-color: var(--blue); }
/* La case et son texte, rien de plus : un label en display:flex s'étire sur toute la
   largeur du bloc, et le moindre clic en bout de ligne cochait la case sans qu'on
   comprenne pourquoi. inline-flex + align-self limitent la cible au texte. */
label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; width: fit-content; max-width: 100%; align-self: flex-start; cursor: pointer; }
label.check input { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input[type=text], .row input:not([type]), .row select { flex: 1; padding: 8px 10px; border: 1px solid #cfd5de; border-radius: 7px; }
.row.small { font-size: 12px; margin-top: 8px; }
textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd5de; border-radius: 7px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.45; }
button { padding: 8px 14px; border-radius: 8px; border: 1px solid #cfd5de; background: #fff; color: var(--ink); cursor: pointer; }
button:hover { background: #f5f7fa; }
button.primary { background: linear-gradient(180deg, var(--amber), var(--amber2)); border-color: #d99a06; color: #111; font-weight: 700; }
button.primary:hover { filter: brightness(1.04); }
button.primary:disabled, button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost { background: #fff; }
button.danger { background: #fff5f5; border-color: #f3b4b4; color: var(--err); }
button.big { padding: 12px 22px; font-size: 15px; }
.nav-bottom { display: flex; justify-content: space-between; margin-top: 8px; }
.list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.list .item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; cursor: pointer; }
.list .item:hover { border-color: var(--blue); background: #f4f7ff; }
.list .item b { font-size: 13px; }
.list .item small { color: var(--muted); }
.list .item .grow { flex: 1; }
.list .item input[type=number] { width: 64px; padding: 5px; border: 1px solid #cfd5de; border-radius: 6px; }
.list .item button { padding: 4px 8px; font-size: 12px; }
.notes { white-space: pre-wrap; font-size: 12px; color: #374151; background: #fffbea; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; margin-top: 10px; display: none; }
.notes.show { display: block; }
.status { font-size: 12px; margin-top: 8px; color: var(--muted); }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
.parcelle { font-size: 13px; margin-bottom: 8px; }
.parcelle b { font-size: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chips span { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.copyline { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; }
.copyline code { white-space: pre-wrap; word-break: break-word; }
.minimap { width: 100%; aspect-ratio: 4/3; background: #f7f7f7; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.minimap svg { width: 100%; height: 100%; display: block; }
.seg { display: inline-flex; border: 1px solid #cfd5de; border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: #fff; }
.seg button.on { background: var(--navy); color: #fff; }
.recap { margin-top: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.recap b { font-size: 18px; }
.recap .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 6px; }
.recap .kv span { display: flex; justify-content: space-between; gap: 8px; }
.recap .kv span em { font-style: normal; color: var(--muted); }
.recap .proj { margin-top: 8px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 10px; }

/* planches */
.tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs button { border-radius: 999px; padding: 7px 14px; }
.tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.plate-layout { display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
@media (max-width: 1100px) { .plate-layout { grid-template-columns: 1fr; } }
.tools { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13px; align-self: start; position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
.tools h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tools h4:first-child { margin-top: 0; }
.tools .row { margin-bottom: 6px; }
.tools button { padding: 6px 10px; font-size: 12.5px; }
.tools button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tools label { margin-bottom: 6px; }
.tools .item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 4px; font-size: 12px; flex-wrap: wrap; min-width: 0; }
.tools .item .brk { flex-basis: 100%; height: 0; }
.tools .item input, .tools .item select { min-width: 0; }
.tools .row { flex-wrap: wrap; }
.tools .item .grow { flex: 1; }
.tools input[type=number] { width: 72px; }
.plate-view { min-width: 0; }
.plate { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.08); overflow: hidden; touch-action: none; }
.plate svg { width: 100%; height: auto; display: block; user-select: none; }
.plate-view .hint { margin-top: 6px; }
.dropzone { border: 2px dashed #cfd5de; border-radius: 8px; padding: 10px; text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 8px; cursor: pointer; }
.dropzone.has { border-style: solid; border-color: var(--ok); color: var(--ok); }
.dropzone input { display: none; }

/* export */
.checklist { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.checklist div::before { content: '✔ '; color: var(--ok); }
.checklist div.warn::before { content: '⚠ '; color: var(--amber2); }
.checklist div.err::before { content: '✖ '; color: var(--err); }
.filelist { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 12.5px; }
.filelist a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: #fafbfc; }
.filelist a:hover { border-color: var(--blue); }
.filelist a.main { grid-column: 1 / -1; background: #fffbea; border-color: #fde68a; font-weight: 600; }
.filelist a small { color: var(--muted); }

dialog { border: 0; border-radius: 12px; padding: 20px 22px; width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,15,25,.5); }
dialog label { margin-bottom: 10px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 80vw; }
.toast.show { opacity: 1; }
.toast.err { background: var(--err); }
.plat-only { display: none; }
body.plat .plat-only { display: flex; }

.zoombar { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 12px; }
.zoombar button { padding: 3px 10px; font-size: 13px; }
.plate.panning { cursor: grab; }

.plate.gomme, .plate.gomme * { cursor: not-allowed !important; }

/* checklist Monday / portail (étape 1) */
#mondayCheck .checklist { margin-top: 6px; }
#mondayCheck h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pieces { display: flex; flex-direction: column; gap: 4px; }
.piece { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; font-size: 12px; }
.piece .cat { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 1px 8px; white-space: nowrap; font-size: 11px; }
.piece a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.piece a:hover { text-decoration: underline; color: var(--blue); }
.piece .grow { flex: 1; }
.piece button { padding: 2px 7px; font-size: 11px; }
.mondaySrc { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 7px 10px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 8px; font-size: 12px; }
.mondaySrc span { flex: 1; }
.mondaySrc a { color: var(--blue); }
.mondaySrc button { padding: 3px 9px; font-size: 12px; }

/* ---------- écran d'ouverture (≈ 6 s) ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0f1622; color: #fff; cursor: pointer; animation: splashOut 1s ease-in-out 5.2s forwards; }
#splash.skip { display: none; }
#splash * { backface-visibility: hidden; }
.sp-bg { position: absolute; inset: -20%; background: radial-gradient(60% 60% at 50% 45%, #2a3d5c 0%, #182336 45%, #0b111b 100%); transform: scale(1.12); animation: spBg 6s ease-in-out forwards; will-change: transform; }
.sp-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0; mix-blend-mode: screen; will-change: transform, opacity; }
.sp-orb.o1 { width: 520px; height: 520px; left: 12%; top: 10%; background: radial-gradient(circle, rgba(251,191,36,.55), rgba(251,191,36,0) 70%); animation: spOrb1 6.5s ease-in-out forwards; }
.sp-orb.o2 { width: 620px; height: 620px; right: 5%; bottom: 0; background: radial-gradient(circle, rgba(37,99,235,.55), rgba(37,99,235,0) 70%); animation: spOrb2 6.5s ease-in-out forwards; }
.sp-orb.o3 { width: 380px; height: 380px; left: 45%; top: 55%; background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0) 70%); animation: spOrb3 6.5s ease-in-out forwards; }
.sp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 100%); -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 100%); opacity: 0; transform: perspective(900px) rotateX(55deg) translateY(160px) scale(1.6); animation: spGrid 6s ease-out .2s forwards; will-change: transform, opacity; }
.splash-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: spInner 1.2s ease-in 4.6s forwards; will-change: transform; }
.sp-logo-wrap { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.sp-halo { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(251,191,36,.45) 0%, rgba(251,191,36,.12) 40%, rgba(251,191,36,0) 70%); opacity: 0; animation: spHalo 2s ease-out 1.6s forwards; will-change: transform, opacity; }
.sp-rays { position: absolute; inset: -22px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(251,191,36,0) 0 20deg, rgba(251,191,36,.35) 25deg, rgba(251,191,36,0) 30deg 80deg, rgba(251,191,36,.25) 85deg, rgba(251,191,36,0) 90deg 170deg, rgba(251,191,36,.35) 175deg, rgba(251,191,36,0) 180deg 260deg, rgba(251,191,36,.25) 265deg, rgba(251,191,36,0) 270deg 360deg); mask-image: radial-gradient(circle, transparent 46%, #000 52%, transparent 72%); -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 52%, transparent 72%); opacity: 0; animation: spRays 5s linear 1.9s forwards; will-change: transform, opacity; }
/* le logo arrive de loin : petit, flou, puis s'approche et devient net */
.splash-logo { width: 140px; height: 140px; opacity: 0; transform: scale(.08); filter: blur(14px); animation: splashLogo 2.8s cubic-bezier(.45,.05,.2,1) .2s forwards; will-change: transform, filter, opacity; }
.splash-title { position: relative; display: flex; font-size: 72px; font-weight: 800; letter-spacing: 2px; line-height: 1; margin-top: 4px; overflow: hidden; padding: 6px 14px; }
.splash-title span { --c: #e9eef6; --glow: rgba(255,255,255,.35); display: inline-block; opacity: 0; transform: translateY(40px) scale(.9); filter: blur(6px); animation: splashUp .8s cubic-bezier(.2,.8,.2,1) forwards, spShine 1.2s ease-in-out 3.5s forwards; color: transparent; background-image: linear-gradient(105deg, var(--c) 0%, var(--c) 42%, #fff 50%, var(--c) 58%, var(--c) 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; will-change: transform, opacity, filter; }
.splash-title span.a { --c: #fbbf24; --glow: rgba(251,191,36,.6); }
.splash-title span:nth-child(1) { animation-delay: 2.2s, 3.5s; } .splash-title span:nth-child(2) { animation-delay: 2.28s, 3.54s; }
.splash-title span:nth-child(4) { animation-delay: 2.44s, 3.62s; } .splash-title span:nth-child(5) { animation-delay: 2.5s, 3.66s; } .splash-title span:nth-child(6) { animation-delay: 2.56s, 3.7s; }
.splash-title span:nth-child(7) { animation-delay: 2.62s, 3.74s; } .splash-title span:nth-child(8) { animation-delay: 2.68s, 3.78s; } .splash-title span:nth-child(9) { animation-delay: 2.74s, 3.82s; }
.splash-line { width: 0; height: 3px; background: linear-gradient(90deg, rgba(251,191,36,0), var(--amber) 20%, #fff 50%, var(--amber) 80%, rgba(251,191,36,0)); border-radius: 2px; box-shadow: 0 0 18px rgba(251,191,36,.7); animation: splashLine 1s cubic-bezier(.2,.8,.2,1) 3.1s forwards; }
.splash-sub { font-size: 24px; letter-spacing: 4px; margin-left: 12px; color: #eef2f8; opacity: 0; animation: spSub 1.4s cubic-bezier(.2,.8,.2,1) 3.4s forwards; }
.splash-tag { font-size: 13px; color: #a9b8cf; opacity: 0; transform: translateY(8px); animation: spTag .9s ease-out 3.9s forwards; }
@keyframes spBg { to { transform: scale(1); } }
@keyframes spOrb1 { 0% { opacity: 0; transform: translate(-80px, 40px); } 30% { opacity: 1; } 100% { opacity: .9; transform: translate(60px, -30px); } }
@keyframes spOrb2 { 0% { opacity: 0; transform: translate(80px, 60px); } 35% { opacity: .9; } 100% { opacity: .8; transform: translate(-70px, -20px); } }
@keyframes spOrb3 { 0% { opacity: 0; transform: scale(.6); } 50% { opacity: .5; } 100% { opacity: .35; transform: scale(1.3) translate(40px, -40px); } }
@keyframes spGrid { 0% { opacity: 0; transform: perspective(900px) rotateX(55deg) translateY(160px) scale(1.6); } 40% { opacity: .9; } 100% { opacity: .5; transform: perspective(900px) rotateX(55deg) translateY(-60px) scale(1.6); } }
@keyframes splashLogo { 0% { opacity: 0; transform: scale(.08); filter: blur(14px); } 12% { opacity: .35; } 55% { opacity: 1; filter: blur(4px); } 85% { filter: blur(0); } 100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 28px rgba(251,191,36,.45)) drop-shadow(0 18px 40px rgba(0,0,0,.55)); } }
@keyframes spHalo { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } 100% { opacity: .85; transform: scale(1); } }
@keyframes spRays { 0% { opacity: 0; transform: rotate(0deg) scale(.8); } 25% { opacity: 1; } 100% { opacity: .7; transform: rotate(120deg) scale(1.05); } }
@keyframes splashUp { to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 14px var(--glow)) drop-shadow(0 8px 24px rgba(0,0,0,.5)); } }
@keyframes spShine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes splashLine { to { width: 320px; } }
@keyframes spSub { 0% { opacity: 0; letter-spacing: 4px; transform: translateY(6px); } 100% { opacity: 1; letter-spacing: 14px; transform: translateY(0); } }
@keyframes spTag { to { opacity: 1; transform: translateY(0); } }
@keyframes spInner { to { transform: scale(1.06); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #splash { display: none; } }
.btnlink { display: inline-block; padding: 5px 10px; border: 1px solid #cfd5de; border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 12.5px; }
.btnlink:hover { border-color: var(--blue); background: #f4f7ff; }
.minimap { cursor: grab; }

/* menu Dossiers (en-tête) */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 520px; max-height: 70vh; overflow: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.28); padding: 10px; z-index: 40; font-size: 14px; text-align: left; }
.menu .mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 4px; }
.menu .mrow:hover { background: #f4f7ff; border-color: #c7d2fe; }
.menu .mrow.cur { background: #fff8e1; border-color: #fde68a; }
.menu .mrow .grow { flex: 1; min-width: 0; }
.menu .mrow b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .mrow small { color: var(--muted); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .mrow .mstep { background: var(--navy); color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 9px; white-space: nowrap; }
.menu .mrow button { padding: 4px 9px; font-size: 13px; }
.menu .msep { border-top: 1px solid var(--line); margin: 8px 0; }
.menu .mact { display: flex; gap: 8px; padding: 2px 4px 6px; }
.menu .mact button { font-size: 13.5px; padding: 8px 14px; }
.plate { position: relative; }
.plate.ortho::before { content: '⊾ 90° angles droits'; position: absolute; top: 8px; left: 8px; z-index: 5; background: #f97316; color: #fff; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }

/* panneau d'outils : sections dépliables + bandeau du mode actif */
.tsec { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.tsec > summary { cursor: pointer; padding: 8px 10px; font-weight: 700; font-size: 12.5px; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--ink); border-radius: 10px; user-select: none; }
.tsec > summary::-webkit-details-marker { display: none; }
.tsec > summary::after { content: '▸'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.tsec[open] > summary::after { transform: rotate(90deg); }
.tsec > summary:hover { background: #f4f7fa; }
.tsec-body { padding: 4px 10px 10px; border-top: 1px solid var(--line); }
.tsec .sub { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 10px 0 4px; }
.tsec .sub:first-child { margin-top: 4px; }
.modebar { display: flex; align-items: center; gap: 8px; background: #fff7ed; border: 1px solid #fdba74; border-left: 4px solid #f97316; border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; font-size: 12px; }
.modebar small { color: #7c2d12; }
.modebar button { padding: 4px 10px; font-size: 12px; background: #f97316; color: #fff; border-color: #ea580c; font-weight: 700; }
