/* 43 outils pour l'école — © MG-Informatique — tous droits réservés */
:root { --bg: #f4f6fb; --ink: #212529; --muted: #868e96; --pri: #1971c2; --line: #dee2e6; --radius: 12px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: "Segoe UI", "Andika", system-ui, sans-serif; -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
#app { height: 100vh; display: flex; flex-direction: column; }
.hidden-block { display: none !important; }
button { font-family: inherit; }

/* ---------- Menu ---------- */
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: linear-gradient(120deg, #1864ab, #5f3dc4); color: #fff; }
.brand { display: flex; align-items: center; gap: 16px; }
.logo { font-size: 46px; font-weight: 900; background: #fff; color: #1864ab; border-radius: 18px; padding: 2px 16px; box-shadow: 0 4px 0 #ffd43b; }
.brand h1 { margin: 0; font-size: 30px; }
.brand small { opacity: .85; }
.head-icons { display: flex; gap: 8px; align-items: center; }
.icon { width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255,255,255,.18); color: inherit; font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.icon:hover { background: rgba(255,255,255,.32); }
.icon.on { background: #ffd43b; color: #212529; }
.menu-tools { display: flex; gap: 16px; align-items: center; padding: 16px 28px 4px; flex-wrap: wrap; }
.search { width: 300px; font-size: 17px; }
.cat-chip { border: 2px solid var(--c); background: #fff; color: var(--c); border-radius: 999px; padding: 7px 16px; font-weight: 700; cursor: pointer; font-size: 15px; }
.cat-chip.on { background: var(--c); color: #fff; }
.menu-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; padding: 16px 28px 30px; align-content: start; }
.card { position: relative; background: #fff; border-radius: 16px; padding: 18px 16px 16px; text-decoration: none; color: var(--ink); border-top: 6px solid var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.card-num { position: absolute; top: 10px; right: 12px; background: var(--c); color: #fff; font-weight: 800; border-radius: 999px; min-width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.card-icon { font-size: 40px; }
.card-name { font-weight: 800; font-size: 17px; }
.card-desc { font-size: 13.5px; color: var(--muted); }

/* ---------- Écran d'activité ---------- */
.tool-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--c); color: #fff; }
.tool-title { flex: 1; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.tnum { background: #fff; color: var(--c); border-radius: 999px; min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.stage-wrap { position: relative; flex: 1; min-height: 0; }
.stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.stage.no-bar > .bar { display: none; }
.annot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5000; }
.annot.active { pointer-events: auto; cursor: crosshair; }
.tool-bottom { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tabb { border: 2px solid var(--line); background: #f8f9fa; border-radius: 10px; padding: 8px 16px; font-size: 15px; font-weight: 700; cursor: pointer; }
.tabb.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.tabb:disabled { opacity: .4; cursor: not-allowed; }
.editbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: 10px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.area { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; justify-content: center; align-items: flex-start; position: relative; }
.area.work { display: block; padding: 0; background: #fbfcfe; background-image: radial-gradient(#e3e8f0 1px, transparent 1px); background-size: 24px 24px; }
.area.nopad { padding: 0; display: block; }
.btn { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font-size: 15px; cursor: pointer; font-weight: 600; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: #adb5bd; background: #f8f9fa; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.primary:hover { background: #1864ab; }
.btn.on, .seg .btn.on { background: #e7f5ff; border-color: var(--pri); color: #1864ab; }
.btn.small { padding: 4px 10px; font-size: 14px; }
.btn.bold { font-weight: 900; } .btn.ital { font-style: italic; font-family: Georgia, serif; }
.toggle::before { content: '☐ '; } .toggle.on::before { content: '☑ '; }
.seg { display: inline-flex; } .seg .btn { border-radius: 0; margin-left: -2px; } .seg .btn:first-child { border-radius: 10px 0 0 10px; margin-left: 0; } .seg .btn:last-child { border-radius: 0 10px 10px 0; }
.inp, .sel { border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 15px; background: #fff; font-family: inherit; }
.field { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #495057; font-weight: 600; }
.sep { width: 1px; height: 30px; background: var(--line); margin: 0 4px; }
.swatches { display: inline-flex; gap: 4px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ced4da; cursor: pointer; padding: 0; font-size: 13px; color: #adb5bd; }
.swatch.sm { width: 22px; height: 22px; }
.swatch.big { width: 36px; height: 36px; border-radius: 8px; }
.swatch.on { outline: 3px solid var(--pri); outline-offset: 2px; }
.muted { color: var(--muted); font-size: 14px; }
.big-muted { font-size: 20px; }
.col { display: flex; flex-direction: column; gap: 14px; } .row { display: flex; gap: 10px; align-items: center; }
.center { align-items: center; justify-content: center; } .fill { width: 100%; height: 100%; align-items: stretch; } .grow { flex: 1; } .scroll { overflow: auto; } .wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.digits { font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.digits.huge { font-size: 72px; } .digits.giant { font-size: min(18vw, 170px); }
.words { font-size: 30px; font-weight: 600; text-align: center; max-width: 1100px; color: #1864ab; }
.words.big { font-size: 46px; } .words.small { font-size: 18px; color: #495057; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 15px; }
.cfg { padding: 8px 14px; background: #f8f9fa; border-bottom: 1px solid var(--line); }
.trash { position: absolute; right: 16px; bottom: 16px; width: 70px; height: 70px; border-radius: 16px; border: 3px dashed #fa5252; display: flex; align-items: center; justify-content: center; font-size: 34px; background: rgba(255,255,255,.85); z-index: 1; }
.total-badge { position: absolute; left: 16px; bottom: 16px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 18px; font-size: 24px; z-index: 2; pointer-events: none; }
.total-badge:empty { display: none; } .total-badge .ok { color: #2f9e44; }
.draggable { position: absolute; cursor: grab; touch-action: none; }
.draggable:active { cursor: grabbing; }
:not(select).sel { outline: 3px solid #e03131; outline-offset: 3px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.modal-box { background: #fff; border-radius: 18px; padding: 26px 30px; max-width: 680px; font-size: 17px; line-height: 1.5; }
.modal-box h2 { margin-top: 0; }

/* ---------- 1 minuteur, 2-3 horloges ---------- */
.timer-svg { width: min(52vh, 560px); height: min(52vh, 560px); cursor: pointer; touch-action: none; }
.flash { animation: flash .5s 6 alternate; } @keyframes flash { to { opacity: .25; } }
.flash-txt { color: #e03131; animation: flash .5s 6 alternate; }
.clock-svg { width: min(56vh, 520px); height: min(56vh, 520px); touch-action: none; }
.clocks { display: grid; gap: 18px; width: 100%; justify-items: center; }
.clocks.n4 { grid-template-columns: 1fr 1fr; } .clocks.n4 .clock-svg { width: min(30vh, 300px); height: min(30vh, 300px); } .clocks.n4 .digits { font-size: 30px; }
.clock-cell { gap: 6px; }
.dclock { background: #212529; border-radius: 12px; padding: 4px 18px; font-family: "Consolas", monospace; }

/* ---------- 4 objets ---------- */
.stamps { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.stamp { font-size: 24px; width: 42px; height: 42px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.stamp.on { border-color: var(--pri); background: #e7f5ff; }
.obj { font-size: 44px; line-height: 1; }
.box { width: 210px; height: 170px; background: linear-gradient(#e9b872, #c98b3a); border: 3px solid #8b5a2b; border-radius: 10px; display: flex; flex-direction: column; }
.box-lid { display: flex; justify-content: flex-end; gap: 4px; padding: 4px; background: #a86d2b; }
.box-info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 20px; text-shadow: 0 1px 2px #000; }
.box-q { font-size: 64px; font-weight: 900; }

/* ---------- 5 numération ---------- */
.nb { --u: 24px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.nb-cubes.v1 { width: var(--u); height: var(--u); background: #74c0fc; border: 1px solid #1864ab; }
.nb-cubes.v10 { width: var(--u); height: calc(var(--u) * 10); background: #8ce99a linear-gradient(to bottom, #2b8a3e 1px, transparent 1px) 0 0 / 100% var(--u); border: 1px solid #2b8a3e; }
.nb-cubes.v100 { width: calc(var(--u) * 10); height: calc(var(--u) * 10); background: #ffa8a8; background-image: linear-gradient(to bottom, #c92a2a 1px, transparent 1px), linear-gradient(to right, #c92a2a 1px, transparent 1px); background-size: var(--u) var(--u); border: 1px solid #c92a2a; }
.nb-cubes.v1000 { width: calc(var(--u) * 10); height: calc(var(--u) * 10); background: #ffd43b; background-image: linear-gradient(to bottom, #e67700 1px, transparent 1px), linear-gradient(to right, #e67700 1px, transparent 1px); background-size: var(--u) var(--u); border: 1px solid #e67700; box-shadow: 8px -8px 0 #fab005, 16px -16px 0 #f59f00, 24px -24px 0 #e67700; }
.nb-boules.v1 { width: var(--u); height: var(--u); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #339af0); }
.nb-boules.v10 { width: var(--u); height: calc(var(--u) * 10); background: radial-gradient(circle at 50% 50%, #51cf66 45%, transparent 48%) 0 0 / var(--u) var(--u); border: 2px solid #2b8a3e; border-radius: 12px; }
.nb-boules.v100 { width: calc(var(--u) * 10); height: calc(var(--u) * 10); background: radial-gradient(circle at 50% 50%, #ff6b6b 45%, transparent 48%) 0 0 / var(--u) var(--u); border: 2px solid #c92a2a; border-radius: 14px; }
.nb-boules.v1000 { width: calc(var(--u) * 10); height: calc(var(--u) * 10); background: radial-gradient(circle at 50% 50%, #fcc419 45%, transparent 48%) 0 0 / calc(var(--u) / 2) calc(var(--u) / 2); border: 3px solid #e67700; border-radius: 50%; }
.nb-chiffres, .nb-lettres { border-radius: 12px; color: #fff; padding: 4px 12px; font-size: 26px; }
.nb-chiffres.v1, .nb-lettres.v1 { background: #339af0; } .nb-chiffres.v10, .nb-lettres.v10 { background: #40c057; font-size: 32px; }
.nb-chiffres.v100, .nb-lettres.v100 { background: #fa5252; font-size: 40px; padding: 10px 20px; } .nb-chiffres.v1000, .nb-lettres.v1000 { background: #f59f00; font-size: 50px; padding: 14px 26px; }

/* ---------- 6 dés ---------- */
.dice-box { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; cursor: pointer; }
.die { width: 150px; height: 150px; background: #fff; border-radius: 26px; border: 4px solid #343a40; box-shadow: 0 6px 0 #343a40; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 16px; place-items: center; }
.die.ten { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); width: 230px; }
.die .pip { width: 26px; height: 26px; border-radius: 50%; background: #e03131; }
.die.num { display: flex; align-items: center; justify-content: center; font-size: 84px; font-weight: 900; color: #1971c2; }
.die.small { width: 84px; height: 84px; border-radius: 14px; padding: 8px; box-shadow: 0 3px 0 #343a40; border-width: 3px; } .die.small .pip { width: 15px; height: 15px; }
.shake { animation: shake .14s infinite; } @keyframes shake { 50% { transform: rotate(8deg) translateY(-6px); } }

/* ---------- 7 compteur ---------- */
.counter { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.cnt-class { border: 3px solid; border-radius: 16px; padding: 8px 12px 12px; background: #fff; }
.cnt-label { text-align: center; font-weight: 800; margin-bottom: 6px; }
.cnt-digit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cnt-n { width: 84px; height: 112px; background: #212529; color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 80px; font-weight: 800; font-family: Consolas, monospace; }

/* ---------- tableaux numération / conversion ---------- */
.numtab { border-collapse: collapse; background: #fff; }
.numtab th { padding: 8px; color: #fff; font-size: 17px; border: 2px solid #495057; }
.numtab th.sub { background: #f8f9fa; font-size: 14px; }
.numtab td { border: 2px solid #adb5bd; padding: 0; }
.numtab td.cls { border-right: 4px solid #495057; }
.numtab td.comma { border-right: 6px solid #e03131; }
.numcell { width: 64px; height: 76px; border: 0; text-align: center; font-size: 46px; font-weight: 700; color: #1971c2; background: transparent; outline: none; }
.numcell:focus { background: #fff9db; }
.conv th { background: #9c36b5; } .conv th.base { background: #5f3dc4; }
.comma-row td { height: 18px; text-align: center; color: #e03131; cursor: pointer; font-size: 14px; border-top: 0; }
.comma-row td:hover { background: #fff5f5; }

/* ---------- 9-10 tables ---------- */
.pyth { display: grid; gap: 3px; width: min(100%, 78vh); }
.pyth > div { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: clamp(14px, 2.4vh, 26px); font-weight: 700; cursor: pointer; }
.ph { background: #1971c2; color: #fff; } .ph.corner { background: #212529; cursor: default; }
.pc { background: #fff; border: 1px solid var(--line); } .pc.diag { box-shadow: inset 0 0 0 2px #fab005; } .pc.hl { filter: brightness(.92); }

/* ---------- 11 opérations ---------- */
.opcard { background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 0 16px 14px; }
.opcard-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; font-weight: 700; color: var(--muted); cursor: grab; }
.opgrid { display: grid; gap: 0; background-image: linear-gradient(#d0ebff 1px, transparent 1px), linear-gradient(90deg, #d0ebff 1px, transparent 1px); background-size: 48px 48px; border: 1px solid #d0ebff; }
.opgrid > * { width: 48px; height: 48px; }
.opfix, .opcell { display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; text-align: center; }
.opcell { border: 0; background: transparent; outline: none; color: #e03131; font-family: inherit; padding: 0; }
.opcell:focus { background: #fff9db; }
.opcell.carry { font-size: 18px; color: #f08c00; height: 30px; }
.line-under { border-bottom: 3px solid #212529 !important; }
.opcell.result { color: #2f9e44; }
.potence { border-left: 3px solid #212529; padding-left: 6px; } .potence .div { border-bottom: 3px solid #212529; width: auto; padding: 0 10px; }

/* ---------- 12 calculatrices ---------- */
.calc { width: 270px; background: #343a40; border-radius: 18px; border: 4px solid; padding-bottom: 12px; transform-origin: top left; }
.calc-bar { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 12px 12px 0 0; }
.calc-bar button { background: rgba(255,255,255,.25); border: 0; color: #fff; border-radius: 6px; margin-left: 4px; width: 28px; height: 26px; cursor: pointer; }
.calc-line { margin: 10px 12px 0; color: #adb5bd; font-family: Consolas, monospace; font-size: 15px; min-height: 20px; text-align: right; overflow: hidden; }
.calc-scr { margin: 2px 12px 10px; background: #d8f5a2; border-radius: 8px; font-family: Consolas, monospace; font-size: 36px; text-align: right; padding: 6px 10px; min-height: 56px; overflow: hidden; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 0 12px; }
.ck { height: 50px; border: 0; border-radius: 10px; background: #f1f3f5; font-size: 22px; font-weight: 700; cursor: pointer; }
.ck.op { background: #ffa94d; color: #fff; } .ck.clr { background: #ff6b6b; color: #fff; } .ck:active { transform: scale(.94); }

/* ---------- 13 calcul mental ---------- */
.mental-card { background: #fff; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.1); padding: 40px 60px; display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.mental-q { font-size: min(9vw, 96px); font-weight: 800; }
.ans-q { font-size: min(9vw, 96px); font-weight: 800; min-width: 130px; border: 4px dashed #adb5bd; border-radius: 20px; background: #f8f9fa; cursor: pointer; color: #495057; }
.ans-q.ok { color: #2f9e44; border: 4px solid #2f9e44; background: #ebfbee; }

/* ---------- 14-15-16 géométrie ---------- */
.fig { transform-origin: center; } .fig svg { display: block; overflow: visible; }
.ruler { box-shadow: 0 4px 12px rgba(0,0,0,.15); border-radius: 8px; }
.ruler svg { display: block; }
.segment { padding: 10px 0; } .seg-line { height: 5px; border-radius: 3px; } .seg-line::before, .seg-line::after { content: ''; }
.seg-lab { text-align: center; font-weight: 800; font-size: 18px; }
.linecard { background: #fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(0,0,0,.1); padding: 6px; }
.linecard svg { display: block; }

/* ---------- 18 balance / 19 monnaie ---------- */
.balance-svg { width: min(100%, 980px); max-height: 100%; }
.money-band { position: absolute; left: 0; top: 0; bottom: 0; width: 170px; background: #f1f3f5; border-right: 2px solid var(--line); overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 10px; z-index: 1; }
.money-band .src { position: static; cursor: grab; touch-action: none; }
.money-band .bill { width: 140px; height: 66px; }
.coin { border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; box-shadow: inset 0 0 0 3px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.3); }
.coin span { font-size: 20px; line-height: 1; } .coin small { font-size: 8px; letter-spacing: .5px; }
.coin.cu { background: radial-gradient(circle at 35% 30%, #f4b18a, #b8622f); color: #5c2a0f; }
.coin.au { background: radial-gradient(circle at 35% 30%, #ffe8a3, #d4a72c); color: #6b4b00; }
.coin.bi1 { background: radial-gradient(circle, #e9ecef 55%, #d4a72c 57%); color: #495057; }
.coin.bi2 { background: radial-gradient(circle, #d4a72c 55%, #e9ecef 57%); color: #5c4100; }
.bill { width: 170px; height: 86px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 900; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.6); }
.bill span { font-size: 32px; line-height: 1; } .bill small { font-size: 11px; letter-spacing: 2px; }
.bill.b500 { background: linear-gradient(135deg, #adb5bd, #868e96); } .bill.b1000 { background: linear-gradient(135deg, #ff8787, #e03131); } .bill.b2000 { background: linear-gradient(135deg, #74c0fc, #1971c2); }
.bill.b5000 { background: linear-gradient(135deg, #ffc078, #e8590c); } .bill.b10000 { background: linear-gradient(135deg, #8ce99a, #2f9e44); } .bill.b20000 { background: linear-gradient(135deg, #ffe066, #e6a700); }
.money-area .total-badge { left: 190px; }

/* ---------- 20 fractions ---------- */
.tpl { border: 3px dashed #868e96; cursor: move; touch-action: none; position: absolute; }
.tpl.round { border-radius: 50%; }
.part { pointer-events: none; } .part svg path, .part svg text { pointer-events: visiblePainted; cursor: grab; }
.part.rect { pointer-events: auto; border: 2px solid #212529; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.angle { transform-origin: center; } .angle svg { display: block; overflow: visible; }
.solid-cv { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.08); cursor: grab; touch-action: none; }

/* ---------- 23-24 étiquettes ---------- */
.label { padding: 8px 16px; border-radius: 10px; border: 2px solid #495057; box-shadow: 0 3px 0 rgba(0,0,0,.15); white-space: pre-wrap; max-width: 700px; }
.label img { display: block; pointer-events: none; border-radius: 6px; }
.textpanel { padding: 10px 14px; background: #fff9db; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.textpanel-ta { width: 100%; min-height: 110px; font-size: 17px; border: 2px solid var(--line); border-radius: 10px; padding: 8px; font-family: inherit; }
.lbl-grid { position: absolute; inset: 10px 10px 10px 10px; display: grid; gap: 0; border: 3px solid #495057; border-radius: 10px; overflow: hidden; background: #fff; }
.lbl-head { background: #e7f5ff; font-weight: 800; font-size: 22px; text-align: center; padding: 10px; border-right: 2px solid #495057; border-bottom: 3px solid #495057; outline: none; }
.lbl-cell { border-right: 2px solid #adb5bd; border-bottom: 2px solid #adb5bd; }

/* ---------- 25 graphisme ---------- */
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.letter { height: 84px; font-size: 48px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.letter.on { border-color: var(--pri); background: #e7f5ff; }
.letter-stage { width: min(48vw, 560px); display: flex; align-items: center; justify-content: center; }
.letter-svg { width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.letter-svg text { fill: #1971c2; }
.letter-svg text.trace { fill: transparent; stroke: #1971c2; stroke-width: 4; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: trace var(--dur) linear infinite; }
@keyframes trace { 70% { stroke-dashoffset: 0; fill: transparent; } 85%, 100% { stroke-dashoffset: 0; fill: #1971c2; } }

/* ---------- 26-28 grammaire ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.leg { border: 3px solid var(--c); color: var(--c); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 16px; cursor: pointer; }
.leg.on { background: var(--c); color: #fff; }
.gram-text { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 1200px; margin-top: 20px; }
.gw { font-size: 40px; padding: 6px 12px; border-radius: 10px; border: 2px dashed #ced4da; background: #fff; cursor: pointer; }
.sorter { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.zone { background: #fff; border: 3px solid #adb5bd; border-radius: 14px; min-height: 160px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 0 10px 10px; }
.zone.pool { min-height: 90px; border-style: dashed; background: #f8f9fa; }
.zone-t { width: calc(100% + 20px); margin: 0 -10px 4px; padding: 6px 10px; font-weight: 800; color: #fff; background: #868e96; border-radius: 10px 10px 0 0; }
.wchip { font-size: 26px; padding: 6px 12px; border: 2px solid #495057; border-radius: 10px; background: #fff; cursor: grab; touch-action: none; }
.wchip.ghost { position: fixed; z-index: 99999; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ---------- 29 conjugaison ---------- */
.conj { background: #fff; border-radius: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 24px 50px; min-width: 520px; }
.conj-title { font-size: 40px; font-weight: 800; margin-bottom: 12px; } .conj-title small { font-size: 18px; color: var(--muted); font-weight: 600; }
.conj-row { font-size: 38px; line-height: 1.55; } .conj-pr { color: #868e96; }
.conj-end { color: #e03131; font-weight: 800; } .conj-end.hid { color: #ced4da; }

/* ---------- 30 tableaux, 31 cahier ---------- */
.tablecard { background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 0 8px 8px; }
.tablecard-h { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-weight: 700; padding: 6px 2px; cursor: grab; }
.tablecard-h button { border: 1px solid var(--line); background: #f8f9fa; border-radius: 6px; margin-left: 4px; cursor: pointer; }
.utable { border-collapse: collapse; } .utable td { border: 2px solid #495057; min-width: 120px; height: 48px; padding: 6px 10px; outline: none; vertical-align: middle; }
.utable td:focus { box-shadow: inset 0 0 0 3px #4dabf7; }
.tabs { display: flex; gap: 4px; }
.tab { border: 2px solid var(--line); border-bottom: 0; background: #f1f3f5; padding: 8px 18px; border-radius: 10px 10px 0 0; font-weight: 700; cursor: pointer; font-size: 16px; }
.tab.on { background: #fff3bf; border-color: #fab005; }
.cahier { width: min(100%, 1150px); background: #fffef5; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.1); border-left: 34px solid #fab005; }
.cahier-h { display: grid; grid-template-columns: 200px 140px 1fr auto; gap: 0; padding: 10px 14px; font-weight: 800; color: #e8590c; border-bottom: 2px solid #e03131; align-items: center; }
.cahier-day { font-size: 26px; color: #1864ab; }
.cahier-row { display: grid; grid-template-columns: 200px 140px 1fr; border-bottom: 1px solid #a5d8ff; }
.cahier-in { border: 0; border-right: 1px solid #ffc9c9; background: transparent; font-size: 22px; padding: 10px 12px; font-family: inherit; outline: none; }
.cahier-in:focus { background: #fff9db; }

/* ---------- 32 fonds, 33 multi ---------- */
.fond { position: absolute; inset: 0; }
.fond-svg { position: absolute; inset: 0; pointer-events: none; }
.multi { display: grid; gap: 10px; width: 100%; height: 100%; }
.multi-p { position: relative; border: 3px solid #adb5bd; border-radius: 12px; overflow: hidden; cursor: pointer; min-height: 120px; background: #fff; }
.multi-p.open { cursor: default; border-color: var(--pri); }
.multi-bg { position: absolute; inset: 0; }
.multi-n { position: absolute; top: 6px; left: 8px; background: var(--pri); color: #fff; border-radius: 999px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 800; z-index: 1; }
.multi-ta { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; resize: none; font-size: 26px; padding: 40px 18px 18px; font-family: inherit; outline: none; }
.multi-p:not(.open) .multi-ta { pointer-events: none; font-size: 16px; }
.multi-x { position: absolute; top: 6px; right: 8px; z-index: 2; border: 0; background: #e03131; color: #fff; border-radius: 8px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }

/* ---------- 34-42 ---------- */
.barsvg { width: min(100%, 1100px); }
.abacus { display: flex; gap: 26px; align-items: flex-end; margin-top: 20px; }
.rod-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rod-cnt { font-size: 26px; font-weight: 800; height: 32px; }
.rod { width: 64px; height: 380px; display: flex; flex-direction: column-reverse; align-items: center; background: linear-gradient(90deg, transparent 28px, #8b5a2b 28px, #8b5a2b 36px, transparent 36px); }
.bead { width: 64px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,0,0,.35); margin-top: 2px; box-shadow: inset -6px -6px 10px rgba(0,0,0,.2); }
.rod-base { width: 110px; height: 14px; background: #8b5a2b; border-radius: 4px; }
.rod-label { font-size: 30px; font-weight: 900; height: 36px; }
.laps-col { width: 260px; background: #fff; border-radius: 14px; padding: 14px; align-self: center; max-height: 80%; overflow: auto; }
.laps { font-size: 26px; font-family: Consolas, monospace; }
.thermo-svg { height: 100%; max-height: 78vh; touch-action: none; cursor: ns-resize; }
.rekenrek { width: min(100%, 1200px); }
.tower { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tower-stack { display: flex; flex-direction: column-reverse; }
.tower.horiz { flex-direction: row; } .tower.horiz .tower-stack { flex-direction: row; }
.cube { width: 48px; height: 48px; border: 2px solid rgba(0,0,0,.45); border-radius: 6px; box-shadow: inset 0 0 0 7px rgba(255,255,255,.18); margin: 1px; }
.tower-n { font-weight: 800; font-size: 20px; color: #495057; }
.tower-rot { border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 16px; }
.grid100 { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; width: min(100%, 76vh); }
.grid100 > div { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: clamp(14px, 2.5vh, 28px); font-weight: 700; cursor: pointer; }
.cell { background: #fff; border: 1px solid #ced4da; }
.h100 { background: #1971c2; color: #fff; } .h100.corner { background: transparent; cursor: default; }
.cards-rep { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; width: 100%; max-width: 1300px; }
.rep-card { background: #fff; border-radius: 16px; border: 3px solid #d0ebff; padding: 10px; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.rep-card.masked { background: #f1f3f5; border-style: dashed; }
.rep-title { font-weight: 800; color: #1971c2; }
.rep-q { font-size: 70px; color: #adb5bd; font-weight: 900; }
.rep-big { font-size: 100px; font-weight: 900; color: #e03131; line-height: 1; }
.rep-word { font-size: 40px; font-weight: 700; }
.rep-decomp { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 22px; font-weight: 700; }
.tenframe { display: grid; grid-template-columns: repeat(5, 36px); grid-template-rows: repeat(2, 36px); border: 3px solid #212529; }
.tenframe span { border: 1px solid #212529; display: flex; align-items: center; justify-content: center; } .tenframe i { width: 24px; height: 24px; border-radius: 50%; background: #e03131; }
.collection { font-size: 36px; max-width: 220px; text-align: center; }
.flower { position: relative; width: 100%; height: 100%; min-height: 640px; }
.flower-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rep-card.center { width: 220px; height: 220px; border-radius: 50%; border-color: #fab005; background: #fff9db; }
.rep-card.petal { position: absolute; width: 240px; min-height: 160px; border-radius: 50% / 40%; }
.countdown { font-size: 30px; color: #e8590c; font-weight: 800; height: 40px; }

/* ---------- connexion, sauvegarde, copyright ---------- */
.login-screen { position: fixed; inset: 0; z-index: 100000; background: linear-gradient(120deg, #1864ab, #5f3dc4); display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 22px; padding: 30px 34px; width: min(440px, 92vw); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-box .inp { font-size: 18px; padding: 12px 14px; }
.login-box .btn { font-size: 18px; padding: 12px; }
.login-brand h1 { margin: 0; font-size: 26px; color: #1864ab; } .login-brand small { color: var(--muted); }
.login-err { color: #e03131; font-weight: 700; min-height: 20px; }
.small-note { font-size: 13px; margin: 0; }
.copyright { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.menu-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 8px; border-top: 1px solid var(--line); background: #fff; }
.user-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.18); border-radius: 12px; padding: 5px 6px 5px 12px; font-weight: 700; }
.user-badge .btn { color: var(--ink); }
.save-status { font-size: 13px; font-weight: 600; opacity: .95; }
.tool-top .save-status { background: rgba(255,255,255,.2); border-radius: 8px; padding: 4px 8px; }
.save-status.err { background: #ffe3e3 !important; color: #c92a2a; border-radius: 8px; padding: 4px 8px; }

/* ---------- administration ---------- */
.adm { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; user-select: text; -webkit-user-select: text; }
.adm-sec { background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: 0 2px 8px rgba(0,0,0,.06); max-width: 1100px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.adm-sec h2 { margin: 0 0 12px; font-size: 20px; color: #1864ab; }
.adm-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: start; padding: 7px 0; border-bottom: 1px solid #f1f3f5; }
.adm-row .inp { width: min(520px, 100%); box-sizing: border-box; }
.adm-lab { font-weight: 700; color: #495057; padding-top: 8px; }
.adm-col { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.adm-chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.adm-chk input, .adm-table input[type=checkbox] { width: 18px; height: 18px; }
.adm-ta { width: min(520px, 100%); height: 110px; font-family: Consolas, monospace; font-size: 12px; box-sizing: border-box; }
.adm-adv { margin: 8px 0; } .adm-adv summary { cursor: pointer; font-weight: 700; color: #495057; padding: 6px 0; }
.adm-test { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; background: #f8f9fa; border-radius: 12px; }
.adm-msg { font-weight: 600; } .adm-msg.ok { color: #2b8a3e; } .adm-msg.err { color: #c92a2a; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th { text-align: left; color: var(--muted); font-size: 13px; padding: 6px; border-bottom: 2px solid var(--line); }
.adm-table td { padding: 6px; border-bottom: 1px solid #f1f3f5; } .adm-table td.c { text-align: center; }
.adm-table tr.off td { opacity: .5; }
.btn.danger { color: #c92a2a; } .btn.danger:hover { border-color: #ffa8a8; background: #fff5f5; }
.row-btns { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.form-col { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, 90vw); }
.menu-head .back { color: inherit; text-decoration: none; margin-right: 6px; }
a.btn { text-decoration: none; display: inline-block; }

/* ---------- sauvegardes ---------- */
.saves-box { width: min(640px, 92vw); max-height: 86vh; overflow-y: auto; user-select: text; -webkit-user-select: text; }
.saves-box .inp { flex: 1; min-width: 220px; }
.saves-list { display: flex; flex-direction: column; gap: 6px; }
.save-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; }
.save-item .muted { font-size: 13px; }
.row-btns.tight { margin-top: 0; gap: 6px; flex-wrap: nowrap; }

/* ---------- cadenas / compte sans paramétrage : seuls les boutons d'action restent ---------- */
[hidden] { display: none !important; }
.stage.locked > .bar > :not(.primary):not(.act), .stage.locked > .bar > .needs { display: none; }
.stage.locked > .bar:not(:has(> .primary:not(.needs), > .act)) { display: none; }
.stage.locked > .bar { justify-content: center; background: transparent; border-bottom: 0; }

/* ---------- 43. Météo ---------- */
.meteo { width: min(1100px, 100%); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.meteo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 30px; }
.meteo-date { font-size: clamp(26px, 4vw, 48px); font-weight: 800; color: #1864ab; text-align: center; }
.meteo-jour { text-transform: capitalize; }
.meteo-pasauj { font-size: 16px; color: var(--muted); font-weight: 600; }
.meteo-saison { font-size: clamp(22px, 3vw, 34px); font-weight: 800; text-transform: capitalize; }
.meteo-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.meteo-card { background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: 12px 18px; min-width: 220px; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.meteo-card.on { border-color: var(--pri); box-shadow: 0 0 0 4px #d0ebff; }
.meteo-card.temp { cursor: default; }
.meteo-card-t { font-size: 20px; font-weight: 800; color: #495057; margin-bottom: 6px; }
.meteo-icons { font-size: 72px; line-height: 1.15; min-height: 84px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.meteo-vide { color: #ced4da; font-weight: 800; }
.meteo-temp { font-size: 56px; font-weight: 900; margin: 4px 0 8px; }
.meteo-palette { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.meteo-pic { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 8px 4px; border: 3px solid var(--line); background: #fff; border-radius: 16px; cursor: pointer; font-family: inherit; }
.meteo-pic span { font-size: 44px; line-height: 1.1; } .meteo-pic small { font-size: 14px; font-weight: 700; color: #495057; }
.meteo-pic.on { border-color: var(--pri); background: #e7f5ff; }
.meteo-week { border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 18px; }
.meteo-week th, .meteo-week td { border: 1px solid var(--line); padding: 6px 12px; text-align: center; min-width: 74px; }
.meteo-week thead th { background: #f1f3f5; cursor: pointer; text-transform: capitalize; }
.meteo-week tbody th { background: #f8f9fa; font-size: 15px; color: #495057; }
.meteo-week td { font-size: 30px; } .meteo-week tr:last-child td { font-size: 18px; font-weight: 700; }
.meteo-week .on { background: #e7f5ff; }

/* ---------- Petits écrans (téléphone, petite tablette) ---------- */
@supports (height: 100dvh) { #app { height: 100dvh; } }
html, body { overflow-x: hidden; }
@media (max-width: 760px) {
  .menu-head { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .brand { gap: 10px; min-width: 0; }
  .logo { font-size: 28px; padding: 0 10px; border-radius: 12px; box-shadow: 0 3px 0 #ffd43b; }
  .brand h1 { font-size: 20px; }
  .brand small { display: none; }
  .head-icons { flex-wrap: wrap; gap: 6px; margin-left: auto; justify-content: flex-end; }
  .menu-head .head-icons { width: 100%; }
  .user-badge { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 5px 6px; }
  .user-badge > span:first-child { margin-right: auto; }
  .icon { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
  .menu-tools { padding: 10px 12px 2px; gap: 10px; }
  .search { width: 100%; }
  .chips { gap: 5px; }
  .cat-chip { padding: 5px 11px; font-size: 14px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px 12px 20px; }
  .card { padding: 12px 10px 10px; gap: 4px; }
  .card-icon { font-size: 30px; }
  .card-name { font-size: 15px; padding-right: 26px; }
  .card-desc { font-size: 12.5px; }
  .card-num { min-width: 26px; height: 26px; font-size: 13px; top: 8px; right: 8px; }
  .menu-foot { font-size: 11.5px; }
  .tool-top { flex-wrap: wrap; padding: 6px 8px; gap: 6px; }
  .tool-title { font-size: 17px; min-width: 0; flex: 1 1 140px; }
  .tool-top .head-icons { gap: 4px; }
  .tool-top .icon { width: 36px; height: 36px; font-size: 17px; }
  .tool-top .save-status { display: none; }
  .bar { padding: 6px 8px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bar > * { flex-shrink: 0; }
  .area { padding: 8px; }
  .tool-bottom { padding: 4px 8px; }
  .tabb { padding: 6px 10px; font-size: 14px; }
  .modal-box { padding: 18px; max-width: 94vw; max-height: 88vh; overflow-y: auto; font-size: 15px; }
  .adm { padding: 10px; gap: 10px; }
  .adm-sec { padding: 14px; overflow-x: auto; }
  .adm-row { grid-template-columns: 1fr; gap: 4px; }
  .adm-lab { padding-top: 0; }
  .save-item { flex-wrap: wrap; }
  .row-btns.tight { flex-wrap: wrap; }
  .login-box { padding: 22px 18px; }
}

/* ===== Page d'accueil publique (présentation + connexion) ===== */
.land { position: fixed; inset: 0; z-index: 100000; overflow-y: auto; background: #f4f6fb; -webkit-user-select: text; user-select: text; scroll-behavior: smooth; }
.land-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(24,100,171,.96); backdrop-filter: blur(6px); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.land-brand { display: flex; align-items: center; gap: 12px; }
.land-brand .logo { font-size: 28px; border-radius: 12px; padding: 0 10px; box-shadow: 0 3px 0 #ffd43b; }
.land-brand b { display: block; font-size: 20px; } .land-brand small { opacity: .8; }
.land-top-btn { background: #ffd43b !important; border-color: #ffd43b !important; color: #1864ab !important; text-decoration: none; }
.land-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 440px); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 6vw, 80px) clamp(16px, 5vw, 72px); background: linear-gradient(120deg, #1864ab, #5f3dc4); color: #fff; }
.land-kicker { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 14px; }
.land-pitch h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; margin: 16px 0; }
.land-lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; opacity: .95; margin: 0 0 18px; }
.land-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 16px; }
.land-points li { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 12px; }
.land-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.land-cta .btn { font-size: 18px; padding: 12px 22px; text-decoration: none; }
.land-cta .btn.primary { background: #ffd43b; border-color: #ffd43b; color: #1864ab; }
.land-cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.land-card { scroll-margin: 90px; }
.land-card .login-box { width: auto; color: var(--ink); }
.login-title h2 { margin: 0; font-size: 22px; color: #1864ab; }
.login-ok { color: #2b8a3e; font-weight: 700; }
.login-err:empty, .login-ok:empty { display: none; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.login-link { color: var(--pri); font-weight: 600; text-decoration: none; } .login-link:hover { text-decoration: underline; }
.land-sec { padding: clamp(32px, 5vw, 64px) clamp(16px, 5vw, 72px); max-width: 1280px; margin: 0 auto; }
.land-sec h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 6px; color: #1864ab; }
.land-sub { color: var(--muted); margin: 0 0 18px; }
.land-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.land-feat { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.land-feat-ic { font-size: 34px; } .land-feat h3 { margin: 8px 0 6px; } .land-feat p { margin: 0; color: #495057; line-height: 1.5; }
.land-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.land-chip { border: 2px solid var(--c); color: var(--c); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 15px; }
.land-chip.on { background: var(--c); color: #fff; }
.land-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.land-tool { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px; border-left: 6px solid var(--c); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.land-tool-ic { font-size: 30px; line-height: 1; }
.land-tool b { display: block; margin-bottom: 3px; } .land-tool small { color: #495057; font-size: 13.5px; line-height: 1.4; }
.land-final { text-align: center; } .land-final p { color: #495057; } .land-final .btn { font-size: 18px; padding: 12px 26px; text-decoration: none; display: inline-block; }
.land-foot { text-align: center; color: var(--muted); padding: 22px 16px 30px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; }
  .land-brand small { display: none; }
  .land-brand b { font-size: 17px; }
}
.adm-table tr.pending td { background: #fff9db; }
.adm-badge { background: #fab005; color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; white-space: nowrap; }
/* gratuité mise en avant */
.land:not(.can-signup) .only-signup { display: none !important; }
.land.can-signup .land-login-cta { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
.land-kickers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.land-free { display: inline-block; background: #40c057; color: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 900; font-size: 15px; letter-spacing: .3px; box-shadow: 0 3px 0 #2b8a3e; }
.land-freeband { background: #ebfbee; border-top: 1px solid #b2f2bb; border-bottom: 1px solid #b2f2bb; }
.land-freeband-in { max-width: 1280px; margin: 0 auto; padding: clamp(22px, 4vw, 40px) clamp(16px, 5vw, 72px); display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.land-freeband-in > div:nth-child(2) { flex: 1 1 320px; }
.land-freeband-big { font-size: clamp(54px, 7vw, 84px); font-weight: 900; color: #2b8a3e; line-height: 1; }
.land-freeband h2 { margin: 0 0 6px; color: #2b8a3e; font-size: clamp(22px, 2.6vw, 30px); }
.land-freeband p { margin: 0; color: #343a40; line-height: 1.5; font-size: 16px; }
.land-freeband-btn { background: #2f9e44; border-color: #2f9e44; color: #fff; font-size: 18px; padding: 12px 22px; text-decoration: none; }
.land-freeband-btn:hover { background: #2b8a3e; }
.land-cta.center { justify-content: center; }
.land-final .land-cta .btn { font-size: 18px; padding: 12px 26px; }
.login-signup { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.login-signup .btn { border-color: #2f9e44; color: #2b8a3e; }
.login-free { margin: 0; color: #2b8a3e; font-weight: 700; }
.land-feats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1050px) { .land-feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .land-feats { grid-template-columns: 1fr; } .land-top-btn { padding: 6px 10px; font-size: 14px; } }
.form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-row .sel { flex: 1 1 220px; max-width: 100%; }
.form-row input[type=range] { flex: 1 1 160px; }
/* en-tête : le titre ne se replie plus mot par mot, les icônes passent à la ligne si besoin */
.menu-head { flex-wrap: wrap; gap: 12px 18px; }
.menu-head .brand { flex: 1 1 auto; min-width: min(340px, 100%); }
.menu-head .brand h1 { white-space: nowrap; }
.menu-head .head-icons { flex-wrap: wrap; justify-content: flex-end; }
.user-badge { flex-wrap: wrap; }
/* grand écran : contenu centré, largeur limitée (plus d'étirement ni de grand vide avant la connexion) */
.land-top { padding-left: max(clamp(16px, 4vw, 48px), calc((100% - 1240px) / 2)); padding-right: max(clamp(16px, 4vw, 48px), calc((100% - 1240px) / 2)); }
.land-hero { grid-template-columns: minmax(0, 760px) minmax(320px, 420px); justify-content: center; }
.land-points { display: flex; flex-direction: column; align-items: flex-start; }
.land-points li { width: fit-content; max-width: 100%; }
.land-lead { max-width: 680px; }
@media (max-width: 900px) { .land-hero { grid-template-columns: minmax(0, 1fr); } }
