/* KynWorks free tools (/outils): loaded after blog.css, same tokens */
html[lang="ar"] body { font-family: "Cairo", "Poppins", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
body { overflow-x: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

/* header: blog header + language switch */
.bh__in { gap: 20px; }
.bh__nav { gap: 20px; }
.lsw { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 28px 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center; }
[dir="rtl"] .lsw { padding: 0 12px 0 28px; background-position: left 11px center; }
.bh__cta { min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 860px) { .bh__nav a:not([aria-current]):not(:last-child) { display: none; } }
@media (max-width: 640px) {
  .bh__nav { display: none; }
  .bh__in { gap: 10px; }
  .lsw { margin-inline-start: auto; height: 38px; }
}
@media (max-width: 360px) { .bh__cta b { display: none; } }

/* hero */
.thero { padding-top: clamp(22px, 4vw, 44px); padding-bottom: clamp(18px, 3vw, 28px); }
.thero .crumbs { margin-bottom: 14px; }
.thero h1 { font-size: clamp(28px, 4.4vw, 50px); font-weight: 800; max-width: 980px; }
.thero h1 span { color: var(--red); }
.thero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); margin: 12px 0 0; max-width: 760px; }
.privacy { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: #1d6b38; background: #e9f6ee; padding: 8px 14px; border-radius: 12px; line-height: 1.45; }
.privacy svg { flex: none; margin-top: 1px; }

/* tool card */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -45px rgba(17, 17, 17, .35); overflow: hidden; }
.tool__in { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 18px; align-content: start; border-inline-end: 1px solid var(--line); min-width: 0; }
.tool__out { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 18px; align-content: start; background: #FBFAF8; min-width: 0; }
.tool--wide { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .tool { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .tool__in { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
.blk { display: grid; gap: 12px; min-width: 0; }
.blk__t { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
html[lang="ar"] .blk__t { letter-spacing: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 380px) { .row--3 { grid-template-columns: 1fr 1fr; } }

.fld { display: grid; gap: 5px; min-width: 0; font-size: 13.5px; font-weight: 600; color: #3a3631; }
.fld small { font-weight: 400; color: var(--muted); }
.inp, .sel, .txt { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(17, 17, 17, .16); background: #fff; font-size: 16px; font-weight: 500; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.txt { min-height: 92px; resize: vertical; line-height: 1.45; }
.sel { appearance: none; -webkit-appearance: none; padding-inline-end: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; }
[dir="rtl"] .sel { background-position: left 12px center; }
.inp:focus, .sel:focus, .txt:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.inp.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 0, 0, .1); }
.inp[type="color"] { padding: 4px; height: 46px; cursor: pointer; }
.ltr { direction: ltr; }
[dir="rtl"] .ltr { text-align: right; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.chk input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }

/* segmented control / tabs */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 0; background: #F1EEE9; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { background: #E6E1DA; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg--big button { min-height: 48px; padding: 10px 18px; font-size: 15px; }

/* buttons */
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.tbtn:hover { background: var(--red); }
.tbtn:active { transform: scale(.97); }
.tbtn--red { background: var(--red); box-shadow: 0 10px 30px -12px rgba(227, 0, 0, .6); }
.tbtn--red:hover { background: var(--ink); }
.tbtn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, .2); }
.tbtn--ghost:hover { background: var(--ink); color: #fff; }
.tbtn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.icbtn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; background: #F1EEE9; cursor: pointer; }
.icbtn:hover { background: var(--ink); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .btns .tbtn { flex: 1 1 auto; } }

/* messages */
.msg { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.msg--warn { background: #FFF4E0; color: #7A4A00; }
.msg--err { background: #FDECEC; color: #A30000; }
.msg--ok { background: #E9F6EE; color: #1D6B38; }
.msgs { display: grid; gap: 8px; }
.msgs:empty { display: none; }

/* result tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.stat b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat--red { background: var(--red); color: #fff; box-shadow: none; }
.stat--red span { color: rgba(255, 255, 255, .85); }

/* export block + small CTA under the export buttons */
.exp { display: grid; gap: 10px; padding-top: 4px; }
.smallcta { margin: 0; font-size: 13.5px; color: var(--muted); }
.smallcta a { color: var(--red); font-weight: 600; }

/* big CTA band (red outline, like the beta form) */
.ctaband { margin-top: clamp(28px, 4vw, 44px); }
.ctaband .cta { margin: 0; }
.cta__t .arr { display: inline-block; color: var(--red); }
.cta__free { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; font-weight: 700; color: var(--red) !important; }
[dir="rtl"] .cta__btn svg { transform: scaleX(-1); }

/* docs: how it works, FAQ, related */
.tdoc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 820px; margin: 0 auto; padding-top: clamp(40px, 6vw, 72px); }
.tdoc h2 { font-size: clamp(25px, 2.8vw, 34px); font-weight: 800; margin: 0 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 16.5px; position: relative; min-height: 44px; }
[dir="rtl"] .faq summary { padding: 16px 18px 16px 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: #3a3631; line-height: 1.65; }
.tlinks { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tlinks a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; }
.tlinks a:hover { color: var(--red); }
.tlinks a::after { content: "→"; color: var(--red); }
[dir="rtl"] .tlinks a::after { content: "←"; }
.tsec { margin-top: clamp(36px, 5vw, 56px); }
.tsec:last-child { padding-bottom: clamp(56px, 8vw, 96px); }

/* hub cards */
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .tcards { grid-template-columns: minmax(0, 1fr); } }
.tcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(17, 17, 17, .4); }
.tcard__ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--red); color: #fff; }
.tcard__t { font-size: 21px; font-weight: 800; line-height: 1.25; }
.tcard__d { color: var(--muted); font-size: 15px; line-height: 1.55; }
.tcard ul { margin: 0; padding-inline-start: 1.1em; font-size: 14.5px; color: #3a3631; }
.tcard li::marker { color: var(--red); }
.tcard__go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--red); }

/* footer: 4 columns */
.bf__cols--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .bf__cols--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .bf__cols--4 { grid-template-columns: 1fr; } }

/* toast */
.ttoast { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.ttoast.on { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .tcard, .tbtn, .ttoast { transition: none; } }
@media (max-width: 640px) {
  .cta__t { font-size: 20px; }
}

/* print: only the tool result */
@media print {
  .bh, .bf, .thero .crumbs, .privacy, .ctaband, .tdoc, .tsec, .noprint, .tool__in, .ttoast { display: none !important; }
  body { background: #fff; }
  .tool { box-shadow: none; display: block; }
  .tool__out { background: #fff; padding: 0; }
  .printonly { display: block !important; }
}
.printonly { display: none; }

/* ---------- shared bits used by the tools ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tbtn--block { width: 100%; white-space: normal; text-align: center; min-height: 54px; font-size: 16px; line-height: 1.3; }
.blk__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fld--inline { display: flex; align-items: center; gap: 8px; }
.fld--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sel--sm { min-height: 40px; width: auto; padding-block: 6px; }
.inp--sm { width: 72px; flex: none; }
.row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.note { font-size: 13px; color: var(--muted); }
details.opt { border-top: 1px solid var(--line); padding-top: 14px; }
details.opt > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
details.opt > summary::-webkit-details-marker { display: none; }
details.opt > summary::after { content: "+"; font-size: 22px; color: var(--red); font-weight: 500; }
details.opt[open] > summary::after { content: "–"; }
details.opt[open] > summary { margin-bottom: 12px; }
.filebtn { position: relative; cursor: pointer; }
.filebtn:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }

/* plates */
.rows { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) minmax(0, 72px) 44px; gap: 6px; align-items: center; }
.prow > span { text-align: center; color: var(--muted); font-weight: 600; }
.prow--head { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: -4px; }
.prow--head > span { text-align: start; }
.lays { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lays--roll { grid-template-columns: 1fr; }
.lay { margin: 0; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.lay figcaption { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.lay figcaption span { color: var(--muted); }
.lay figcaption .lay__n { color: var(--red); font-weight: 700; }
.lay__svg { width: 100%; height: auto; max-height: 420px; display: block; }
.lay__svg--roll { max-height: 360px; }
pre.printonly { white-space: pre-wrap; font: 13px/1.5 "Poppins", sans-serif; margin: 0 0 12px; }
@media print { .lays { grid-template-columns: repeat(3, 1fr); } .lay { break-inside: avoid; } }

/* QR */
.preview { display: grid; place-items: center; min-height: 240px; padding: 18px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.preview svg { width: min(100%, 300px); height: auto; display: block; }
.preview--bc svg { width: min(100%, 420px); }
.preview:empty::before { content: ""; width: 120px; height: 120px; border-radius: 12px; background: repeating-linear-gradient(45deg, #F1EEE9 0 8px, #fff 8px 16px); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

/* colours */
.inp--pick { padding: 4px; }
.big { min-height: 150px; border-radius: 18px; display: flex; align-items: flex-end; padding: 16px 18px; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08); }
.big span { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.fmts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fmts li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 14px; box-shadow: 0 0 0 1px var(--line); }
[dir="rtl"] .fmts li { padding: 6px 14px 6px 6px; }
.fmts li > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fmts code { font: 600 14.5px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.disc { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E0; color: #6A4000; font-size: 13.5px; font-weight: 600; line-height: 1.5; border-inline-start: 4px solid #E08A00; }
.chips5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) and (min-width: 701px), (max-width: 520px) { .chips5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 360px) { .chips5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(17, 17, 17, .5); display: flex; flex-direction: column; }
.chip__sw { aspect-ratio: 1 / .8; display: block; }
.chip__b { padding: 8px 10px 10px; display: grid; gap: 2px; font-size: 13px; line-height: 1.3; }
.chip__b b { font-size: 14px; overflow-wrap: anywhere; }
.chip__b small { font-size: 11px; color: var(--muted); }
.chip__de { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px; }
.harm { display: grid; gap: 8px; }
.hrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; }
@media (max-width: 520px) { .hrow { grid-template-columns: 1fr; gap: 6px; } }
.hrow__t { text-align: start; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 0; min-height: 36px; }
.hrow.on .hrow__t { color: var(--red); }
.hrow__c { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { border: 0; padding: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); min-width: 64px; flex: 1 1 64px; max-width: 110px; }
.sw i { display: block; height: 34px; background: var(--c); }
.sw span { display: block; font: 600 11px/1 ui-monospace, Consolas, monospace; padding: 6px 4px; }
.sw:hover { box-shadow: 0 0 0 2px var(--ink); }
.ctr { display: grid; gap: 8px; }
.ctr__demo { border-radius: 14px; padding: 16px 18px; display: flex; align-items: baseline; gap: 14px; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08); }
.ctr__demo b { font-size: 34px; line-height: 1; }
.ctr__r { margin: 0; font-weight: 800; font-size: 20px; }
.ctr__b { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ctr__b > span:first-child { min-width: 110px; color: var(--muted); }
.badge { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge--ok { background: #E9F6EE; color: #1D6B38; }
.badge--no { background: #FDECEC; color: #A30000; }
.pal { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 4px 4px 4px; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.pchip i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .12); }
.pchip button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F1EEE9; cursor: pointer; font-size: 18px; line-height: 1; }
.pchip button:hover { background: var(--ink); color: #fff; }
.imgcv { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 12px; cursor: crosshair; touch-action: none; margin-top: 8px; display: block; box-shadow: 0 0 0 1px var(--line); }
.lay svg, .preview svg, .fmts code, .sw span { direction: ltr; }
.lays { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* /outils hub cards with a capture of the tool, the icon over it (like the Accueil categories) 2026-11-21 */
.tcard { position: relative; overflow: hidden; padding-top: 0; }
.tcard__img { display: block; margin: 0 -24px 4px; aspect-ratio: 16 / 10; overflow: hidden; background: #EFEBE5; }
.tcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tcard:hover .tcard__img img { transform: scale(1.04); }
.tcard__img + .tcard__ic { position: absolute; top: 14px; inset-inline-start: 14px; width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.tcard__img + .tcard__ic svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .tcard__img img { transition: none; } }

/* soft white fade at the bottom of every tool card image, into the white card (2026-11-21) */
.tcard__img { position: relative; }
.tcard__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }

/* 2.8.0 stand builder: navigation buttons next to the view switch */
.v3d__bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg--nav button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; }
