:root {
  --blue: #4f74c4;
  --blue-dark: #355cad;
  --cyan: #43d0dc;
  --cyan-dark: #2fb7c5;
  --purple: #6d66c8;
  --ink: #1c2456;
  --muted: #616b8e;
  --line: #dfe5f1;
  --paper: #ffffff;
  --wash: #f1f3f8;
  --good: #18864b;
  --good-bg: #eaf9f0;
  --bad: #b83f4b;
  --bad-bg: #fff0f1;
  --shadow: 0 16px 38px rgba(35, 54, 104, .14);
  font-family: Inter, ui-rounded, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--wash); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(67, 208, 220, .16), transparent 25rem),
    radial-gradient(circle at 96% 8%, rgba(109, 102, 200, .11), transparent 24rem),
    linear-gradient(#f8f9fc, #eef1f7);
}
button { font: inherit; }
button:focus-visible { outline: 4px solid rgba(67, 208, 220, .42); outline-offset: 2px; }

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(53, 92, 173, .11);
  backdrop-filter: blur(12px);
}
.platform-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--blue-dark);
  background: #edf4ff;
  font-size: .82rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}
.platform-back:hover,.platform-back:focus-visible { background: #dfeeff; outline: 3px solid rgba(67,208,220,.28); }
.brand { display: flex; align-items: center; }
.brand img { width: 190px; height: auto; max-height: 48px; object-fit: contain; }
.prototype-badge { border-radius: 999px; padding: 9px 13px; background: #eaf8ff; color: var(--blue-dark); font-weight: 900; font-size: .82rem; }

main { width: min(1160px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 60px; }
.prototype-tabs { display: flex; gap: 9px; margin-bottom: 24px; padding: 6px; width: max-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 7px 20px rgba(35,54,104,.07); }
.prototype-tab { flex: 0 0 auto; min-height: 46px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 13px; padding: 8px 14px 8px 9px; color: var(--blue-dark); background: transparent; font-weight: 900; cursor: pointer; }
.prototype-tab span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--blue-dark); background: #e8f0fc; font-size: .75rem; }
.prototype-tab:hover { background: #eef4fc; }
.prototype-tab.active { color: white; background: linear-gradient(135deg,var(--blue),var(--blue-dark)); }
.prototype-tab.active span { color: var(--blue-dark); background: white; }
.single-exercise .prototype-tabs { display: none; }
.prototype-view[hidden] { display: none; }
.mission { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 18px; }
.eyebrow { margin: 0 0 6px; color: var(--cyan-dark); font-size: .8rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 8px; color: var(--blue-dark); font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1; letter-spacing: -.05em; }
.mission p:last-child { margin: 0; max-width: 790px; color: var(--muted); font-size: 1.04rem; line-height: 1.55; }
.mission p strong { color: var(--ink); }
.progress-card { min-width: 116px; padding: 15px 18px; border-radius: 22px; color: white; background: linear-gradient(145deg, var(--blue), var(--blue-dark)); box-shadow: var(--shadow); text-align: center; }
.progress-card span { display: block; font-size: .75rem; font-weight: 850; opacity: .8; }
.progress-card strong { display: block; margin-top: 3px; font-size: 1.6rem; }

.explorer { overflow: hidden; border: 1px solid #cad5e7; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.window-titlebar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding-left: 16px; color: white; background: linear-gradient(90deg, var(--blue-dark), #4773c9); }
.window-title { display: flex; align-items: center; gap: 9px; font-weight: 850; }
.folder-symbol { color: #ffd45e; font-size: .85rem; transform: rotate(45deg); }
.window-controls { align-self: stretch; display: flex; align-items: stretch; }
.window-controls span { width: 46px; display: grid; place-items: center; font-size: 1rem; }
.window-controls span:last-child { background: rgba(0,0,0,.12); }
.toolbar { min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #f8faff; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--blue-dark); font-size: 1.35rem; font-weight: 900; cursor: pointer; }
.icon-button:hover:not(:disabled) { background: #eaf1fb; }
.icon-button:disabled { color: #aab4c8; cursor: default; }
.breadcrumbs { min-width: 0; flex: 1; display: flex; align-items: center; overflow-x: auto; border: 1px solid #cbd7e9; border-radius: 10px; background: white; min-height: 40px; padding: 4px 8px; scrollbar-width: thin; }
.breadcrumbs button { flex: 0 0 auto; border: 0; border-radius: 7px; padding: 6px 7px; background: transparent; color: #334263; font-weight: 750; cursor: pointer; }
.breadcrumbs button:hover { background: #eaf1fb; color: var(--blue-dark); }
.breadcrumbs span { color: #95a1b7; }

.explorer-body { display: grid; grid-template-columns: 215px 1fr; min-height: 430px; }
.sidebar { padding: 15px 10px; border-right: 1px solid var(--line); background: #f7f9fd; }
.sidebar p { margin: 0 10px 10px; color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.sidebar button { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; padding: 10px 12px; color: #384567; background: transparent; font-weight: 750; text-align: left; cursor: pointer; }
.sidebar button span { width: 20px; color: var(--blue); text-align: center; font-size: 1.1rem; }
.sidebar button:hover, .sidebar button.active { color: var(--blue-dark); background: #e8f1ff; }
.content-panel { min-width: 0; background: white; }
.column-head, .file-row { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 100px; align-items: center; }
.column-head { min-height: 40px; padding: 0 14px 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 800; }
.file-list { padding: 5px 7px 14px; }
.file-row { width: 100%; min-height: 49px; border: 1px solid transparent; border-radius: 9px; padding: 4px 7px; background: transparent; color: #263453; text-align: left; cursor: pointer; }
.file-row:hover { background: #f1f6fd; }
.file-row.selected { border-color: #82aee9; background: #dfedff; }
.file-name { min-width: 0; display: flex; align-items: center; gap: 11px; font-weight: 750; }
.file-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-icon { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: white; font-size: .72rem; font-weight: 950; }
.item-icon.folder { background: #f3bc38; color: #624600; }
.item-icon.pdf { background: #e34d59; }
.item-icon.docx { background: #3175d1; }
.item-icon.jpg { background: #3aa778; }
.item-icon.txt { background: #78839a; }
.file-type, .file-size { color: #68758e; font-size: .88rem; }
.empty-state { padding: 55px 20px; color: var(--muted); text-align: center; }
.statusbar { min-height: 39px; display: flex; justify-content: space-between; gap: 12px; padding: 9px 15px; border-top: 1px solid var(--line); background: #f8faff; color: var(--muted); font-size: .8rem; }

.answer-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.feedback { min-height: 64px; flex: 1; display: flex; flex-direction: column; justify-content: center; border-radius: 18px; padding: 11px 15px; line-height: 1.35; }
.feedback strong { font-size: 1rem; }
.feedback span { margin-top: 3px; font-size: .9rem; }
.feedback.neutral { color: #445171; background: #eef3fa; }
.feedback.good { color: var(--good); background: var(--good-bg); }
.feedback.bad { color: var(--bad); background: var(--bad-bg); }
.actions { display: flex; gap: 9px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 14px; padding: 0 17px; font-weight: 900; cursor: pointer; }
.primary-button { border: 0; color: white; background: linear-gradient(135deg, var(--cyan-dark), var(--blue)); box-shadow: 0 9px 20px rgba(47,183,197,.24); }
.primary-button:disabled { color: #7b879d; background: #dfe5ee; box-shadow: none; cursor: default; }
.secondary-button { border: 1px solid var(--line); color: var(--blue-dark); background: white; }

.match-board { display: grid; grid-template-columns: minmax(0,1fr) 74px minmax(0,1fr); align-items: stretch; gap: 14px; padding: clamp(16px,3vw,30px); border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.match-column { min-width: 0; padding: 16px; border-radius: 21px; background: #f6f9fd; }
.match-column-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--blue-dark); font-size: .92rem; font-weight: 900; }
.match-column-title > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: white; background: var(--blue); }
.match-list { display: grid; gap: 11px; }
.match-card { width: 100%; min-height: 76px; display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 13px; border: 2px solid transparent; border-radius: 17px; padding: 10px 13px; color: var(--ink); background: white; box-shadow: 0 7px 18px rgba(35,54,104,.08); text-align: left; cursor: pointer; transition: transform .15s ease,border-color .15s ease,background .15s ease; }
.match-card:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(67,208,220,.7); }
.match-card.selected { border-color: var(--cyan-dark); background: #eafcff; }
.match-card.matched { border-color: #55bd7a; background: var(--good-bg); cursor: default; box-shadow: none; }
.match-card.wrong { border-color: #df6873; background: var(--bad-bg); }
.match-card:disabled { color: #39704f; opacity: .86; }
.match-token { display: grid; place-items: center; min-height: 48px; border-radius: 13px; color: white; background: linear-gradient(145deg,var(--blue),var(--purple)); font-size: 1rem; font-weight: 950; }
.match-card.matched .match-token { background: var(--good); }
.match-label strong { display: block; font-size: 1rem; }
.match-label span { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.match-card.matched .match-label span { color: #39704f; }
.match-center { display: grid; place-items: center; }
.match-center span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: white; background: linear-gradient(145deg,var(--cyan-dark),var(--blue)); font-size: 1.7rem; font-weight: 900; box-shadow: 0 10px 23px rgba(47,183,197,.25); }

.sort-board { display: grid; gap: 16px; }
.device-pool-wrap, .drop-zone { border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: 0 9px 24px rgba(35,54,104,.08); }
.device-pool-wrap { padding: 17px; }
.sort-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.sort-section-title span { color: var(--blue-dark); font-size: 1.05rem; font-weight: 950; }
.sort-section-title small { color: var(--muted); font-size: .8rem; }
.device-pool { min-height: 98px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 10px; border: 2px dashed #cbd8ec; border-radius: 17px; background: #f7faff; }
.device-pool.empty::after { content: "Tous les éléments ont été placés."; grid-column: 1 / -1; align-self: center; color: var(--muted); text-align: center; font-weight: 750; }
.device-card { min-width: 0; min-height: 72px; display: grid; grid-template-columns: 47px 1fr; align-items: center; gap: 10px; border: 2px solid transparent; border-radius: 15px; padding: 9px; color: var(--ink); background: white; box-shadow: 0 6px 16px rgba(35,54,104,.09); text-align: left; cursor: grab; }
.device-card:hover:not(:disabled) { border-color: rgba(67,208,220,.75); transform: translateY(-1px); }
.device-card:active { cursor: grabbing; }
.device-card.selected { border-color: var(--cyan-dark); background: #eafcff; }
.device-card.wrong { border-color: #df6873; background: var(--bad-bg); }
.device-card.correct { border-color: #55bd7a; background: var(--good-bg); cursor: default; }
.device-card:disabled { opacity: .92; }
.device-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: white; background: linear-gradient(145deg,var(--blue),var(--purple)); font-size: .72rem; font-weight: 950; }
.device-copy { min-width: 0; }
.device-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--blue-dark); font-size: .93rem; white-space: nowrap; }
.device-copy small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.drop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.drop-zone { min-height: 264px; overflow: hidden; transition: border-color .15s ease,transform .15s ease; }
.drop-zone.drag-over, .drop-zone.selected-target { border-color: var(--cyan-dark); transform: translateY(-2px); }
.drop-zone > header { min-height: 86px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 11px; padding: 14px; color: white; }
.input-zone > header { background: linear-gradient(135deg,#3e75cf,#355cad); }
.output-zone > header { background: linear-gradient(135deg,#29bdca,#248cae); }
.storage-zone > header { background: linear-gradient(135deg,#766cd0,#554bb0); }
.zone-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: rgba(255,255,255,.18); font-size: 1.4rem; font-weight: 950; }
.drop-zone header strong { display: block; font-size: 1.12rem; }
.drop-zone header small { display: block; margin-top: 3px; color: rgba(255,255,255,.84); font-size: .73rem; line-height: 1.25; }
.placed-list { min-height: 170px; display: grid; align-content: start; gap: 8px; padding: 11px; background: #f8faff; }
.placed-list:empty::after { content: "Dépose ici"; align-self: center; color: #929db2; text-align: center; font-size: .83rem; font-weight: 800; }
.placed-list .device-card { min-height: 64px; }

.order-board { display: grid; grid-template-columns: 90px minmax(0,760px); justify-content: center; gap: 17px; padding: clamp(18px,3vw,34px); border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.order-guide { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; min-height: 450px; padding: 7px 0; }
.order-guide span { display: grid; place-items: center; min-width: 64px; min-height: 34px; border-radius: 999px; color: white; background: var(--blue-dark); font-size: .76rem; font-weight: 950; text-transform: uppercase; }
.order-guide span:last-child { background: var(--cyan-dark); }
.order-guide div { width: 5px; min-height: 300px; background: linear-gradient(var(--blue-dark),var(--cyan-dark)); position: relative; }
.order-guide div::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 17px; height: 17px; border-right: 5px solid var(--cyan-dark); border-bottom: 5px solid var(--cyan-dark); transform: translateX(-50%) rotate(45deg); }
.order-list { display: grid; gap: 11px; }
.order-card { min-width: 0; display: grid; grid-template-columns: 50px 58px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 96px; border: 2px solid var(--line); border-radius: 19px; padding: 11px 13px; color: var(--ink); background: #fafdff; cursor: grab; transition: border-color .15s ease,transform .15s ease,background .15s ease; }
.order-card:hover { border-color: rgba(67,208,220,.75); }
.order-card.drag-target { border-color: var(--cyan-dark); transform: translateY(2px); }
.order-card.correct-position { border-color: #55bd7a; background: var(--good-bg); }
.order-card.wrong-position { border-color: #df6873; background: var(--bad-bg); }
.order-card.finished { cursor: default; }
.position-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: var(--blue-dark); font-size: 1.2rem; font-weight: 950; }
.step-symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--blue-dark); background: #e8f1ff; font-size: .73rem; font-weight: 950; }
.step-copy { min-width: 0; }
.step-copy strong { display: block; color: var(--blue-dark); font-size: 1.05rem; }
.step-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: .83rem; line-height: 1.35; }
.order-controls { display: grid; grid-template-columns: 38px 38px; gap: 5px; }
.order-controls button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; color: var(--blue-dark); background: white; font-size: 1rem; font-weight: 950; cursor: pointer; }
.order-controls button:hover:not(:disabled) { border-color: var(--cyan-dark); background: #eafcff; }
.order-controls button:disabled { color: #aeb7c8; cursor: default; }

.hotspot-mission h1 span { color: var(--cyan-dark); }
.hotspot-board { padding: clamp(10px,2.2vw,22px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg,#eaf6ff,#f2efff); box-shadow: var(--shadow); }
.computer-image { position: relative; width: min(100%,920px); margin: auto; overflow: hidden; border-radius: 20px; background: white; box-shadow: 0 11px 28px rgba(35,54,104,.14); }
.computer-image > img { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; border: 0; border-radius: 18px; background: transparent; cursor: crosshair; }
.hotspot:hover:not(:disabled), .hotspot:focus-visible { background: rgba(67,208,220,.17); box-shadow: inset 0 0 0 3px rgba(47,183,197,.75); }
.hotspot:disabled { cursor: default; }
.area-motherboard { left: 28%; top: 51%; width: 25%; height: 13%; }
.area-cpu { left: 35%; top: 31%; width: 13%; height: 22%; }
.area-ram { left: 48%; top: 25%; width: 10%; height: 32%; }
.area-ssd { left: 63%; top: 36%; width: 15%; height: 29%; }
.area-power { left: 21%; top: 10%; width: 20%; height: 16%; }
.area-gpu { left: 21%; top: 62%; width: 33%; height: 17%; }
.area-fan { left: 15%; top: 28%; width: 18%; height: 26%; }
.area-cables { left: 57%; top: 64%; width: 16%; height: 18%; }
.hotspot.correct-zone { background: rgba(40,174,92,.2); box-shadow: inset 0 0 0 4px rgba(24,134,75,.82); }
.click-marker { position: absolute; display: none; width: 34px; height: 34px; border: 4px solid var(--bad); border-radius: 50%; background: rgba(255,255,255,.45); transform: translate(-50%,-50%); pointer-events: none; animation: markerPulse .55s ease; }
.click-marker.show { display: block; }
@keyframes markerPulse { from { opacity: .2; transform: translate(-50%,-50%) scale(.6); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

.circuit-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.circuit-stage { position: relative; padding: 0; overflow: hidden; background: linear-gradient(145deg,#edf7ff,#f4f1ff); }
.circuit-stage svg { display: none; }
.circuit-image { display: block; width: 100%; height: auto; image-rendering: auto; }
.circuit-board-bg { fill: rgba(255,255,255,.72); stroke: #d8e4f3; stroke-width: 3; }
.wire-red, .wire-blue, .current-flow { fill: none; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.wire-red { stroke: #e3525e; }
.wire-blue { stroke: #4779ca; }
.current-flow { stroke: var(--cyan); stroke-width: 6; stroke-dasharray: 13 17; opacity: 0; }
.battery-cap { fill: #263866; }
.battery-body { fill: url(#batteryBody); stroke: #263f83; stroke-width: 5; }
.battery-shine { fill: rgba(255,255,255,.15); }
.battery-sign { fill: rgba(255,255,255,.18); }
.battery-plus { fill: none; stroke: white; stroke-width: 9; stroke-linecap: round; }
.battery-voltage { fill: white; font-size: 25px; font-weight: 950; text-anchor: middle; }
.battery-terminal { fill: #dde4ee; stroke: #8290a8; stroke-width: 4; }
.switch-base { fill: #344468; stroke: #233252; stroke-width: 5; }
.switch-panel { fill: #edf2f8; stroke: #b9c6d8; stroke-width: 4; }
.switch-terminal { fill: #dbe3ec; stroke: #53627c; stroke-width: 6; }
.switch-illustration line { stroke: #efaa2e; stroke-width: 17; stroke-linecap: round; }
.switch-knob { fill: #ffcb58; stroke: #9f6812; stroke-width: 6; transition: transform .25s ease; }
.switch-state-text { fill: #7a879c; font-size: 18px; font-weight: 950; text-anchor: middle; letter-spacing: 2px; }
.switch-closed { display: none; }
.diagram-label { fill: var(--blue-dark); font-size: 22px; font-weight: 900; text-anchor: middle; }
.lamp-glow { fill: url(#lampLight); opacity: 0; transition: opacity .25s ease; }
.bulb-glass { fill: url(#glassBulb); stroke: #6d7e9b; stroke-width: 7; transition: fill .25s ease,stroke .25s ease; }
.glass-highlight { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 12; stroke-linecap: round; }
.lamp-filament, .filament-stems { fill: none; stroke: #7a879c; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s ease; }
.bulb-base { fill: #8794a8; stroke: #56647c; stroke-width: 5; }
.bulb-thread { fill: none; stroke: #d8dee8; stroke-width: 5; stroke-linecap: round; }
.bulb-contact { fill: #303e58; }
.wire-terminal { stroke: white; stroke-width: 5; }
.red-terminal { fill: #e3525e; }
.blue-terminal { fill: #4779ca; }
.circuit-on .switch-open { display: none; }
.circuit-on .switch-closed { display: block; }
.switch-closed-label { display: none; fill: var(--good); }
.circuit-on .switch-open-label { display: none; }
.circuit-on .switch-closed-label { display: block; }
.circuit-on .current-flow { opacity: 1; animation: currentMove .75s linear infinite; }
.circuit-on .lamp-glow { opacity: 1; animation: lampPulse 1.35s ease-in-out infinite alternate; }
.circuit-on .bulb-glass { fill: #ffe680; stroke: #d99a12; }
.circuit-on .lamp-filament, .circuit-on .filament-stems { stroke: #e46b22; }
@keyframes currentMove { to { stroke-dashoffset: -30; } }
@keyframes lampPulse { from { opacity: .72; } to { opacity: 1; } }
.circuit-switch { position: absolute; left: 38%; top: 6%; width: 31%; height: 33%; border: 0; border-radius: 28px; background: transparent; cursor: pointer; }
.circuit-switch:hover, .circuit-switch:focus-visible { box-shadow: inset 0 0 0 5px rgba(67,208,220,.75); background: rgba(67,208,220,.08); }
.circuit-readout { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); background: #f8faff; }
.circuit-readout > div { padding: 14px 18px; text-align: center; }
.circuit-readout > div + div { border-left: 1px solid var(--line); }
.circuit-readout span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; }
.circuit-readout strong { display: block; margin-top: 4px; color: var(--blue-dark); font-size: 1rem; }
.circuit-on + .circuit-readout strong { color: var(--good); }

.relation-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(70px,12vw,150px); padding: clamp(18px,3vw,34px); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg,#edf7ff,#f5f1ff); box-shadow: var(--shadow); }
.relation-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.relation-lines path { fill: none; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 3px 3px rgba(35,54,104,.16)); animation: relationDraw .35s ease both; }
@keyframes relationDraw { from { stroke-dasharray: 8 500; opacity: 0; } to { stroke-dasharray: 520 0; opacity: 1; } }
.relation-column { position: relative; z-index: 3; display: grid; gap: 12px; align-content: start; }
.relation-column h2 { margin: 0 0 2px; color: var(--blue-dark); font-size: .82rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.relation-card { position: relative; min-height: 88px; display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 13px; border: 2px solid transparent; border-radius: 20px; padding: 10px 18px 10px 12px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 7px 18px rgba(35,54,104,.1); text-align: left; cursor: pointer; transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.relation-card:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(67,208,220,.7); box-shadow: 0 10px 24px rgba(35,54,104,.14); }
.relation-card.selected { border-color: var(--cyan-dark); background: #eafdff; box-shadow: 0 0 0 4px rgba(67,208,220,.18); }
.relation-card.matched { border-color: #55bd7d; background: #effbf3; }
.relation-card.wrong { border-color: var(--bad); background: var(--bad-bg); animation: relationShake .32s ease; }
.relation-card:disabled { cursor: default; opacity: .84; }
@keyframes relationShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.relation-card strong,.relation-card small { display: block; }
.relation-card strong { font-size: 1rem; }
.relation-card small { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.relation-icon { display: grid; place-items: center; width: 70px; height: 56px; border-radius: 15px; color: var(--blue-dark); background: #e8f1ff; }
.relation-icon svg { display: block; width: 62px; height: 40px; }
.relation-icon path { fill: #f9fbff; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.device-card { grid-template-columns: 58px 1fr; padding-left: 18px; }
.device-symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: white; background: linear-gradient(145deg,var(--purple),var(--blue)); font-size: 1.65rem; font-weight: 950; }
.relation-dot { position: absolute; top: 50%; width: 18px; height: 18px; border: 4px solid white; border-radius: 50%; background: var(--cyan-dark); box-shadow: 0 0 0 2px var(--blue-dark); transform: translateY(-50%); }
.connector-card .relation-dot { right: -10px; }
.device-card .relation-dot { left: -10px; }
.relation-card.matched .relation-dot { background: var(--good); }

@media (max-width: 760px) {
  .mission { grid-template-columns: 1fr; }
  .progress-card { display: none; }
  .explorer-body { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar p { display: none; }
  .sidebar button { flex: 0 0 auto; width: auto; }
  .explorer-body { min-height: 490px; }
  .column-head { display: none; }
  .file-list { padding: 8px; }
  .file-row { grid-template-columns: 1fr auto; min-height: 60px; }
  .file-type { grid-column: 1; margin-left: 41px; margin-top: -13px; font-size: .78rem; }
  .file-size { grid-column: 2; grid-row: 1 / span 2; }
  .answer-zone { align-items: stretch; flex-direction: column; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .match-board { grid-template-columns: 1fr; }
  .match-center { height: 42px; }
  .match-center span { width: 42px; height: 42px; transform: rotate(90deg); font-size: 1.3rem; }
  .match-column { padding: 12px; }
  .device-pool { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drop-grid { grid-template-columns: 1fr; }
  .drop-zone { min-height: 190px; }
  .placed-list { min-height: 96px; }
  .order-board { grid-template-columns: 52px 1fr; gap: 10px; padding: 14px 10px; }
  .order-guide { min-height: 490px; }
  .order-guide span { min-width: 48px; font-size: .65rem; }
  .order-card { grid-template-columns: 42px 1fr auto; gap: 9px; min-height: 108px; padding: 10px; }
  .step-symbol { display: none; }
  .position-number { width: 39px; height: 39px; }
  .order-controls { grid-template-columns: 34px; }
  .order-controls button { width: 34px; height: 34px; }
  .hotspot-board { padding: 7px; border-radius: 20px; }
  .computer-image { border-radius: 15px; }
  .hotspot { border-radius: 10px; }
  .circuit-stage { padding: 0; }
  .circuit-switch { left: 38%; top: 6%; width: 31%; height: 33%; border-radius: 18px; }
  .diagram-label { font-size: 25px; }
  .circuit-readout { grid-template-columns: 1fr; }
  .circuit-readout > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; text-align: left; }
  .circuit-readout > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .circuit-readout strong { margin-top: 0; }
  .relation-board { gap: 34px; padding: 14px 12px; }
  .relation-card { min-height: 82px; grid-template-columns: 1fr; gap: 5px; padding: 9px 10px; text-align: center; }
  .relation-icon,.device-symbol { margin: auto; }
  .relation-card small { display: none; }
  .device-card { grid-template-columns: 1fr; }
  .relation-lines path { stroke-width: 5; }
}

@media (max-width: 480px) {
  main { width: min(100% - 18px, 1160px); padding-top: 17px; }
  .topbar { padding-inline: 12px; }
  .brand img { width: 150px; max-height: 40px; }
  .prototype-badge { display: none; }
  .platform-back { min-height: 36px; padding: 7px 10px; font-size: .76rem; }
  .mission p:last-child { font-size: .95rem; }
  .prototype-tabs { width: 100%; }
  .prototype-tab { flex: 1 0 205px; }
  .device-pool { grid-template-columns: 1fr; }
  .window-titlebar { min-height: 44px; }
  .window-controls span { width: 34px; }
  .toolbar { padding-inline: 7px; }
  .sidebar button { padding: 9px 10px; }
  .statusbar { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Prototype 07 : plateau illustré 3D */
.visual-relation-board { display: block; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: white; }
.visual-relation-board .relation-illustration { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.visual-relation-board .relation-lines { z-index: 4; }
.visual-relation-board .relation-column { position: absolute; top: 3%; bottom: 3%; z-index: 3; width: 42%; display: grid; grid-template-rows: repeat(5,1fr); gap: 0; }
.visual-relation-board .relation-column:first-of-type { left: 0; }
.visual-relation-board .device-column { right: 0; }
.visual-relation-board .relation-column h2 { display: none; }
.visual-relation-board .relation-card { width: 100%; min-height: 0; display: block; border: 3px solid transparent; border-radius: 24px; padding: 0; background: transparent; box-shadow: none; text-align: center; }
.visual-relation-board .relation-card:hover:not(:disabled) { transform: none; border-color: rgba(67,208,220,.8); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 4px rgba(255,255,255,.34); }
.visual-relation-board .relation-card.selected { border-color: var(--cyan-dark); background: rgba(67,208,220,.12); box-shadow: inset 0 0 0 4px rgba(255,255,255,.55); }
.visual-relation-board .relation-card.matched { border-color: rgba(24,134,75,.6); background: rgba(234,249,240,.08); }
.visual-relation-board .relation-icon,.visual-relation-board .device-symbol,.visual-relation-board .relation-card small { display: none; }
.visual-relation-board .relation-card > span:not(.relation-icon):not(.device-symbol) { position: absolute; left: 14px; bottom: 8px; display: block; border-radius: 999px; padding: 6px 11px; color: var(--blue-dark); background: rgba(255,255,255,.92); box-shadow: 0 5px 14px rgba(35,54,104,.13); }
.visual-relation-board .device-card > span:last-child { right: 14px; left: auto; }
.visual-relation-board .relation-card strong { font-size: clamp(.72rem,1.45vw,1rem); }
.visual-relation-board .relation-dot { z-index: 5; width: 20px; height: 20px; }
.visual-relation-board .connector-card .relation-dot { right: -10px; }
.visual-relation-board .device-card .relation-dot { left: -10px; }

@media (max-width: 620px) {
  .visual-relation-board .relation-column { width: 43%; }
  .visual-relation-board .relation-card { border-width: 2px; border-radius: 12px; }
  .visual-relation-board .relation-card > span:not(.relation-icon):not(.device-symbol) { left: 4px; bottom: 3px; padding: 3px 6px; }
  .visual-relation-board .device-card > span:last-child { right: 4px; left: auto; }
  .visual-relation-board .relation-dot { width: 14px; height: 14px; border-width: 3px; }
  .visual-relation-board .connector-card .relation-dot { right: -7px; }
  .visual-relation-board .device-card .relation-dot { left: -7px; }
}

/* Prototype 08 : recherche de dangers dans une scène illustrée */
.safety-board { padding: clamp(7px,1.5vw,16px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg,#eaf6ff,#f2efff); box-shadow: var(--shadow); }
.safety-image { position: relative; width: min(100%,1000px); margin: auto; overflow: hidden; border-radius: 21px; background: white; box-shadow: 0 11px 28px rgba(35,54,104,.14); }
.safety-image > img { display: block; width: 100%; height: auto; }
.safety-hotspot { position: absolute; z-index: 2; border: 0; border-radius: 20px; background: transparent; cursor: crosshair; }
.safety-hotspot:hover:not(:disabled),.safety-hotspot:focus-visible { background: rgba(67,208,220,.16); box-shadow: inset 0 0 0 4px rgba(47,183,197,.82); }
.safety-hotspot.found { background: rgba(40,174,92,.14); box-shadow: inset 0 0 0 5px rgba(24,134,75,.86); }
.safety-hotspot.found::after { content: "✓"; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid white; border-radius: 50%; color: white; background: var(--good); box-shadow: 0 5px 13px rgba(24,134,75,.3); font-size: 1.1rem; font-weight: 950; }
.hazard-spill { left: 0; top: 20%; width: 19%; height: 19%; }
.hazard-goggles { left: 24%; top: 7%; width: 20%; height: 31%; }
.hazard-scarf { left: 72%; top: 8%; width: 27%; height: 34%; }
.hazard-cable { left: 0; top: 69%; width: 82%; height: 18%; }
.hazard-knife { left: 76%; top: 49%; width: 21%; height: 17%; }
.safety-marker { z-index: 4; }

@media (max-width: 620px) {
  .safety-board { padding: 5px; border-radius: 19px; }
  .safety-image { border-radius: 15px; }
  .safety-hotspot { border-radius: 10px; }
  .safety-hotspot.found { box-shadow: inset 0 0 0 3px rgba(24,134,75,.86); }
  .safety-hotspot.found::after { top: 3px; right: 3px; width: 23px; height: 23px; border-width: 2px; font-size: .8rem; }
}

/* Prototype 09 : programmation d’un robot */
.robot-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.robot-board { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.robot-board-image { display: block; width: 100%; height: auto; }
.robot-pawn { position: absolute; z-index: 3; left: 25.5%; top: 18.1%; width: 10.5%; height: auto; transform: translate(-50%,-50%) rotate(90deg); transform-origin: center; filter: drop-shadow(0 7px 7px rgba(35,54,104,.28)); transition: left .32s ease,top .32s ease,transform .25s ease; }
.robot-pawn.bump { animation: robotBump .35s ease; }
@keyframes robotBump { 40% { scale: .82; filter: drop-shadow(0 0 10px rgba(184,63,75,.65)); } }
.robot-console { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.robot-console header { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 14px; color: white; background: linear-gradient(135deg,var(--blue-dark),var(--purple)); }
.robot-console header > span { color: var(--cyan); }
.robot-console header small { opacity: .78; font-weight: 800; }
.command-sequence { min-height: 235px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; padding: 14px; background: #f7f9fd; }
.command-sequence p { width: 100%; margin: auto; color: var(--muted); font-size: .88rem; text-align: center; }
.command-chip { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg,var(--cyan-dark),var(--blue)); box-shadow: 0 5px 11px rgba(53,92,173,.18); font-size: 1.3rem; font-weight: 950; }
.command-chip.active { outline: 4px solid rgba(67,208,220,.38); transform: translateY(-2px); }
.command-pad { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 12px; border-top: 1px solid var(--line); }
.command-pad button { min-height: 76px; display: grid; place-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 15px; color: var(--blue-dark); background: white; font-size: .73rem; font-weight: 900; cursor: pointer; }
.command-pad button span { font-size: 1.65rem; line-height: 1; }
.command-pad button:hover:not(:disabled) { border-color: var(--cyan-dark); background: #eafcff; }
.command-pad button:disabled { opacity: .45; cursor: default; }
.console-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }

@media (max-width: 860px) {
  .robot-layout { grid-template-columns: 1fr; }
  .robot-console { display: grid; grid-template-columns: 1fr 1fr; }
  .robot-console header { grid-column: 1 / -1; }
  .command-sequence { min-height: 145px; }
  .command-pad { border-top: 0; border-left: 1px solid var(--line); }
  .console-actions { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .robot-board { border-radius: 18px; }
  .robot-console { display: block; }
  .command-sequence { min-height: 125px; }
  .command-pad { border-top: 1px solid var(--line); border-left: 0; }
  .command-pad button { min-height: 67px; }
}

/* Prototype 10 : mini-tableur interactif */
.spreadsheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.sheet-titlebar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: white;
  background: linear-gradient(135deg,var(--blue-dark),var(--purple));
  font-weight: 900;
}
.sheet-app-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-dark);
  background: var(--cyan);
  font-size: .82rem;
}
.sheet-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #cad2e1;
  background: #f3f6fb;
}
.sheet-ribbon > strong { margin-right: 5px; color: var(--blue-dark); }
.sheet-function {
  min-height: 40px;
  border: 1px solid #aebbd0;
  border-radius: 10px;
  padding: 7px 13px;
  color: var(--blue-dark);
  background: white;
  font: inherit;
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
}
.sheet-function:hover:not(:disabled),.sheet-function:focus-visible {
  border-color: var(--cyan-dark);
  background: #eafcff;
}
.sheet-function:disabled { opacity: .48; cursor: default; }
.sheet-formula-row {
  display: grid;
  grid-template-columns: 82px 44px minmax(0,1fr);
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #b9c4d4;
  background: white;
}
.sheet-name-box {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid #b9c4d4;
  color: var(--blue-dark);
  font-size: .84rem;
  font-weight: 900;
}
.sheet-fx { color: var(--cyan-dark); font-weight: 950; text-align: center; }
.sheet-formula-output {
  overflow: hidden;
  padding: 0 12px;
  color: #28344e;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet-scroll { overflow-x: auto; }
.sheet-grid {
  min-width: 500px;
  display: grid;
  grid-template-columns: 48px minmax(250px,1.45fr) minmax(160px,1fr);
  user-select: none;
  touch-action: pan-y;
}
.sheet-grid > * {
  min-height: 49px;
  display: flex;
  align-items: center;
  border-right: 1px solid #c8cfda;
  border-bottom: 1px solid #c8cfda;
  padding: 8px 12px;
  color: #222b3d;
  background: white;
}
.sheet-grid .sheet-corner,.sheet-grid .sheet-col,.sheet-grid .sheet-row {
  justify-content: center;
  padding: 5px;
  color: #506079;
  background: #eef1f5;
  font-size: .82rem;
  font-weight: 900;
}
.sheet-grid .sheet-heading { font-weight: 900; background: #f8fbff; }
.sheet-grid .value-cell {
  width: 100%;
  justify-content: flex-end;
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  cursor: cell;
}
.sheet-grid .value-cell:hover:not(:disabled) { background: #edfaff; }
.sheet-grid .value-cell.selected {
  position: relative;
  color: #173a72;
  background: #d9f8fb;
  box-shadow: inset 0 0 0 3px var(--cyan-dark);
}
.sheet-grid .value-cell:disabled { opacity: 1; cursor: default; }
.sheet-result-cell {
  justify-content: flex-end;
  color: #536178;
  font-weight: 950;
  background: #f8fbff !important;
}
.sheet-result-cell.solved {
  color: #12693a;
  background: #e5f8ed !important;
  box-shadow: inset 0 0 0 3px var(--good);
}
.sheet-hint {
  margin: 0;
  padding: 11px 14px;
  color: var(--muted);
  background: #f7f9fd;
  font-size: .86rem;
  font-weight: 750;
}

@media (max-width: 620px) {
  .spreadsheet { border-radius: 18px; }
  .sheet-titlebar { min-height: 48px; padding: 8px 11px; font-size: .9rem; }
  .sheet-app-icon { width: 30px; height: 30px; }
  .sheet-ribbon { gap: 6px; padding: 8px; }
  .sheet-ribbon > strong { width: 100%; font-size: .8rem; }
  .sheet-function { flex: 1; min-width: 82px; padding-inline: 7px; font-size: .77rem; }
  .sheet-formula-row { grid-template-columns: 65px 36px minmax(0,1fr); }
  .sheet-formula-output { padding-inline: 7px; font-size: .76rem; }
  .sheet-grid { min-width: 430px; grid-template-columns: 40px minmax(210px,1.35fr) minmax(135px,1fr); }
  .sheet-grid > * { min-height: 45px; padding: 7px 9px; font-size: .86rem; }
}

/* Prototype 11 : traitement de texte interactif */
.writer-app {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #e9edf5;
  box-shadow: var(--shadow);
}
.writer-titlebar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: white;
  background: linear-gradient(135deg,var(--blue-dark),var(--purple));
  font-weight: 900;
}
.writer-titlebar > span:last-child,.sheet-titlebar > span:last-child { margin-left: auto; opacity: .8; font-size: .82rem; }
.writer-app-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: #2d6fd0;
  font-weight: 950;
}
.writer-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid #bdc7d6;
  background: #f8faff;
}
.writer-ribbon label { color: var(--blue-dark); font-size: .86rem; font-weight: 900; }
.writer-ribbon select {
  min-height: 42px;
  border: 1px solid #aebbd0;
  border-radius: 10px;
  padding: 7px 28px 7px 10px;
  color: var(--blue-dark);
  background: white;
  font: inherit;
  font-size: .88rem;
  font-weight: 850;
}
.writer-separator { width: 1px; height: 30px; margin: 0 3px; background: #c9d1df; }
.writer-tool {
  width: 43px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #aebbd0;
  border-radius: 10px;
  color: var(--blue-dark);
  background: white;
  font: inherit;
  font-size: 1.08rem;
  cursor: pointer;
}
.writer-tool:hover:not(:disabled),.writer-tool:focus-visible { border-color: var(--cyan-dark); background: #eafcff; }
.writer-tool.active { border-color: var(--cyan-dark); color: #12366c; background: #c9f4f7; box-shadow: inset 0 0 0 2px rgba(47,183,197,.22); }
.writer-align { font-size: 1.35rem; font-weight: 950; line-height: 1; }
.writer-goals {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid #c7ceda;
  background: white;
}
.writer-goals span {
  border: 1px solid #bcc7d8;
  border-radius: 999px;
  padding: 6px 12px;
  color: #506079;
  background: #f5f7fb;
  font-size: .82rem;
  font-weight: 900;
}
.writer-goals span.done { border-color: #72c595; color: #12693a; background: #e5f8ed; }
.writer-workspace { overflow-x: auto; padding: clamp(18px,4vw,38px); }
.writer-page {
  position: relative;
  width: min(100%,720px);
  min-height: 510px;
  margin: auto;
  overflow: hidden;
  padding: clamp(34px,6vw,70px);
  background: white;
  box-shadow: 0 10px 26px rgba(35,54,104,.16);
}
.writer-block {
  width: 100%;
  display: block;
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 7px 9px;
  color: #243049;
  background: transparent;
  font-family: Arial,sans-serif;
  cursor: text;
}
.writer-block:hover,.writer-block:focus-visible { border-color: rgba(47,183,197,.48); background: #f3fcfd; }
.writer-block.selected { border-color: var(--cyan-dark); background: #eafcff; box-shadow: 0 0 0 3px rgba(67,208,220,.16); }
.writer-document-title { margin-bottom: 5px; font-size: 14pt; line-height: 1.25; text-align: left; }
.writer-subtitle { margin-bottom: 25px; color: #65728a; font-size: 14pt; text-align: left; }
.writer-paragraph { max-width: 560px; font-size: 14pt; line-height: 1.55; text-align: left; }
@media (max-width: 620px) {
  .writer-app { border-radius: 18px; }
  .writer-titlebar { min-height: 48px; padding: 8px 11px; font-size: .9rem; }
  .writer-titlebar > span:last-child { display: none; }
  .writer-app-icon { width: 30px; height: 30px; }
  .writer-ribbon { gap: 6px; padding: 8px; }
  .writer-separator { margin-inline: 1px; }
  .writer-tool { width: 39px; height: 39px; }
  .writer-ribbon select { min-height: 39px; }
  .writer-workspace { padding: 14px 8px; }
  .writer-page { min-width: 355px; min-height: 440px; padding: 35px 25px; }
  .writer-document-title,.writer-subtitle,.writer-paragraph { font-size: 12pt; }
}

/* Prototype 12 : recherche Internet interactive */
.search-browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}
.search-browser-top {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 15px;
  background: linear-gradient(135deg,var(--blue-dark),var(--purple));
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.66); }
.search-address {
  overflow: hidden;
  border-radius: 999px;
  padding: 9px 16px;
  color: #56647d;
  background: white;
  font-size: .84rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-page { width: min(100%,860px); margin: auto; padding: clamp(24px,5vw,48px); }
.search-logo { margin-bottom: 18px; text-align: center; }
.search-logo img { width: min(240px,70%); height: auto; margin: 0 auto; }
.search-query {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border: 2px solid #aebbd0;
  border-radius: 18px;
  padding: 8px 12px;
  background: white;
  box-shadow: 0 6px 18px rgba(35,54,104,.09);
}
.search-query.drag-over { border-color: var(--cyan-dark); background: #ecfcfd; }
.search-placeholder { color: #738097; font-size: .92rem; }
.query-chip,.keyword-chip {
  border: 1px solid #aebbd0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue-dark);
  background: white;
  font: inherit;
  font-size: .86rem;
  font-weight: 900;
}
.query-chip { border-color: var(--cyan-dark); background: #dff9fb; cursor: pointer; }
.query-chip::after { content: " ×"; color: #59718e; }
.search-launch { display: block; margin: 14px auto 20px; }
.keyword-bank {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 18px;
  padding: 14px;
  background: #f3f6fb;
}
.keyword-chip { cursor: grab; }
.keyword-chip:hover:not(:disabled),.keyword-chip:focus-visible { border-color: var(--cyan-dark); background: #eafcff; }
.keyword-chip.chosen { opacity: .42; cursor: default; }
.search-results { margin-top: 28px; }
.results-count { margin: 0 0 10px; color: #758198; font-size: .82rem; }
.search-result {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  color: #445168;
  background: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-result + .search-result { margin-top: 7px; }
.search-result:hover:not(:disabled),.search-result:focus-visible { border-color: var(--cyan-dark); background: #f1fcfd; }
.search-result strong { color: #254f9d; font-size: 1.04rem; }
.result-source { color: #326549; font-size: .8rem; }
.search-result.wrong { border-color: #d6858d; background: #fff0f1; }
.search-result.correct { border-color: #65bd8a; background: #eaf8ef; }

@media (max-width: 620px) {
  .search-browser { border-radius: 18px; }
  .search-browser-top { min-height: 50px; gap: 9px; padding: 8px 10px; }
  .browser-dots span { width: 8px; height: 8px; }
  .search-address { padding: 7px 11px; font-size: .72rem; }
  .search-page { padding: 20px 12px 26px; }
  .search-query { min-height: 54px; border-radius: 15px; }
  .keyword-bank { padding: 11px 8px; }
  .query-chip,.keyword-chip { padding: 7px 10px; font-size: .8rem; }
  .search-result { padding: 12px 11px; }
  .search-result strong { font-size: .94rem; }
}

/* Prototype 13 : enquête de fiabilité */
.verify-stage { overflow: hidden; border: 1px solid #b9d4e7; border-radius: 26px; background: radial-gradient(circle at 50% 0,#e9fbff 0,#e6f1fb 48%,#d8e4f4 100%); box-shadow: 0 18px 45px rgba(38,71,131,.17); }
.social-feed-heading { display: flex; justify-content: space-between; gap: 14px; padding: 15px 20px; color: white; background: linear-gradient(115deg,#1a3d91,#246fd0 58%,#27b7cb); }
.social-feed-heading span { opacity: .82; font-size: .84rem; }
.official-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; padding: 28px; }
.tweet-choice { position: relative; overflow: hidden; min-width: 0; min-height: 390px; display: flex; flex-direction: column; gap: 17px; border: 3px solid rgba(255,255,255,.8); border-radius: 27px; padding: 23px; color: #17223a; background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(238,247,255,.96)); box-shadow: 0 18px 34px rgba(36,66,121,.18),inset 0 1px 0 white,inset 0 -5px 12px rgba(36,98,171,.06); font: inherit; text-align: left; cursor: pointer; transition: transform .2s,border-color .2s,box-shadow .2s; }
.tweet-choice:hover,.tweet-choice:focus-visible { transform: translateY(-5px); border-color: #40c9dc; box-shadow: 0 22px 42px rgba(36,66,121,.23),0 0 0 4px rgba(64,201,220,.16); outline: none; }
.tweet-choice.correct { border-color: var(--good); background: linear-gradient(145deg,#f7fffa,#e4f8ec); box-shadow: 0 18px 38px rgba(25,120,68,.2),0 0 0 5px rgba(46,154,91,.14); }
.tweet-choice.wrong { border-color: #d35c69; background: linear-gradient(145deg,#fffafa,#ffedf0); animation: clue-shake .28s ease; }
@keyframes clue-shake { 33% { transform: translateX(-4px); } 66% { transform: translateX(4px); } }
.tweet-glow { position: absolute; width: 180px; height: 180px; top: -95px; right: -75px; border-radius: 50%; background: radial-gradient(circle,rgba(54,217,231,.36),rgba(54,217,231,0) 70%); pointer-events: none; }
.tweet-header { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 13px; }
.stib-avatar { width: 62px; height: 62px; display: grid; place-items: center; border: 3px solid white; border-radius: 19px; color: white; background: linear-gradient(145deg,#53cfe0,#1768c2); box-shadow: 0 9px 18px rgba(30,88,164,.24),inset 0 2px 4px rgba(255,255,255,.35); font-size: .92rem; font-weight: 1000; letter-spacing: -.04em; transform: rotate(-2deg); }
.stib-avatar.imitation { color: #e8edf5; background: linear-gradient(145deg,#8494a9,#47566c); }
.tweet-identity { min-width: 0; display: grid; gap: 3px; }
.tweet-identity strong { color: #112b61; font-size: 1.02rem; line-height: 1.25; }
.tweet-identity > span { overflow: hidden; color: #64728a; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.verified-badge { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-left: 3px; border: 2px solid white; border-radius: 50%; color: white; background: linear-gradient(145deg,#39c8df,#1673d5); box-shadow: 0 2px 5px rgba(26,105,194,.28); font-size: .72rem; font-style: normal; vertical-align: 2px; }
.tweet-menu { color: #8895a8; font-weight: 900; letter-spacing: .1em; }
.tweet-body { min-height: 78px; color: #202b3d; font-size: 1.02rem; line-height: 1.55; }
.alert-copy { color: #c33e50; letter-spacing: .015em; }
.line-five { display: inline-block; border-radius: 9px; padding: 3px 8px; color: white; background: linear-gradient(145deg,#9b46d8,#6830a6); font-size: .86rem; letter-spacing: .05em; }
.tweet-link { display: grid; gap: 5px; border: 1px solid #cfdbea; border-radius: 17px; padding: 14px; color: #4c5d76; background: linear-gradient(145deg,#f7f9fc,#edf2f8); box-shadow: inset 0 1px 0 white; }
.tweet-link b { color: #7d4250; font-size: .84rem; }
.tweet-link span { color: #263b5f; font-size: .92rem; font-weight: 850; }
.tweet-link.official-link b { color: #20714b; }
.tweet-date { color: #64728a; font-size: .8rem; }
.tweet-actions { margin-top: auto; display: flex; gap: 18px; color: #66758d; font-size: .82rem; }
.tweet-actions i { color: #298fc7; font-style: normal; font-weight: 950; }
.tweet-choice:disabled { cursor: default; }

@media (max-width: 760px) {
  .official-choice-grid { grid-template-columns: 1fr; }
  .tweet-choice { min-height: 0; }
  .tweet-body { min-height: 0; }
}

@media (max-width: 520px) {
  .verify-stage { border-radius: 18px; }
  .social-feed-heading { display: grid; padding: 12px 14px; }
  .official-choice-grid { gap: 12px; padding: 12px; }
  .tweet-choice { gap: 13px; border-radius: 20px; padding: 16px; }
  .tweet-header { grid-template-columns: 50px minmax(0,1fr) auto; gap: 9px; }
  .stib-avatar { width: 50px; height: 50px; border-radius: 15px; font-size: .8rem; }
}

/* Prototype 14 : composition d’un courriel */
.mail-workspace { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.55fr); gap: 20px; border: 1px solid #b9d4e7; border-radius: 26px; padding: 22px; background: radial-gradient(circle at 65% 0,#effdff 0,#e8f3fb 48%,#dce8f5 100%); box-shadow: 0 18px 45px rgba(38,71,131,.16); }
.mail-palette { align-self: stretch; overflow: hidden; border: 1px solid rgba(170,194,218,.8); border-radius: 21px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 white; }
.mail-palette-heading { display: grid; gap: 3px; padding: 15px 16px; color: white; background: linear-gradient(120deg,#244ea0,#2c82cf 60%,#3bc3d3); }
.mail-palette-heading span { opacity: .82; font-size: .78rem; }
.mail-card-bank { display: grid; gap: 10px; padding: 13px; }
.mail-card { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 9px; border: 2px solid transparent; border-radius: 15px; padding: 10px; color: #253b62; background: linear-gradient(145deg,#fff,#eef6fc); box-shadow: 0 7px 15px rgba(39,74,130,.12),inset 0 1px 0 white; font: inherit; font-size: .84rem; font-weight: 800; line-height: 1.35; text-align: left; cursor: grab; }
.mail-card i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg,#44cbd8,#276fc4); font-style: normal; font-weight: 950; box-shadow: 0 5px 10px rgba(39,111,196,.22); }
.mail-card:hover,.mail-card:focus-visible,.mail-card.selected { border-color: var(--cyan-dark); background: #eafbfd; outline: none; }
.mail-card.selected { box-shadow: 0 0 0 4px rgba(67,208,220,.17); }
.mail-card.placed { display: none; }
.mail-window { overflow: hidden; min-width: 0; border: 1px solid #acbbcf; border-radius: 22px; background: white; box-shadow: 0 16px 32px rgba(31,57,101,.18),inset 0 1px 0 white; }
.mail-window-bar { display: flex; justify-content: space-between; gap: 12px; padding: 13px 17px; color: white; background: linear-gradient(110deg,#1b438e,#2579c5); }
.mail-window-bar span { opacity: .8; }
.mail-compose { display: grid; gap: 10px; padding: 16px; }
.mail-field-row,.mail-attachment-row { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: stretch; gap: 8px; }
.mail-field-label { display: grid; place-items: center; color: #49617f; font-size: .82rem; font-weight: 950; }
.mail-dropzone { width: 100%; border: 2px dashed #a9bbcf; border-radius: 14px; padding: 11px 13px; color: #79879b; background: #f7f9fc; font: inherit; font-size: .84rem; text-align: left; cursor: pointer; transition: border-color .18s,background .18s,box-shadow .18s; }
.mail-dropzone:hover,.mail-dropzone:focus-visible,.mail-dropzone.drag-over { border-color: var(--cyan-dark); background: #ecfbfd; outline: none; }
.mail-dropzone.filled { border-style: solid; border-color: #64c2cf; color: #183a68; background: linear-gradient(145deg,#f8ffff,#e7f9fb); font-weight: 850; }
.mail-dropzone.wrong { border-color: #d56a76; background: #fff0f2; }
.mail-dropzone.correct { border-color: #58b77f; background: #eaf8ef; }
.mail-dropzone .placed-mail-item { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: center; }
.mail-dropzone .placed-mail-item i { color: #247ab9; font-style: normal; font-weight: 950; text-align: center; }
.message-zone { min-height: 174px; align-content: start; line-height: 1.5; }
.mail-send-preview { justify-self: end; border: 0; border-radius: 12px; padding: 10px 20px; color: white; background: linear-gradient(145deg,#44cbd8,#276fc4); box-shadow: 0 7px 14px rgba(39,111,196,.22); font: inherit; font-weight: 900; opacity: .72; }

@media (max-width: 820px) {
  .mail-workspace { grid-template-columns: 1fr; }
  .mail-card-bank { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 540px) {
  .mail-workspace { gap: 12px; border-radius: 18px; padding: 11px; }
  .mail-card-bank { grid-template-columns: 1fr; }
  .mail-field-row,.mail-attachment-row { grid-template-columns: 42px minmax(0,1fr); }
  .mail-compose { padding: 11px; }
  .message-zone { min-height: 150px; }
}

/* Prototype 15 : répondre à un groupe */
.reply-workspace { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(240px,.65fr); align-items: center; gap: 22px; border: 1px solid #b9d4e7; border-radius: 26px; padding: 24px; background: radial-gradient(circle at 75% 0,#effdff 0,#e8f3fb 48%,#dce8f5 100%); box-shadow: 0 18px 45px rgba(38,71,131,.16); }
.reply-window { overflow: hidden; min-width: 0; border: 1px solid #aebed3; border-radius: 23px; background: white; box-shadow: 0 17px 34px rgba(31,57,101,.19),inset 0 1px 0 white; }
.reply-titlebar { min-height: 52px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; color: white; background: linear-gradient(110deg,#1b438e,#2579c5 62%,#32b9cc); }
.reply-app-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(255,255,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.reply-titlebar > span { opacity: .78; }
.reply-toolbar { display: flex; flex-wrap: wrap; gap: 9px; border-bottom: 1px solid #d8e1ed; padding: 12px 14px; background: linear-gradient(#f9fbfe,#eef3f8); }
.reply-action { min-height: 58px; display: grid; grid-template-columns: 38px auto; align-items: center; gap: 8px; border: 2px solid transparent; border-radius: 14px; padding: 8px 13px 8px 9px; color: #29466f; background: linear-gradient(145deg,#fff,#eaf2f9); box-shadow: 0 6px 13px rgba(39,74,130,.12),inset 0 1px 0 white; font: inherit; font-size: .87rem; font-weight: 900; cursor: pointer; transition: transform .18s,border-color .18s,box-shadow .18s; }
.reply-action:hover:not(:disabled),.reply-action:focus-visible { transform: translateY(-2px); border-color: var(--cyan-dark); box-shadow: 0 9px 18px rgba(39,74,130,.17),0 0 0 3px rgba(67,208,220,.13); outline: none; }
.reply-action-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg,#44cbd8,#276fc4); box-shadow: 0 5px 10px rgba(39,111,196,.23); font-size: 1.25rem; font-weight: 1000; }
.reply-action-icon.double { font-size: .9rem; letter-spacing: -.38em; padding-right: .38em; }
.reply-action.wrong { border-color: #d56a76; background: #fff0f2; animation: clue-shake .28s ease; }
.reply-action.correct { border-color: #58b77f; background: #eaf8ef; box-shadow: 0 9px 19px rgba(37,130,76,.17); }
.reply-action:disabled { cursor: default; }
.received-mail { padding: 19px 21px 24px; }
.received-mail-header { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.teacher-avatar { width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid white; border-radius: 16px; color: white; background: linear-gradient(145deg,#43ccd9,#286bc0); box-shadow: 0 8px 16px rgba(34,92,170,.24),inset 0 2px 3px rgba(255,255,255,.3); font-size: .9rem; font-weight: 1000; transform: rotate(-2deg); }
.received-mail-identity { min-width: 0; display: grid; gap: 3px; }
.received-mail-identity strong { color: #173a72; font-size: 1rem; }
.received-mail-identity span { overflow: hidden; color: #68788f; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.received-mail-header time { color: #718097; font-size: .78rem; }
.received-mail-details { display: grid; gap: 5px; margin: 16px 0; border-block: 1px solid #e1e7ef; padding: 10px 0; }
.received-mail-details div { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 7px; }
.received-mail-details dt { color: #65758c; font-size: .8rem; font-weight: 850; }
.received-mail-details dd { margin: 0; color: #263b5c; font-size: .84rem; font-weight: 780; }
.received-mail-body { color: #253349; font-size: .94rem; line-height: 1.55; }
.received-mail-body p { margin: 0 0 13px; }
.received-mail-body p:last-child { margin-bottom: 0; }
.reply-intention { position: relative; overflow: hidden; display: grid; gap: 13px; border: 2px solid rgba(255,255,255,.82); border-radius: 23px; padding: 21px; color: #233a62; background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(231,247,251,.96)); box-shadow: 0 16px 30px rgba(39,74,130,.17),inset 0 1px 0 white; }
.reply-intention::after { content: ""; position: absolute; width: 130px; height: 130px; top: -72px; right: -54px; border-radius: 50%; background: radial-gradient(circle,rgba(58,208,221,.34),rgba(58,208,221,0) 70%); }
.reply-intention > span { color: #2476b6; font-size: .8rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.reply-intention blockquote { margin: 0; color: #173a72; font-size: 1.08rem; font-weight: 900; line-height: 1.45; }
.reply-intention strong { border-radius: 13px; padding: 11px 12px; color: #225d77; background: #ddf7fa; font-size: .82rem; line-height: 1.4; }

@media (max-width: 840px) {
  .reply-workspace { grid-template-columns: 1fr; }
  .reply-intention { grid-row: 1; }
}

@media (max-width: 560px) {
  .reply-workspace { gap: 12px; border-radius: 18px; padding: 11px; }
  .reply-window { border-radius: 17px; }
  .reply-titlebar { grid-template-columns: 30px minmax(0,1fr); padding: 8px 10px; }
  .reply-titlebar > span { display: none; }
  .reply-app-mark { width: 30px; height: 30px; }
  .reply-toolbar { display: grid; grid-template-columns: 1fr; padding: 10px; }
  .reply-action { width: 100%; }
  .received-mail { padding: 15px 13px 18px; }
  .received-mail-header { grid-template-columns: 46px minmax(0,1fr) auto; gap: 8px; }
  .teacher-avatar { width: 46px; height: 46px; border-radius: 14px; }
  .reply-intention { border-radius: 17px; padding: 16px; }
}

/* Prototype 16 : enquête dans un courriel frauduleux */
.phishing-workspace { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(255px,.62fr); align-items: start; gap: 22px; border: 1px solid #b9d4e7; border-radius: 26px; padding: 24px; background: radial-gradient(circle at 75% 0,#effdff 0,#e8f3fb 48%,#dce8f5 100%); box-shadow: 0 18px 45px rgba(38,71,131,.16); }
.phishing-window { overflow: hidden; min-width: 0; border: 1px solid #aebed3; border-radius: 23px; background: white; box-shadow: 0 17px 34px rgba(31,57,101,.19),inset 0 1px 0 white; }
.phishing-titlebar { min-height: 52px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; color: white; background: linear-gradient(110deg,#1b438e,#2579c5 62%,#32b9cc); }
.phishing-app-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(255,255,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.phishing-titlebar > span { opacity: .78; }
.phishing-mail-tools { display: flex; gap: 18px; border-bottom: 1px solid #d8e1ed; padding: 11px 16px; color: #64758c; background: linear-gradient(#f9fbfe,#eef3f8); font-size: .8rem; font-weight: 850; }
.phishing-message { padding: 19px 21px 24px; }
.phishing-header { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.account-avatar { width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid white; border-radius: 16px; color: white; background: linear-gradient(145deg,#43ccd9,#286bc0); box-shadow: 0 8px 16px rgba(34,92,170,.24),inset 0 2px 3px rgba(255,255,255,.3); font-weight: 1000; transform: rotate(-2deg); }
.phishing-identity { min-width: 0; display: grid; gap: 2px; }
.phishing-identity > strong { color: #173a72; }
.clue-target { border: 2px solid transparent; border-radius: 8px; padding: 3px 5px; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s,background .16s,box-shadow .16s; }
.clue-target:hover:not(:disabled),.clue-target:focus-visible { border-color: var(--cyan-dark); background: #edfbfd; outline: none; box-shadow: 0 0 0 3px rgba(67,208,220,.13); }
.phishing-identity .clue-target { overflow: hidden; color: #64748b; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.phishing-time { color: #718097; font-size: .78rem; }
.phishing-details { display: grid; gap: 5px; margin: 16px 0; border-block: 1px solid #e1e7ef; padding: 10px 0; }
.phishing-details div { display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: center; gap: 7px; }
.phishing-details dt { color: #65758c; font-size: .8rem; font-weight: 850; }
.phishing-details dd { margin: 0; }
.phishing-details .clue-target { color: #263b5c; font-size: .86rem; font-weight: 820; }
.phishing-body { color: #253349; font-size: .95rem; line-height: 1.55; }
.phishing-body p { margin: 0 0 14px; }
.inline-clue { width: 100%; color: #6f2833; font-weight: 900; }
.phishing-link { width: min(100%,390px); display: grid; gap: 4px; margin: 18px auto; border: 2px solid transparent; border-radius: 15px; padding: 12px 15px; color: white; background: linear-gradient(145deg,#36c4d3,#276fc4); box-shadow: 0 8px 16px rgba(39,111,196,.22); text-align: center; }
.phishing-link:hover:not(:disabled),.phishing-link:focus-visible { border-color: #173a72; background: linear-gradient(145deg,#36c4d3,#276fc4); box-shadow: 0 9px 18px rgba(39,111,196,.28),0 0 0 4px rgba(67,208,220,.2); }
.phishing-link span { font-weight: 950; }
.phishing-link small { opacity: .85; font-size: .72rem; }
.phishing-signature { color: #596a82; font-size: .84rem; }
.clue-target.found { position: relative; border-color: #58b77f; color: #226b45; background: #e8f8ee; box-shadow: 0 0 0 3px rgba(46,154,91,.12); }
.clue-target.found::after { content: "✓"; position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: #2e9a5b; box-shadow: 0 3px 7px rgba(24,99,56,.25); font-size: .72rem; font-weight: 1000; }
.phishing-link.found { color: white; background: linear-gradient(145deg,#47b878,#24894f); }
.clue-target.miss { border-color: #d56a76; background: #fff0f2; animation: clue-shake .28s ease; }
.clue-notebook { overflow: hidden; border: 2px solid rgba(255,255,255,.82); border-radius: 23px; background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(231,247,251,.96)); box-shadow: 0 16px 30px rgba(39,74,130,.17),inset 0 1px 0 white; }
.clue-notebook-heading { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 10px; padding: 15px 16px; color: white; background: linear-gradient(120deg,#244ea0,#2c82cf 60%,#3bc3d3); }
.clue-notebook-heading > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.17); font-size: 1.35rem; }
.clue-notebook-heading div { display: grid; gap: 2px; }
.clue-notebook-heading small { opacity: .82; }
.clue-notebook ol { display: grid; gap: 10px; margin: 0; padding: 14px; list-style: none; }
.clue-notebook li { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 9px; border: 1px solid #cfe1ed; border-radius: 13px; padding: 10px; color: #304766; background: white; font-size: .8rem; font-weight: 760; line-height: 1.4; box-shadow: 0 5px 11px rgba(39,74,130,.08); }
.clue-notebook li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(145deg,#43ccd9,#286bc0); font-weight: 1000; }
.clue-notebook .empty-clue { display: block; color: #708097; background: rgba(255,255,255,.58); font-style: italic; font-weight: 650; text-align: center; }

@media (max-width: 850px) {
  .phishing-workspace { grid-template-columns: 1fr; }
  .clue-notebook ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 570px) {
  .phishing-workspace { gap: 12px; border-radius: 18px; padding: 11px; }
  .phishing-window,.clue-notebook { border-radius: 17px; }
  .phishing-titlebar { grid-template-columns: 30px minmax(0,1fr); padding: 8px 10px; }
  .phishing-titlebar > span { display: none; }
  .phishing-app-mark { width: 30px; height: 30px; }
  .phishing-message { padding: 15px 12px 18px; }
  .phishing-header { grid-template-columns: 46px minmax(0,1fr); gap: 8px; }
  .account-avatar { width: 46px; height: 46px; border-radius: 14px; }
  .phishing-time { grid-column: 2; }
  .clue-notebook ol { grid-template-columns: 1fr; }
}

/* Prototype 17 : paramètres de confidentialité */
.privacy-workspace { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(270px,.72fr); align-items: stretch; gap: 22px; border: 1px solid #b9d4e7; border-radius: 26px; padding: 24px; background: radial-gradient(circle at 75% 0,#effdff 0,#e8f3fb 48%,#dce8f5 100%); box-shadow: 0 18px 45px rgba(38,71,131,.16); }
.privacy-panel,.profile-preview { overflow: hidden; border: 1px solid #adbed3; border-radius: 23px; background: white; box-shadow: 0 17px 34px rgba(31,57,101,.17),inset 0 1px 0 white; }
.privacy-panel-heading { min-height: 70px; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 12px; padding: 12px 16px; color: white; background: linear-gradient(110deg,#1b438e,#2579c5 62%,#32b9cc); }
.privacy-panel-heading > div:last-child { display: grid; gap: 2px; }
.privacy-panel-heading span { opacity: .82; font-size: .8rem; }
.privacy-shield { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 15px 15px 20px 20px; background: rgba(255,255,255,.16); box-shadow: inset 0 2px 3px rgba(255,255,255,.24); font-size: 1.35rem; font-weight: 1000; }
.privacy-settings { display: grid; gap: 10px; padding: 14px; }
.privacy-setting { display: grid; grid-template-columns: 42px minmax(145px,1fr) minmax(145px,.62fr); align-items: center; gap: 11px; border: 2px solid transparent; border-radius: 16px; padding: 11px; background: linear-gradient(145deg,#fff,#f2f7fb); box-shadow: 0 6px 13px rgba(39,74,130,.09); transition: border-color .18s,background .18s; }
.setting-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg,#44cbd8,#276fc4); box-shadow: 0 6px 12px rgba(39,111,196,.22); font-size: 1.05rem; font-weight: 1000; }
.setting-copy { display: grid; gap: 3px; color: #233b62; }
.setting-copy strong { font-size: .9rem; }
.setting-copy small { color: #6d7b90; font-size: .74rem; line-height: 1.35; }
.privacy-setting select { min-height: 42px; width: 100%; border: 1px solid #aebed0; border-radius: 11px; padding: 7px 30px 7px 10px; color: #253d65; background: white; font: inherit; font-size: .82rem; font-weight: 850; cursor: pointer; }
.privacy-setting select:focus-visible { border-color: var(--cyan-dark); outline: 3px solid rgba(67,208,220,.18); }
.privacy-setting.correct { border-color: #58b77f; background: #eaf8ef; }
.privacy-setting.wrong { border-color: #d56a76; background: #fff0f2; }
.privacy-switch { min-height: 42px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 8px; border: 1px solid #aebed0; border-radius: 13px; padding: 5px 9px 5px 5px; color: #53647c; background: #eef2f7; font: inherit; font-size: .78rem; cursor: pointer; }
.privacy-switch > span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #98a7b9; transition: background .18s; }
.privacy-switch > span::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(28,47,78,.28); transition: transform .18s; }
.privacy-switch.active > span { background: linear-gradient(90deg,#39c8d8,#2772c4); }
.privacy-switch.active > span::after { transform: translateX(18px); }
.privacy-switch b { font-weight: 900; }
.profile-preview { align-self: stretch; background: linear-gradient(#fff,#f7fbfd); }
.profile-cover { height: 92px; background: radial-gradient(circle at 72% 22%,rgba(255,255,255,.38) 0 7%,transparent 8%),linear-gradient(135deg,#244ea0,#2c82cf 55%,#43cfda); }
.profile-preview-body { position: relative; display: grid; gap: 15px; padding: 42px 17px 18px; }
.lina-avatar { position: absolute; width: 72px; height: 72px; top: -38px; left: 18px; display: grid; place-items: center; border: 5px solid white; border-radius: 24px; color: white; background: linear-gradient(145deg,#53d3df,#2b6dc4); box-shadow: 0 10px 20px rgba(31,83,155,.25),inset 0 2px 4px rgba(255,255,255,.3); font-size: 1.55rem; font-weight: 1000; transform: rotate(-2deg); }
.profile-name-row { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.profile-name-row > div { display: grid; gap: 2px; }
.profile-name-row strong { color: #173a72; font-size: 1.08rem; }
.profile-name-row div span { color: #728198; font-size: .78rem; }
.audience-pill { border-radius: 999px; padding: 6px 9px; color: #81434d; background: #ffebee; font-size: .68rem; font-weight: 950; white-space: nowrap; }
.audience-pill.friends { color: #26607b; background: #def6f9; }
.audience-pill.only-me { color: #276648; background: #e2f5e9; }
.profile-post { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; border: 1px solid #d6e1ec; border-radius: 15px; padding: 12px; color: #304766; background: white; box-shadow: 0 6px 13px rgba(39,74,130,.08); }
.profile-post > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg,#44cbd8,#276fc4); }
.profile-post strong { font-size: .82rem; }
.profile-post p { margin: 4px 0 0; font-size: .76rem; line-height: 1.35; }
.profile-info-list { display: grid; gap: 8px; margin: 0; }
.profile-info-list div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 8px; border-top: 1px solid #e2e8f0; padding-top: 8px; }
.profile-info-list dt { color: #718097; font-size: .73rem; font-weight: 850; }
.profile-info-list dd { margin: 0; color: #334a69; font-size: .76rem; font-weight: 850; text-align: right; }
.profile-info-list .private-info { color: #287149; }
.profile-info-list .private-info::before { content: "▣ "; }
.profile-info-list .exposed-info { color: #a04451; }

@media (max-width: 880px) {
  .privacy-workspace { grid-template-columns: 1fr; }
  .profile-preview { width: min(100%,520px); justify-self: center; }
}

@media (max-width: 590px) {
  .privacy-workspace { gap: 12px; border-radius: 18px; padding: 11px; }
  .privacy-panel,.profile-preview { border-radius: 17px; }
  .privacy-setting { grid-template-columns: 40px minmax(0,1fr); }
  .privacy-setting select,.privacy-switch { grid-column: 1 / -1; }
  .privacy-switch { width: 100%; }
}

/* Prototype 18 : construction d’un logigramme */
.flowchart-workspace { display: grid; grid-template-columns: minmax(245px,.58fr) minmax(0,1.3fr); align-items: stretch; gap: 22px; border: 1px solid #b9d4e7; border-radius: 26px; padding: 24px; background: radial-gradient(circle at 72% 0,#effdff 0,#e8f3fb 48%,#dce8f5 100%); box-shadow: 0 18px 45px rgba(38,71,131,.16); }
.flow-card-palette { overflow: hidden; border: 1px solid #adbed3; border-radius: 22px; background: rgba(255,255,255,.77); box-shadow: 0 14px 28px rgba(31,57,101,.14),inset 0 1px 0 white; }
.flow-palette-heading { display: grid; gap: 3px; padding: 15px 16px; color: white; background: linear-gradient(120deg,#244ea0,#2c82cf 60%,#3bc3d3); }
.flow-palette-heading span { opacity: .82; font-size: .78rem; }
.flow-card-bank { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 12px; }
.flow-card { min-height: 82px; display: grid; align-content: center; gap: 5px; border: 2px solid transparent; padding: 10px; color: #263e65; background: linear-gradient(145deg,#fff,#edf5fb); box-shadow: 0 7px 14px rgba(39,74,130,.11),inset 0 1px 0 white; font: inherit; text-align: center; cursor: grab; transition: transform .16s,border-color .16s,box-shadow .16s; }
.flow-card.action-card { border-radius: 14px; }
.flow-card.decision-card { border-radius: 23px 8px; background: linear-gradient(145deg,#f4fdff,#def7fa); }
.flow-card span { color: #27829f; font-size: .66rem; font-weight: 950; letter-spacing: .05em; text-transform: uppercase; }
.flow-card strong { font-size: .78rem; line-height: 1.3; }
.flow-card:hover:not(:disabled),.flow-card:focus-visible,.flow-card.selected { transform: translateY(-2px); border-color: var(--cyan-dark); outline: none; box-shadow: 0 9px 18px rgba(39,74,130,.16),0 0 0 3px rgba(67,208,220,.13); }
.flow-card.selected { background: #e7fbfd; }
.flow-card.placed { display: none; }
.flowchart-board { min-width: 0; display: grid; justify-items: center; align-content: start; border: 1px solid #b9cce0; border-radius: 22px; padding: 18px 18px 23px; background-color: #f8fbfe; background-image: radial-gradient(#c9d9e9 1px,transparent 1px); background-size: 18px 18px; box-shadow: inset 0 1px 0 white; }
.flow-fixed,.flow-dropzone { width: min(100%,270px); min-height: 58px; display: grid; place-items: center; border: 2px solid #8fa9c5; padding: 9px 13px; color: #27436c; background: white; font: inherit; font-size: .85rem; font-weight: 900; text-align: center; }
.flow-fixed.terminator { width: 150px; min-height: 47px; border-color: #2c83c6; border-radius: 999px; color: white; background: linear-gradient(145deg,#43cbd8,#276fc4); box-shadow: 0 8px 16px rgba(39,111,196,.22),inset 0 1px 0 rgba(255,255,255,.3); }
.flow-fixed.end-step { width: 180px; }
.flow-dropzone { border-style: dashed; border-radius: 13px; color: #74839a; background: rgba(255,255,255,.86); cursor: pointer; transition: border-color .16s,background .16s,box-shadow .16s; }
.flow-dropzone:hover:not(:disabled),.flow-dropzone:focus-visible,.flow-dropzone.drag-over { border-color: var(--cyan-dark); color: #356080; background: #eafbfd; outline: none; box-shadow: 0 0 0 4px rgba(67,208,220,.14); }
.flow-dropzone.decision-slot { width: 195px; min-height: 88px; border-radius: 30px 8px; }
.flow-dropzone.filled { border-style: solid; border-color: #4bb8c6; color: #173b69; background: linear-gradient(145deg,#f8ffff,#e3f8fa); box-shadow: 0 8px 16px rgba(38,95,151,.13); }
.flow-dropzone.correct { border-color: #58b77f; color: #226b45; background: #e8f8ee; }
.flow-dropzone.wrong { border-color: #d56a76; color: #873944; background: #fff0f2; animation: clue-shake .28s ease; }
.flow-placed-block { display: grid; gap: 3px; }
.flow-placed-block small { color: #27829f; font-size: .64rem; font-weight: 950; letter-spacing: .05em; text-transform: uppercase; }
.flow-placed-block strong { font-size: .84rem; }
.flow-arrow.vertical { width: 3px; height: 24px; position: relative; background: #5384b6; }
.flow-arrow.vertical::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 6px solid transparent; border-top-color: #5384b6; transform: translateY(10px); }
.flow-branches { width: min(100%,570px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; position: relative; margin-top: 15px; padding-top: 22px; }
.flow-branches::before { content: ""; position: absolute; width: calc(50% + 36px); height: 20px; top: 0; left: calc(25% - 18px); border-top: 3px solid #5384b6; border-inline: 3px solid #5384b6; }
.flow-branch { display: grid; justify-items: center; gap: 7px; }
.branch-label { border-radius: 999px; padding: 4px 10px; color: white; background: #315f9d; font-size: .66rem; font-weight: 1000; letter-spacing: .05em; }
.flow-branch-line { width: 3px; height: 15px; background: #5384b6; }
.flow-merge { width: min(100%,570px); height: 35px; position: relative; margin-bottom: 9px; }
.flow-merge::before { content: ""; position: absolute; width: calc(50% + 36px); height: 20px; left: calc(25% - 18px); bottom: 0; border-bottom: 3px solid #5384b6; border-inline: 3px solid #5384b6; }
.flow-merge span { position: absolute; width: 3px; height: 17px; left: calc(50% - 1px); bottom: -17px; background: #5384b6; }
.flow-merge span::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 6px solid transparent; border-top-color: #5384b6; transform: translateY(10px); }

@media (max-width: 900px) {
  .flowchart-workspace { grid-template-columns: 1fr; }
  .flow-card-bank { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 590px) {
  .flowchart-workspace { gap: 12px; border-radius: 18px; padding: 11px; }
  .flow-card-palette,.flowchart-board { border-radius: 17px; }
  .flow-card-bank { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flowchart-board { padding-inline: 8px; }
  .flow-branches { gap: 12px; }
  .flow-branches::before,.flow-merge::before { width: calc(50% + 12px); left: calc(25% - 6px); }
  .flow-dropzone { padding-inline: 7px; font-size: .77rem; }
  .flow-dropzone.decision-slot { width: 175px; }
}

/* Prototype 19 : débogage d’un programme visuel */
.debug-workspace { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 18px; align-items: start; }
.debug-simulation,.debug-console { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.debug-panel-heading { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; color: white; background: linear-gradient(135deg,var(--blue-dark),var(--purple)); }
.debug-panel-heading div { display: grid; gap: 2px; }
.debug-panel-heading span,.debug-console header small { color: #dce9ff; font-size: .82rem; font-weight: 800; }
.debug-direction { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.13); }
.debug-board { position: relative; display: grid; grid-template: repeat(4,1fr) / repeat(4,1fr); gap: 7px; width: min(100%,560px); aspect-ratio: 1.35; margin: 0 auto; padding: 24px; background: radial-gradient(circle at 50% 45%,#f6fbff 0,#e8f3ff 68%,#d8e8fb 100%); }
.debug-grid-cell { grid-row: var(--row); grid-column: var(--col); display: grid; place-items: center; min-width: 0; border: 1px solid #cbd9ec; border-radius: 14px; color: #7190b8; background: rgba(255,255,255,.82); font-size: .75rem; font-weight: 900; }
.debug-grid-cell.target-cell { color: #fff; background: linear-gradient(145deg,#ffc83d,#ff9f1c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.65),0 7px 16px rgba(255,159,28,.28); font-size: 2rem; }
.debug-grid-cell.start-cell { align-items: end; padding-bottom: 7px; color: var(--blue-dark); background: #e1f4ff; }
.debug-robot { position: absolute; z-index: 3; width: 17%; left: 16.5%; top: 84.5%; transform: translate(-50%,-50%) rotate(90deg); transform-origin: center; filter: drop-shadow(0 7px 7px rgba(35,54,104,.25)); transition: left .38s ease,top .38s ease,transform .25s ease; }
.debug-robot.bump { animation: robotBump .35s ease; }
.debug-console header { min-height: 62px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 11px 16px; color: white; background: linear-gradient(135deg,#355cad,#234070); }
.debug-console header > span { color: var(--cyan); }
.debug-console header div { display: grid; gap: 2px; }
.debug-program { display: grid; gap: 8px; padding: 16px; }
.debug-block { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 7px 12px 7px 8px; border: 2px solid transparent; border-radius: 13px; color: #173660; text-align: left; background: #e7f2ff; transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.debug-block span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: white; background: var(--blue); font-size: .8rem; }
.debug-block.turn-block { background: #f1eaff; }
.debug-block.turn-block span { background: var(--purple); }
.debug-block:not(:disabled) { cursor: pointer; }
.debug-block:not(:disabled):hover,.debug-block.selected { border-color: var(--cyan); box-shadow: 0 5px 16px rgba(0,183,219,.18); transform: translateX(3px); }
.debug-block.executing { border-color: #ffc83d; box-shadow: 0 0 0 4px rgba(255,200,61,.2); }
.debug-block.error { border-color: #d56a76; background: #fff0f1; }
.debug-block.correct { border-color: #58b77f; background: #eaf9f2; }
.debug-choices { margin: 0 16px 14px; padding: 13px; border: 1px solid #cfe0f4; border-radius: 15px; background: #f5f9ff; }
.debug-choices > strong { display: block; margin-bottom: 9px; color: var(--blue-dark); }
.debug-choices > div { display: grid; gap: 7px; }
.debug-choices button { min-height: 41px; border: 1px solid #c5d6ec; border-radius: 11px; color: #254d81; background: white; font-weight: 900; cursor: pointer; }
.debug-choices button:hover { border-color: var(--cyan); background: #ecfbff; }
.debug-console .console-actions { padding-top: 0; }

@media (max-width: 850px) {
  .debug-workspace { grid-template-columns: 1fr; }
  .debug-board { width: 100%; }
}

@media (max-width: 540px) {
  .debug-panel-heading { align-items: flex-start; flex-direction: column; }
  .debug-board { gap: 4px; padding: 12px; border-radius: 0; }
  .debug-grid-cell { border-radius: 9px; }
  .debug-robot { width: 19%; }
}

/* Prototype 20 : vérifier une réponse d’IA */
.ai-workspace { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(285px,.72fr); gap: 20px; align-items: stretch; }
.ai-chat-panel,.science-source-card { overflow: hidden; border: 1px solid #b7c9dc; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.ai-panel-heading,.science-source-card > header { min-height: 66px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 11px 16px; color: white; background: linear-gradient(120deg,#244ea0,#2c82cf 62%,#3bc3d3); }
.ai-panel-heading > div,.science-source-card > header > div { display: grid; gap: 2px; }
.ai-panel-heading small,.science-source-card header small { color: #dcecff; font-size: .78rem; font-weight: 800; }
.ai-mark,.source-orbit { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.62); border-radius: 14px; background: rgba(255,255,255,.14); font-size: 1.15rem; }
.ai-chat-body { display: grid; gap: 13px; padding: 17px; background: linear-gradient(145deg,#f7fbff,#eaf2fa); }
.chat-bubble { border-radius: 18px; padding: 13px 15px; box-shadow: 0 7px 16px rgba(36,71,125,.1); }
.chat-bubble p { margin: 4px 0 0; line-height: 1.45; }
.user-bubble { width: min(82%,560px); justify-self: end; color: white; background: linear-gradient(135deg,#3677c8,#2659a8); border-bottom-right-radius: 5px; }
.user-bubble strong { font-size: .78rem; opacity: .82; }
.assistant-bubble { color: #2d4668; background: white; border-bottom-left-radius: 5px; }
.assistant-label { display: flex; align-items: center; gap: 7px; color: #244d8f; }
.assistant-label > span { color: var(--cyan-dark); }
.assistant-bubble > p { color: #6d7e94; font-size: .84rem; }
.ai-claims { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.ai-claim { display: grid; gap: 7px; }
.ai-claim-check { width: 100%; min-height: 53px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; border: 2px solid #d7e2ee; border-radius: 14px; padding: 8px 11px 8px 8px; color: #304967; background: linear-gradient(145deg,#fff,#f4f8fc); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s,background .16s,transform .16s; }
.ai-claim-check > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg,#43cbd8,#2871c3); font-size: .78rem; font-weight: 950; }
.ai-claim-check strong { font-size: .86rem; line-height: 1.35; }
.ai-claim-check:hover:not(:disabled),.ai-claim-check:focus-visible { border-color: var(--cyan-dark); background: #edfbfd; outline: none; transform: translateX(2px); }
.ai-claim-check.miss { border-color: #d56a76; background: #fff0f2; animation: clue-shake .28s ease; }
.ai-claim.flagged .ai-claim-check { border-color: #d56a76; color: #873944; background: #fff0f2; }
.ai-claim.flagged .ai-claim-check > span { background: #cf6170; }
.ai-claim.verified .ai-claim-check { border-color: #58b77f; color: #246a46; background: #eaf8ef; }
.ai-correction-slot { min-height: 46px; border: 2px dashed #65a9c9; border-radius: 12px; padding: 8px 12px; color: #55728d; background: #effaff; font: inherit; font-size: .8rem; font-weight: 900; cursor: pointer; }
.ai-correction-slot.drag-over { border-color: var(--cyan-dark); background: #dff8fb; box-shadow: 0 0 0 4px rgba(67,208,220,.14); }
.ai-correction-slot.filled { border-style: solid; border-color: #58b77f; color: #246a46; background: #eaf8ef; }
.science-source-card { background: linear-gradient(#fff,#f7fbff); }
.science-source-card > header { background: linear-gradient(120deg,#193a72,#2c65a9); }
.source-brand { display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: center; gap: 11px; padding: 15px 16px 10px; }
.source-brand > span { display: grid; place-items: center; height: 54px; border-radius: 50%; color: white; background: linear-gradient(145deg,#2455a4,#102f69); box-shadow: 0 7px 14px rgba(28,64,120,.24); font-size: .82rem; font-weight: 1000; letter-spacing: .05em; }
.source-brand > div { display: grid; gap: 3px; color: #213f6c; }
.source-brand small { color: #718198; font-size: .75rem; }
.mars-facts { display: grid; gap: 8px; margin: 0; padding: 8px 16px 14px; }
.mars-facts div { display: grid; gap: 4px; border: 1px solid #d8e3ee; border-radius: 13px; padding: 10px 11px; background: white; box-shadow: 0 5px 11px rgba(38,71,120,.07); }
.mars-facts dt { color: #718097; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.mars-facts dd { margin: 0; color: #254774; font-size: .84rem; font-weight: 900; }
.source-reminder { margin: 0 16px 16px; border-left: 4px solid var(--cyan-dark); border-radius: 0 11px 11px 0; padding: 10px 11px; color: #42617f; background: #eaf9fb; font-size: .8rem; line-height: 1.4; }
.ai-correction-area { display: grid; grid-template-columns: minmax(190px,.55fr) minmax(0,1.45fr); align-items: center; gap: 16px; margin-top: 18px; border: 1px solid #b9d4e7; border-radius: 20px; padding: 14px 16px; background: linear-gradient(135deg,#edf8ff,#e7f4fb); box-shadow: 0 10px 24px rgba(38,71,131,.1); }
.ai-correction-area > div:first-child { display: grid; gap: 3px; color: #244775; }
.ai-correction-area > div:first-child span { color: #6d7e94; font-size: .78rem; line-height: 1.35; }
.ai-correction-bank { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ai-correction-card { min-height: 58px; border: 2px solid #8dc9d6; border-radius: 14px; padding: 9px 12px; color: #28506f; background: white; box-shadow: 0 6px 13px rgba(38,82,127,.11); font: inherit; font-size: .8rem; line-height: 1.35; cursor: grab; }
.ai-correction-card:hover:not(:disabled),.ai-correction-card.selected { border-color: var(--cyan-dark); background: #e9fbfd; transform: translateY(-2px); }
.ai-correction-card.placed { display: none; }

@media (max-width: 880px) {
  .ai-workspace { grid-template-columns: 1fr; }
  .science-source-card { width: min(100%,600px); justify-self: center; }
  .ai-correction-area { grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  .ai-chat-panel,.science-source-card { border-radius: 18px; }
  .ai-chat-body { padding: 11px; }
  .user-bubble { width: 94%; }
  .chat-bubble { padding: 11px; }
  .ai-correction-bank { grid-template-columns: 1fr; }
  .ai-correction-area { padding: 11px; }
}
