/* ═══════════════════════════════════════════════════════════════════
   InkHub — DESIGN SYSTEM (remplacement intégral de Bootstrap)
   ───────────────────────────────────────────────────────────────────
   Carte #33 — « plus de Bootstrap du tout » (décision Alex).
   Ce fichier réimplémente le sous-ensemble de Bootstrap RÉELLEMENT utilisé
   par les templates (grille 12 col, utilitaires flex/spacing/display, et la
   STRUCTURE de base des composants : btn, card, form, table, badge, alert,
   nav, dropdown, pagination, list-group, modal, progress…). Le SKIN (couleurs,
   radius, polices du langage Claude Design) reste dans redesign-pages.css
   (sous .ink-page) et order-index.css (.ord-cmd). Bootstrap CSS/JS retirés.

   Chargé en PREMIER (avant app.css / redesign-*) : c'est la fondation
   structurelle ; les couches suivantes affinent l'apparence.
   ═══════════════════════════════════════════════════════════════════ */

/* ───────── reset / reboot minimal ───────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.2}
p{margin-top:0;margin-bottom:1rem}
ul,ol{margin-top:0}
img,svg{vertical-align:middle}
svg{display:inline-block}
a{color:inherit;text-decoration:none}
button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}
button,[type=button],[type=submit]{-webkit-appearance:button;cursor:pointer}
button:disabled,[disabled]{cursor:not-allowed}
table{border-collapse:collapse}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ───────── container ───────── */
.container,.container-fluid{width:100%;margin-right:auto;margin-left:auto;padding-right:12px;padding-left:12px}
@media(min-width:1400px){.container{max-width:1320px}}

/* ───────── grille 12 colonnes ───────── */
.row{--gx:1.5rem;--gy:0rem;display:flex;flex-wrap:wrap;margin-top:calc(-1*var(--gy));margin-right:calc(-.5*var(--gx));margin-left:calc(-.5*var(--gx))}
.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(.5*var(--gx));padding-left:calc(.5*var(--gx));margin-top:var(--gy)}
.col{flex:1 0 0%}
.col-auto{flex:0 0 auto;width:auto}
.col-1{flex:0 0 auto;width:8.3333333%}.col-2{flex:0 0 auto;width:16.6666667%}.col-3{flex:0 0 auto;width:25%}
.col-4{flex:0 0 auto;width:33.3333333%}.col-5{flex:0 0 auto;width:41.6666667%}.col-6{flex:0 0 auto;width:50%}
.col-7{flex:0 0 auto;width:58.3333333%}.col-8{flex:0 0 auto;width:66.6666667%}.col-9{flex:0 0 auto;width:75%}
.col-10{flex:0 0 auto;width:83.3333333%}.col-11{flex:0 0 auto;width:91.6666667%}.col-12{flex:0 0 auto;width:100%}
.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}
/* gutters */
.g-0{--gx:0;--gy:0}.g-1{--gx:.25rem;--gy:.25rem}.g-2{--gx:.5rem;--gy:.5rem}.g-3{--gx:1rem;--gy:1rem}.g-4{--gx:1.5rem;--gy:1.5rem}.g-5{--gx:3rem;--gy:3rem}
.gx-0{--gx:0}.gx-2{--gx:.5rem}.gx-3{--gx:1rem}.gy-2{--gy:.5rem}.gy-3{--gy:1rem}.gy-4{--gy:1.5rem}
@media(min-width:576px){.col-sm-6{flex:0 0 auto;width:50%}.col-sm-4{flex:0 0 auto;width:33.3333333%}.col-sm-12{flex:0 0 auto;width:100%}}
@media(min-width:768px){
  .col-md{flex:1 0 0%}.col-md-auto{flex:0 0 auto;width:auto}
  .col-md-1{flex:0 0 auto;width:8.3333333%}.col-md-2{flex:0 0 auto;width:16.6666667%}.col-md-3{flex:0 0 auto;width:25%}
  .col-md-4{flex:0 0 auto;width:33.3333333%}.col-md-5{flex:0 0 auto;width:41.6666667%}.col-md-6{flex:0 0 auto;width:50%}
  .col-md-7{flex:0 0 auto;width:58.3333333%}.col-md-8{flex:0 0 auto;width:66.6666667%}.col-md-9{flex:0 0 auto;width:75%}
  .col-md-10{flex:0 0 auto;width:83.3333333%}.col-md-12{flex:0 0 auto;width:100%}
}
@media(min-width:992px){
  .col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.3333333%}.col-lg-5{flex:0 0 auto;width:41.6666667%}
  .col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.3333333%}.col-lg-8{flex:0 0 auto;width:66.6666667%}
}
@media(min-width:1200px){.col-xl-4{flex:0 0 auto;width:33.3333333%}.col-xl-8{flex:0 0 auto;width:66.6666667%}}

/* ───────── display ───────── */
.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}
.d-block{display:block!important}.d-grid{display:grid!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}
.d-table{display:table!important}.d-table-cell{display:table-cell!important}
@media(min-width:768px){.d-md-none{display:none!important}.d-md-block{display:block!important}.d-md-flex{display:flex!important}.d-md-inline-block{display:inline-block!important}.d-md-table-cell{display:table-cell!important}}
@media(min-width:992px){.d-lg-none{display:none!important}.d-lg-block{display:block!important}.d-lg-flex{display:flex!important}.d-lg-table-cell{display:table-cell!important}}

/* ───────── flex ───────── */
.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}
.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}
.flex-fill{flex:1 1 auto!important}.flex-grow-1{flex-grow:1!important}.flex-grow-0{flex-grow:0!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}
.justify-content-start{justify-content:flex-start!important}.justify-content-center{justify-content:center!important}.justify-content-end{justify-content:flex-end!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}
.align-items-start{align-items:flex-start!important}.align-items-center{align-items:center!important}.align-items-end{align-items:flex-end!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}
.align-self-start{align-self:flex-start!important}.align-self-center{align-self:center!important}.align-self-end{align-self:flex-end!important}
.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}

/* ───────── spacing (échelle Bootstrap 0/.25/.5/1/1.5/3rem) ───────── */
.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}
.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}
.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}
.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-auto{margin-left:auto!important}
.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-auto{margin-right:auto!important}
.mx-0{margin-left:0!important;margin-right:0!important}.mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-3{margin-left:1rem!important;margin-right:1rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}
.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}
.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}
.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}
.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}
.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}
.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}
.px-0{padding-left:0!important;padding-right:0!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:1rem!important;padding-right:1rem!important}.px-4{padding-left:1.5rem!important;padding-right:1.5rem!important}
.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}

/* ───────── sizing ───────── */
.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}
.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}

/* ───────── texte (utilitaires structurels ; couleurs charte affinées ailleurs) ───────── */
.text-start{text-align:left!important}.text-center{text-align:center!important}.text-end{text-align:right!important}
.text-nowrap{white-space:nowrap!important}.text-wrap{white-space:normal!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}
.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.text-uppercase{text-transform:uppercase!important}.text-lowercase{text-transform:lowercase!important}.text-capitalize{text-transform:capitalize!important}
.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}
.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}
.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}
.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}
.small{font-size:.875em}.fs-1{font-size:2rem!important}.fs-2{font-size:1.5rem!important}.fs-3{font-size:1.25rem!important}.fs-4{font-size:1.1rem!important}.fs-5{font-size:1rem!important}.fs-6{font-size:.875rem!important}
.font-monospace{font-family:var(--ink-mono,'Geist Mono',ui-monospace,monospace)!important}
.text-muted{color:#6b7280}.text-secondary{color:#6b7280}

/* ───────── parité couleurs sémantiques (Bootstrap → design system) ─────────
   Baseline GLOBALE. Ces utilitaires n'existaient que sous .ink-page dans
   redesign-pages.css → invisibles sur les pages bespoke .ord-cmd et pour
   plusieurs variantes (-emphasis, -subtle, btn-warning…) jamais portées.
   Les versions .ink-page restent prioritaires (sélecteur + spécifique). */
.text-primary{color:#0077B6!important}.text-success{color:#1a7f4b!important}.text-danger{color:#c0392b!important}.text-warning{color:#b7791f!important}.text-info{color:#0e7490!important}.text-dark{color:#1A1C22!important}.text-body{color:var(--ink-text,#1A1C22)!important}.text-light{color:#9aa3af!important}.text-white{color:#fff!important}.text-black{color:#000!important}
.text-primary-emphasis{color:#055985!important}.text-secondary-emphasis{color:#41464b!important}.text-success-emphasis{color:#0f5132!important}.text-danger-emphasis{color:#842029!important}.text-warning-emphasis{color:#664d03!important}.text-info-emphasis{color:#055160!important}
.bg-primary-subtle{background-color:#cfe2f3!important}.bg-secondary-subtle{background-color:#e2e3e5!important}.bg-success-subtle{background-color:#d1e7dd!important}.bg-danger-subtle{background-color:#f8d7da!important}.bg-warning-subtle{background-color:#fff3cd!important}.bg-info-subtle{background-color:#cff4fc!important}.bg-light-subtle{background-color:#fcfcfd!important}.bg-dark-subtle{background-color:#ced4da!important}
.bg-primary{background-color:#0077B6!important}.bg-secondary{background-color:#5b6470!important}.bg-success{background-color:#1a7f4b!important}.bg-danger{background-color:#c0392b!important}.bg-warning{background-color:#ffc107!important}.bg-info{background-color:#0e7490!important}.bg-light{background-color:#f8f9fa!important}.bg-dark{background-color:#1A1C22!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}

/* boutons couleur : définis APRÈS la base .btn (sinon son background:transparent les écrase) */

/* tables : taille / bordures / état */
.table-sm>:not(caption)>*>*{padding:.3rem .4rem}
.table-bordered>:not(caption)>*>*{border:1px solid var(--ink-border,#e5e7eb)}
.table-danger,.table-danger>th,.table-danger>td{background-color:#f8d7da}
.table-light,.table-light>th,.table-light>td{background-color:#f8f9fa}
.table-active,.table-active>th,.table-active>td{background-color:rgba(0,0,0,.04)}

/* divers composants encore référencés dans les templates */
.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem}
.list-group-flush{border-radius:0}
.list-group-flush>.list-group-item{border-width:0 0 1px}
.list-group-flush>.list-group-item:last-child{border-bottom-width:0}
.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 3.5rem)}
.dropdown-item-text{display:block;padding:.35rem 1rem;color:var(--ink-text,#1A1C22);white-space:nowrap}
.alert-link{font-weight:600;color:inherit}
@media(min-width:768px){.text-md-end{text-align:right!important}.text-md-start{text-align:left!important}.text-md-center{text-align:center!important}}

/* ───────── position / overflow / divers ───────── */
.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-static{position:static!important}
.top-0{top:0!important}.start-0{left:0!important}.end-0{right:0!important}.bottom-0{bottom:0!important}
.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}
.float-end{float:right!important}.float-start{float:left!important}
.rounded{border-radius:.375rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:999px!important}.rounded-0{border-radius:0!important}
.border{border:1px solid #e5e7eb!important}.border-0{border:0!important}.border-top{border-top:1px solid #e5e7eb!important}.border-bottom{border-bottom:1px solid #e5e7eb!important}.border-end{border-right:1px solid #e5e7eb!important}.border-start{border-left:1px solid #e5e7eb!important}
/* largeurs / styles / couleurs de bordure (placés APRÈS .border pour gagner la cascade) */
.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}
.border-top-0{border-top:0!important}.border-bottom-0{border-bottom:0!important}.border-end-0{border-right:0!important}.border-start-0{border-left:0!important}
.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}
.border-primary{border-color:#0077B6!important}.border-secondary{border-color:#5b6470!important}.border-success{border-color:#1a7f4b!important}.border-danger{border-color:#c0392b!important}.border-warning{border-color:#ffc107!important}.border-info{border-color:#0e7490!important}.border-dark{border-color:#1A1C22!important}.border-light{border-color:#dee2e6!important}.border-white{border-color:#fff!important}
.border-primary-subtle{border-color:#9ec5e8!important}.border-secondary-subtle{border-color:#c4c8cd!important}.border-success-subtle{border-color:#a3cfbb!important}.border-danger-subtle{border-color:#e6a6ab!important}.border-warning-subtle{border-color:#ffe69c!important}.border-info-subtle{border-color:#9eeaf9!important}
.table-secondary,.table-secondary>th,.table-secondary>td{background-color:#e2e3e5}
.bg-white{background-color:#fff!important}.bg-light{background-color:#f6f7f9!important}.bg-transparent{background-color:transparent!important}
.shadow-none{box-shadow:none!important}.shadow-sm{box-shadow:0 1px 2px rgba(20,23,31,.08)!important}.shadow{box-shadow:0 6px 20px -8px rgba(20,23,31,.16)!important}
.align-middle{vertical-align:middle!important}.align-top{vertical-align:top!important}
.user-select-none{user-select:none!important}.cursor-pointer{cursor:pointer}

/* ═══════════════════════════════════════════════════════════════════
   STRUCTURE DES COMPOSANTS (base que Bootstrap fournissait ; le skin
   couleur/radius/police vit dans redesign-pages.css sous .ink-page)
   ═══════════════════════════════════════════════════════════════════ */

/* boutons */
.btn{display:inline-block;font-weight:500;line-height:1.5;color:var(--ink-text,#1A1C22);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:1px solid transparent;padding:.5rem .9rem;font-size:.9rem;border-radius:.5rem;background-color:transparent;transition:color .15s,background-color .15s,border-color .15s,box-shadow .15s}
.btn:disabled,.btn.disabled{opacity:.55;pointer-events:none}
.btn-group{display:inline-flex;vertical-align:middle}
.btn-group>.btn{position:relative;flex:1 1 auto}
.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}
/* variantes couleur (APRÈS .btn pour écraser son background:transparent) */
.btn-primary{background:#0077B6;color:#fff;border:1px solid #0077B6}.btn-secondary{background:#5b6470;color:#fff;border:1px solid #5b6470}.btn-success{background:#1a7f4b;color:#fff;border:1px solid #1a7f4b}.btn-danger{background:#c0392b;color:#fff;border:1px solid #c0392b}.btn-warning{background:#ffc107;color:#1A1C22;border:1px solid #ffc107}.btn-info{background:#0e7490;color:#fff;border:1px solid #0e7490}.btn-light{background:#f8f9fa;color:#1A1C22;border:1px solid #dee2e6}.btn-dark{background:#1A1C22;color:#fff;border:1px solid #1A1C22}
.btn-outline-primary{background:transparent;color:#0077B6;border:1px solid #0077B6}.btn-outline-secondary{background:transparent;color:#5b6470;border:1px solid #adb5bd}.btn-outline-success{background:transparent;color:#1a7f4b;border:1px solid #1a7f4b}.btn-outline-danger{background:transparent;color:#c0392b;border:1px solid #c0392b}.btn-outline-warning{background:transparent;color:#b7791f;border:1px solid #ffc107}.btn-outline-info{background:transparent;color:#0e7490;border:1px solid #0e7490}.btn-outline-dark{background:transparent;color:#1A1C22;border:1px solid #1A1C22}
.btn-primary:hover,.btn-secondary:hover,.btn-success:hover,.btn-danger:hover,.btn-info:hover,.btn-dark:hover{filter:brightness(.93);color:#fff}
.btn-warning:hover,.btn-light:hover{filter:brightness(.96)}
.btn-outline-primary:hover{background:#0077B6;color:#fff}.btn-outline-secondary:hover{background:#5b6470;color:#fff}.btn-outline-success:hover{background:#1a7f4b;color:#fff}.btn-outline-danger:hover{background:#c0392b;color:#fff}.btn-outline-warning:hover{background:#ffc107;color:#1A1C22}.btn-outline-info:hover{background:#0e7490;color:#fff}.btn-outline-dark:hover{background:#1A1C22;color:#fff}

/* cards */
.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid #e5e7eb;border-radius:.5rem}
.card-body{flex:1 1 auto;padding:1rem}
.card-title{margin-bottom:.5rem}
.card-header{padding:.75rem 1rem;margin-bottom:0;background-color:transparent;border-bottom:1px solid #e5e7eb}
.card-footer{padding:.75rem 1rem;background-color:transparent;border-top:1px solid #e5e7eb}
.card-img-top{width:100%}

/* formulaires */
.form-label{display:inline-block;margin-bottom:.4rem}
.form-control,.form-select{display:block;width:100%;padding:.45rem .75rem;font-size:.9rem;font-weight:400;line-height:1.5;color:var(--ink-text,#1A1C22);background-color:#fff;background-clip:padding-box;border:1px solid #d1d5db;border-radius:.5rem;appearance:none;transition:border-color .15s,box-shadow .15s}
.form-control:focus,.form-select:focus{outline:0}
.form-control::placeholder{opacity:1}
.form-control[type=file]{overflow:hidden}
.form-control-sm,.form-select-sm{padding:.3rem .6rem;font-size:.825rem}
.form-select{padding-right:2.25rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:14px}
textarea.form-control{min-height:calc(1.5em + .9rem + 2px)}
.form-text{margin-top:.25rem;font-size:.8rem;color:#6b7280}
.form-check{display:block;min-height:1.4rem;padding-left:1.6em;margin-bottom:.125rem}
.form-check .form-check-input{float:left;margin-left:-1.6em}
.form-check-input{width:1.1em;height:1.1em;margin-top:.2em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid #c0c6d0;appearance:none;print-color-adjust:exact;cursor:pointer}
.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}
.form-check-input:checked{background-color:var(--ink-accent,#0077B6);border-color:var(--ink-accent,#0077B6)}
.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3E%3C/svg%3E")}
.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2' fill='%23fff'/%3E%3C/svg%3E")}
.form-check-label{cursor:pointer}
.form-switch{padding-left:2.5em}
.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23c0c6d0'/%3E%3C/svg%3E");background-position:left center;border-radius:2em;transition:background-position .15s}
.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}
.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}
.input-group>.form-control,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}
.input-group-text{display:flex;align-items:center;padding:.45rem .75rem;font-size:.9rem;color:#475467;background-color:#f6f7f9;border:1px solid #d1d5db;border-radius:.5rem}
.col-form-label{padding-top:calc(.45rem + 1px);padding-bottom:calc(.45rem + 1px);margin-bottom:0}
.is-invalid{border-color:#D2382C!important}.invalid-feedback{display:block;width:100%;margin-top:.25rem;font-size:.8rem;color:#D2382C}

/* tables */
.table{width:100%;margin-bottom:1rem;vertical-align:top;border-color:#e5e7eb;caption-side:bottom}
.table>:not(caption)>*>*{padding:.5rem .5rem;border-bottom:1px solid #e5e7eb}
.table>thead{vertical-align:bottom}
.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* badges */
.badge{display:inline-block;padding:.35em .6em;font-size:.75em;font-weight:600;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.375rem}

/* alertes */
.alert{position:relative;padding:.75rem 1rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.5rem}
/* variantes alert (baseline globale ; .ink-page reste prioritaire) */
.alert-primary{color:#055985;background-color:#cfe2f3;border-color:#9ec5e8}
.alert-secondary{color:#41464b;background-color:#e2e3e5;border-color:#c4c8cd}
.alert-success{color:#0f5132;background-color:#d1e7dd;border-color:#a3cfbb}
.alert-danger{color:#842029;background-color:#f8d7da;border-color:#e6a6ab}
.alert-warning{color:#664d03;background-color:#fff3cd;border-color:#ffe69c}
.alert-info{color:#055160;background-color:#cff4fc;border-color:#9eeaf9}
.alert-light{color:#636464;background-color:#fefefe;border-color:#fdfdfe}
.alert-dark{color:#141619;background-color:#ced4da;border-color:#b9bbbe}
.alert-dismissible{padding-right:2.5rem}
.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1rem}

/* nav */
.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}
.nav-link{display:block;padding:.5rem .9rem;text-decoration:none;background:none;border:0;cursor:pointer}
.nav-tabs{border-bottom:1px solid #e5e7eb}
.nav-item{margin-bottom:-1px}
.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}

/* dropdown (toggle JS = controller Stimulus 'dropdown') */
.dropdown,.dropup{position:relative}
.dropdown-toggle{white-space:nowrap}
.dropdown-toggle::after{display:inline-block;margin-left:.4em;vertical-align:.15em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}
.dropdown-menu{position:absolute;z-index:1000;display:none;min-width:11rem;padding:.4rem;margin:.25rem 0 0;font-size:.9rem;color:var(--ink-text,#1A1C22);text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid #e5e7eb;border-radius:.5rem;box-shadow:0 6px 20px -8px rgba(20,23,31,.18)}
.dropdown-menu.show{display:block}
.dropdown-menu-end{right:0;left:auto}
.dropdown-item{display:block;width:100%;padding:.4rem .7rem;clear:both;font-weight:400;color:var(--ink-text,#1A1C22);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:.375rem;cursor:pointer}
.dropdown-divider{height:0;margin:.4rem .2rem;overflow:hidden;border-top:1px solid #e5e7eb}
.dropdown-header{display:block;padding:.4rem .7rem;font-size:.78rem;color:#6b7280}

/* pagination */
.pagination{display:flex;padding-left:0;list-style:none}
.page-link{position:relative;display:block;text-decoration:none;cursor:pointer;background:none;border:0}
.page-item .page-link{margin-left:0}

/* list-group */
.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:.5rem}
.list-group-item{position:relative;display:block;padding:.65rem 1rem;color:var(--ink-text,#1A1C22);text-decoration:none;background-color:#fff;border:1px solid #e5e7eb}
.list-group-item+.list-group-item{border-top-width:0}
.list-group-item-action{width:100%;text-align:inherit;cursor:pointer}

/* progress */
.progress{display:flex;height:.6rem;overflow:hidden;font-size:.7rem;background-color:#f2f4f7;border-radius:999px}
.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:var(--ink-accent,#0077B6);transition:width .4s ease}

/* modale */
.modal{position:fixed;top:0;left:0;z-index:1055;display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}
.modal.show{display:block}
.modal-dialog{position:relative;width:auto;margin:1.75rem auto;max-width:500px;pointer-events:none}
.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid #e5e7eb;border-radius:.75rem;outline:0}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid #e5e7eb}
.modal-title{margin-bottom:0;line-height:1.5}
.modal-body{position:relative;flex:1 1 auto;padding:1rem}
.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:.75rem 1rem;border-top:1px solid #e5e7eb}
.modal-backdrop{position:fixed;top:0;left:0;z-index:1050;width:100vw;height:100vh;background-color:rgba(10,12,18,.5)}
body.modal-open{overflow:hidden}

/* bouton fermer (×) */
.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-width='1.6' d='M2 2l12 12M14 2L2 14'/%3E%3C/svg%3E") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5;cursor:pointer}
.btn-close:hover{opacity:.85}

/* spinner minimal (si utilisé) */
.spinner-border{display:inline-block;width:1.4rem;height:1.4rem;vertical-align:-.125em;border:.2em solid currentColor;border-right-color:transparent;border-radius:50%;animation:ds-spin .75s linear infinite}
@keyframes ds-spin{to{transform:rotate(360deg)}}
