/*
 * Bootstrap 5 → 3.4.1 Compatibility Layer
 * ========================================
 * Fournit les classes utilitaires BS5 absentes de BS3.
 * Chargé après bootstrap.min.css (BS3.4.1).
 */

/* ==========================================================================
   NAVBAR COMPAT — nav-item / nav-link sur la navbar BS3
   ========================================================================== */
.navbar-nav > .nav-item { display: block; }
.navbar-nav > .nav-item > .nav-link {
    display: block;
    padding: 10px 15px;
    color: #777;
    text-decoration: none;
}
.navbar-nav > .nav-item > .nav-link:hover,
.navbar-nav > .nav-item > .nav-link:focus {
    color: #333;
    background-color: transparent;
}
.navbar-nav > .nav-item.active > .nav-link { color: #555; background-color: #e7e7e7; }

/* ==========================================================================
   INPUT-GROUP COMPAT — bouton direct dans .input-group (sans .input-group-btn)
   ========================================================================== */
.input-group > .btn {
    position: relative;
    z-index: 2;
    border-radius: 0 4px 4px 0;
}
.input-group > .form-control + .btn {
    margin-left: -1px;
}

/* ==========================================================================
   DISPLAY UTILITIES
   ========================================================================== */
.d-none            { display: none !important; }
.d-inline          { display: inline !important; }
.d-inline-block    { display: inline-block !important; }
.d-block           { display: block !important; }
.d-flex            { display: flex !important; }
.d-inline-flex     { display: inline-flex !important; }
.d-grid            { display: grid !important; }

/* responsive sm (≥768px) */
@media (min-width: 768px) {
    .d-sm-none         { display: none !important; }
    .d-sm-inline       { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-block        { display: block !important; }
    .d-sm-flex         { display: flex !important; }
    .d-sm-inline-flex  { display: inline-flex !important; }
}
/* responsive md (≥992px) */
@media (min-width: 992px) {
    .d-md-none         { display: none !important; }
    .d-md-inline       { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block        { display: block !important; }
    .d-md-flex         { display: flex !important; }
    .d-md-inline-flex  { display: inline-flex !important; }
}
/* responsive lg (≥1200px) */
@media (min-width: 1200px) {
    .d-lg-none         { display: none !important; }
    .d-lg-block        { display: block !important; }
    .d-lg-flex         { display: flex !important; }
    .d-lg-inline-flex  { display: inline-flex !important; }
}

/* ==========================================================================
   FLEXBOX UTILITIES
   ========================================================================== */
.flex-row             { flex-direction: row !important; }
.flex-column          { flex-direction: column !important; }
.flex-row-reverse     { flex-direction: row-reverse !important; }
.flex-column-reverse  { flex-direction: column-reverse !important; }
.flex-wrap            { flex-wrap: wrap !important; }
.flex-nowrap          { flex-wrap: nowrap !important; }
.flex-fill            { flex: 1 1 auto !important; }
.flex-grow-0          { flex-grow: 0 !important; }
.flex-grow-1          { flex-grow: 1 !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-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !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-end      { align-items: flex-end !important; }
.align-items-center   { align-items: center !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-end       { align-self: flex-end !important; }
.align-self-center    { align-self: center !important; }
.align-self-stretch   { align-self: stretch !important; }

/* ==========================================================================
   GAP UTILITIES
   ========================================================================== */
.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 — MARGIN  (0 = 0, 1 = .25rem, 2 = .5rem, 3 = 1rem, 4 = 1.5rem, 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-* = margin-start (left en LTR),  ml-* alias */
.ms-0, .ml-0 { margin-left: 0 !important; }
.ms-1, .ml-1 { margin-left: .25rem !important; }
.ms-2, .ml-2 { margin-left: .5rem !important; }
.ms-3, .ml-3 { margin-left: 1rem !important; }
.ms-4, .ml-4 { margin-left: 1.5rem !important; }
.ms-5, .ml-5 { margin-left: 3rem !important; }
.ms-auto, .ml-auto { margin-left: auto !important; }

/* me-* = margin-end (right en LTR),  mr-* alias */
.me-0, .mr-0 { margin-right: 0 !important; }
.me-1, .mr-1 { margin-right: .25rem !important; }
.me-2, .mr-2 { margin-right: .5rem !important; }
.me-3, .mr-3 { margin-right: 1rem !important; }
.me-4, .mr-4 { margin-right: 1.5rem !important; }
.me-5, .mr-5 { margin-right: 3rem !important; }
.me-auto, .mr-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-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !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; }

/* ==========================================================================
   SPACING — PADDING
   ========================================================================== */
.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, .pl-0 { padding-left: 0 !important; }
.ps-1, .pl-1 { padding-left: .25rem !important; }
.ps-2, .pl-2 { padding-left: .5rem !important; }
.ps-3, .pl-3 { padding-left: 1rem !important; }
.ps-4, .pl-4 { padding-left: 1.5rem !important; }
.ps-5, .pl-5 { padding-left: 3rem !important; }

.pe-0, .pr-0 { padding-right: 0 !important; }
.pe-1, .pr-1 { padding-right: .25rem !important; }
.pe-2, .pr-2 { padding-right: .5rem !important; }
.pe-3, .pr-3 { padding-right: 1rem !important; }
.pe-4, .pr-4 { padding-right: 1.5rem !important; }
.pe-5, .pr-5 { padding-right: 3rem !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; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !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; }

/* ==========================================================================
   TEXT UTILITIES
   ========================================================================== */
.text-start          { text-align: left !important; }
.text-end            { text-align: right !important; }
/* text-center already exists in BS3 */

.fw-bold             { font-weight: 700 !important; }
.fw-bolder           { font-weight: bolder !important; }
.fw-semibold         { font-weight: 600 !important; }
.fw-normal           { font-weight: 400 !important; }
.fw-light            { font-weight: 300 !important; }
.fst-italic          { font-style: italic !important; }
.fst-normal          { font-style: normal !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.text-decoration-none      { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.lh-1  { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.5 !important; }
.lh-lg { line-height: 2 !important; }

/* ==========================================================================
   TEXT COLORS (BS5 noms)
   ========================================================================== */
/* text-muted, text-primary, text-success, text-info, text-warning, text-danger exist in BS3 */
.text-dark       { color: #333 !important; }
.text-light      { color: #777 !important; }
.text-white      { color: #fff !important; }
.text-white-50   { color: rgba(255,255,255,.5) !important; }
.text-black-50   { color: rgba(0,0,0,.5) !important; }
.text-body       { color: #333 !important; }
.text-secondary  { color: #777 !important; }
.text-opacity-25 { opacity: .25; }
.text-opacity-50 { opacity: .5; }
.text-opacity-75 { opacity: .75; }

/* ==========================================================================
   BACKGROUND COLORS
   ========================================================================== */
.bg-primary    { background-color: #337ab7 !important; }
.bg-success    { background-color: #dff0d8 !important; }
.bg-info       { background-color: #d9edf7 !important; }
.bg-warning    { background-color: #fcf8e3 !important; }
.bg-danger     { background-color: #f2dede !important; }
.bg-white      { background-color: #fff !important; }
.bg-light      { background-color: #f5f5f5 !important; }
.bg-dark       { background-color: #333 !important; }
.bg-transparent { background-color: transparent !important; }
.bg-body       { background-color: #fff !important; }

/* ==========================================================================
   BORDER UTILITIES
   ========================================================================== */
.border        { border: 1px solid #ddd !important; }
.border-0      { border: 0 !important; }
.border-top    { border-top: 1px solid #ddd !important; }
.border-bottom { border-bottom: 1px solid #ddd !important; }
.border-start, .border-left  { border-left: 1px solid #ddd !important; }
.border-end,   .border-right { border-right: 1px solid #ddd !important; }

.border-primary { border-color: #337ab7 !important; }
.border-success { border-color: #3c763d !important; }
.border-danger  { border-color: #a94442 !important; }

.rounded       { border-radius: 4px !important; }
.rounded-0     { border-radius: 0 !important; }
.rounded-1     { border-radius: 2px !important; }
.rounded-2     { border-radius: 4px !important; }
.rounded-3     { border-radius: 6px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill  { border-radius: 50rem !important; }
.rounded-top   { border-radius: 4px 4px 0 0 !important; }
.rounded-bottom { border-radius: 0 0 4px 4px !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; }
.h-100  { height: 100% !important; }
.h-auto { height: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }
.vw-100 { width: 100vw !important; }
.vh-100 { height: 100vh !important; }

/* ==========================================================================
   POSITION UTILITIES
   ========================================================================== */
.position-static   { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }

.top-0     { top: 0 !important; }
.top-50    { top: 50% !important; }
.top-100   { top: 100% !important; }
.bottom-0  { bottom: 0 !important; }
.start-0   { left: 0 !important; }
.start-50  { left: 50% !important; }
.start-100 { left: 100% !important; }
.end-0     { right: 0 !important; }

.translate-middle   { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }

/* ==========================================================================
   OVERFLOW
   ========================================================================== */
.overflow-auto    { overflow: auto !important; }
.overflow-hidden  { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll  { overflow: scroll !important; }

/* ==========================================================================
   OPACITY
   ========================================================================== */
.opacity-0   { opacity: 0 !important; }
.opacity-25  { opacity: .25 !important; }
.opacity-50  { opacity: .5 !important; }
.opacity-75  { opacity: .75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ==========================================================================
   VISIBILITY
   ========================================================================== */
.visible  { visibility: visible !important; }
.invisible { visibility: hidden !important; }
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   SHADOW
   ========================================================================== */
.shadow-sm   { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow       { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg   { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.shadow-none { box-shadow: none !important; }
.box-shadow  { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }

/* ==========================================================================
   DISPLAY HEADINGS
   ========================================================================== */
.display-1 { font-size: 6rem;   font-weight: 300; line-height: 1.2; }
.display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.2; }
.display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.display-5 { font-size: 3rem;   font-weight: 300; line-height: 1.2; }
.display-6 { font-size: 2.5rem; font-weight: 300; line-height: 1.2; }

/* ==========================================================================
   BUTTONS — btn-light (≈ btn-default BS3)
   ========================================================================== */
.btn-light {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
.btn-light:hover, .btn-light:focus, .btn-light:active, .btn-light.active {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

/* ==========================================================================
   BUTTONS — btn-outline-*
   ========================================================================== */
.btn-outline-primary {
    color: #337ab7; background-color: transparent; border-color: #337ab7;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    color: #fff; background-color: #337ab7; border-color: #337ab7;
}

.btn-outline-secondary {
    color: #777; background-color: transparent; border-color: #ccc;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active {
    color: #333; background-color: #e6e6e6; border-color: #adadad;
}

.btn-outline-success {
    color: #3c763d; background-color: transparent; border-color: #3c763d;
}
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
    color: #fff; background-color: #3c763d; border-color: #3c763d;
}

.btn-outline-danger {
    color: #a94442; background-color: transparent; border-color: #a94442;
}
.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active {
    color: #fff; background-color: #a94442; border-color: #a94442;
}

.btn-outline-warning {
    color: #8a6d3b; background-color: transparent; border-color: #8a6d3b;
}
.btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active {
    color: #fff; background-color: #8a6d3b; border-color: #8a6d3b;
}

.btn-outline-info {
    color: #31708f; background-color: transparent; border-color: #31708f;
}
.btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active {
    color: #fff; background-color: #31708f; border-color: #31708f;
}

/* ==========================================================================
   CARDS (composant BS5 → simulé sur BS3)
   ========================================================================== */
.card {
    position: relative;
    display: block;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.card-body {
    padding: 15px;
}
.card-header {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 3px 3px 0 0;
}
.card-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-radius: 0 0 3px 3px;
}
.card-title    { margin-top: 0; margin-bottom: 10px; }
.card-subtitle { margin-top: -5px; margin-bottom: 0; color: #777; }
.card-text:last-child { margin-bottom: 0; }
.card-img-top  { border-radius: 3px 3px 0 0; width: 100%; }
.card-img-bottom { border-radius: 0 0 3px 3px; width: 100%; }

/* Variantes de couleur (text-bg-*) */
.card.text-bg-primary,
.text-bg-primary {
    background-color: #337ab7 !important;
    color: #fff !important;
}
.text-bg-primary .card-header { background-color: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); color: #fff; }

.card.text-bg-success,
.text-bg-success {
    background-color: #5cb85c !important;
    color: #fff !important;
}
.text-bg-success .card-header { background-color: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); color: #fff; }

.card.text-bg-info,
.text-bg-info {
    background-color: #5bc0de !important;
    color: #fff !important;
}
.text-bg-info .card-header { background-color: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); color: #fff; }

.card.text-bg-warning,
.text-bg-warning {
    background-color: #f0ad4e !important;
    color: #fff !important;
}
.text-bg-warning .card-header { background-color: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); color: #fff; }

.card.text-bg-danger,
.text-bg-danger {
    background-color: #d9534f !important;
    color: #fff !important;
}
.text-bg-danger .card-header { background-color: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); color: #fff; }

/* ==========================================================================
   BADGES — BS5 badge + bg-* couleurs
   BS3 .badge est gris par défaut ; on ajoute les variantes colorées.
   ========================================================================== */
.badge.bg-primary   { background-color: #337ab7 !important; color: #fff !important; }
.badge.bg-success   { background-color: #5cb85c !important; color: #fff !important; }
.badge.bg-info      { background-color: #5bc0de !important; color: #fff !important; }
.badge.bg-warning   { background-color: #f0ad4e !important; color: #fff !important; }
.badge.bg-danger    { background-color: #d9534f !important; color: #fff !important; }
.badge.bg-secondary { background-color: #777 !important; color: #fff !important; }
.badge.bg-dark      { background-color: #333 !important; color: #fff !important; }
.badge.bg-light     { background-color: #f5f5f5 !important; color: #333 !important; }
.badge.text-dark    { color: #333 !important; }

/* ==========================================================================
   FORMS — BS5 noms
   ========================================================================== */
.form-select {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-select:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}
.form-select-sm {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
}
.form-select-lg {
    height: 46px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
}
.form-label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}
.form-text {
    display: block;
    margin-top: 5px;
    color: #737373;
}
.form-check           { position: relative; display: block; padding-left: 20px; margin-bottom: 10px; }
.form-check-input     { position: absolute; margin-left: -20px; margin-top: 4px; }
.form-check-label     { margin-bottom: 0; font-weight: 400; cursor: pointer; }
.form-check-inline    { display: inline-block; margin-right: 10px; }

/* d-grid > .btn  (BS5 : bouton pleine largeur) */
.d-grid > .btn { width: 100%; }

/* ==========================================================================
   TABLES — BS5 ajouts
   ========================================================================== */
.table-sm th,
.table-sm td {
    padding: 5px !important;
}
thead.table-light > tr > th,
.table-light > th,
.table-light > td {
    background-color: #f5f5f5;
}
/* table-hover, table-striped, table-responsive existent déjà en BS3 */

/* ==========================================================================
   GRID — BS5 gutters (g-*) et col-auto
   ========================================================================== */
.row.g-0 > [class*="col"] { padding-left: 0; padding-right: 0; }
.row.g-0 { margin-left: 0; margin-right: 0; }
.row.g-1 > [class*="col"] { padding-left: 2px; padding-right: 2px; }
.row.g-1 { margin-left: -2px; margin-right: -2px; }
.row.g-2 > [class*="col"] { padding-left: 6px; padding-right: 6px; }
.row.g-2 { margin-left: -6px; margin-right: -6px; }
.row.g-3 > [class*="col"] { padding-left: 8px; padding-right: 8px; }
.row.g-3 { margin-left: -8px; margin-right: -8px; }
.row.g-4 > [class*="col"] { padding-left: 12px; padding-right: 12px; }
.row.g-4 { margin-left: -12px; margin-right: -12px; }

.col-auto {
    float: left;
    width: auto;
}

/* ==========================================================================
   POINTER / USER-SELECT
   ========================================================================== */
.pe-none  { pointer-events: none !important; }
.pe-auto  { pointer-events: auto !important; }
.user-select-none { user-select: none !important; -webkit-user-select: none !important; }
.user-select-all  { user-select: all !important; -webkit-user-select: all !important; }
.cursor-pointer   { cursor: pointer !important; }

/* ==========================================================================
   FLOAT (BS5 noms)
   ========================================================================== */
/* float-start/float-end sont les noms BS5 ; pull-left/pull-right existent en BS3 */
.float-start { float: left !important; }
.float-end   { float: right !important; }
.float-none  { float: none !important; }
.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* ==========================================================================
   BTN-SM / BTN-CLOSE (BS5 ajouts)
   ========================================================================== */
/* btn-sm, btn-lg, btn-xs existent en BS3 */
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .25rem;
    opacity: .5;
    cursor: pointer;
}
.btn-close:hover { opacity: .75; }

/* ==========================================================================
   OBJECT-FIT (BS5 utility)
   ========================================================================== */
.object-fit-contain { object-fit: contain !important; }
.object-fit-cover   { object-fit: cover !important; }
.object-fit-fill    { object-fit: fill !important; }
.object-fit-none    { object-fit: none !important; }
