@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #96be25;
    --green-light: #b8d149;

    --green-dim: #4a7000;
    --blue: #2596BE;
    --blue-light: #f7f7f7;
    --red: #d149b8;
    --red-light: #fdf0ee;

    --ink: #1a1f14;
    --ink-mid: #4a5240;
    --ink-soft: #8a9282;
    --line: #f7f7f7;
    --bg: #fff;
    --surface: #ffffff;

    --r: 8px;
    --r-sm: 5px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
}

/* ─── BASE ─────────────────────────────────────────── */
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
}

/* ─── LAYOUT ────────────────────────────────────────── */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
}

/* ─── HEADER ────────────────────────────────────────── */
.header {
    background: var(--surface);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* position: sticky; */
    top: 0;
    z-index: 100;
    position: relative;
}

.logo {
    font-family: 'DM Mono', monospace;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1em;
    letter-spacing: .04em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.page_index .header .fa-check,
.page_login .header .fa-check {
    opacity: 0;
    /* Cachée par défaut */
    transform: scale(0.5);
    animation: bounceIn 0.6s ease-out 1s forwards;
    /* 0.6s = durée de l'animation, 3s = délai avant démarrage */
}

.header .fa-check {
    /* color: #96be24; */
    position: absolute;
    font-size: 7em;
    left: -20px;
    top: -35px;

}

.fa-big {
    font-size: 1.8em;
}



.logo .fa-check {
    font-size: 1rem;
    color: var(--green);
    position: static;
}

.header_connecte {
    font-size: .75rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    float: right;
    margin-top: -15px;
    z-index: 999;
    position: relative;
}

.header h1 {
    /* color: #58595A; */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    /* position: absolute; */
    font-family: 'DM Mono', monospace;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1em;
    letter-spacing: .04em;
    top: 3px;
    right: 3px;
    left: 3px;
    text-align: center;
    position: absolute;
}

.liste-topbar {
    position: relative;
    padding-top: 30px;
}

.liste-topbar a {
    color: #000;
    font-size: 2.3rem;
    margin-top: -42px;
    margin-left: -5px;
    position: absolute;
}

.container_btn_duplicate {
    margin-right: 2px;
}

.liste-topbar h2 {
    margin-top: 3px;
    margin-bottom: 0;
    clear: both;
}

/* Animation logo sur pages index/login */
.page_index .logo .fa-check,
.page_login .logo .fa-check {
    opacity: 0;
    transform: scale(0.5);
    animation: bounceIn 0.5s ease-out .8s forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1.15);
    }

    80% {
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ─── NAV ───────────────────────────────────────────── */
.nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px 0;
    max-width: 680px;
    margin: 0 auto;
}

/* ─── CONTENT AREA ──────────────────────────────────── */
.content-area {
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    margin-top: 14px;
    margin-bottom: 40px;
    position: relative;
}

/* ─── BUTTONS ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: background .15s, transform .1s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn:active {
    background: var(--green-dim);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--blue);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: #155d8f;
    color: #fff;
}

.btn-danger {
    background: var(--red);
}

.btn-danger:hover {
    background: #a93226;
}

.btn-ghost {
    background: transparent;
    color: var(--ink-mid);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: var(--bg);
    color: var(--ink);
}

.btn-mini {
    padding: 5px 10px;
    font-size: .78rem;
}

.btn-small {
    padding: 6px 10px;
    font-size: .8rem;
}

.btn:disabled {
    background: var(--line);
    color: var(--ink-soft);
    cursor: not-allowed;
    transform: none;
}

.btn-icone {
    padding: 5px 10px;

}

.btn-icone i {
    font-size: 1.3rem;
}

/* ─── FORMS ─────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin-bottom: 5px;
}

.form-control {
    /* width: 100%; */
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    color: var(--ink);
    transition: border-color .15s;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 160px;
}

/* ─── FORM PANEL (création/édition) ─────────────────── */
.form-panel {
    background: var(--green-light);
    border: 1px solid #c8dda0;
    border-radius: var(--r);
    padding: 16px;
    margin-bottom: 18px;
}

.form-panel h3 {
    color: var(--green-dim);
    font-size: .9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* ─── LISTES ─────────────────────────────────────────── */
.section-title {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-soft);
    padding: 0 2px;
    margin: 22px 0 8px;
}

.section-title:first-child {
    margin-top: 0;
}

/* Liste simple (pas de grille) */
.list-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.list-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
}

.list-row:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.list-row-link {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}


.list-row-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-row:hover .list-row-title {
    color: var(--green);
}

.list-row-meta {
    font-size: .75rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Tag activité */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .9rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--green-light);
    color: var(--green-dim);
    border: 1px solid #c8dda0;
}

.icone_modele:before {
    content: '';
    position: relative;
    width: 30px;
    height: 30px;

    display: inline-block;
    background-image: url(/blog/wp-content/uploads/2025/09/ma-checklist-rando-fonce-favicon-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    /* margin-top: -5px; */
    margin-right: 5px;
    float: left;

}



/* ─── MODÈLES ────────────────────────────────────────── */
.model-row {
    border-left: 3px solid var(--blue);
    /* background: var(--blue-light);
    border-color: var(--blue); */
}

.model-row:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.model-row .list-row-title {}

.model-row:hover .list-row-title {
    color: #155d8f;
}

.model-row .tag {
    background: #d6eaf8;
    color: var(--blue);
    border-color: #aed6f1;
}

/* CTA connexion */
.cta-login {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 16px;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-mid);
    margin-top: 18px;
    line-height: 1.6;
}

.cta-login a {
    color: var(--blue);
    font-weight: 500;
    color: white;
}

/* ─── MESSAGES ───────────────────────────────────────── */
.success-msg {
    background: var(--green-light);
    color: var(--green-dim);
    padding: 12px 14px;
    border-radius: var(--r-sm);
    margin: 12px 0 22px 0;
    border-left: 3px solid var(--green);
    font-size: .85rem;
}

.error-msg {
    background: var(--red-light);
    color: var(--red);
    padding: 12px 14px;
    border-radius: var(--r-sm);
    margin: 12px 0;
    border-left: 3px solid var(--red);
    font-size: .85rem;
}

/* ─── CHECKLIST ITEMS ────────────────────────────────── */
.object-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 3px 0;
    border-radius: var(--r-sm);
    background: var(--bg);
    border: 1px solid var(--line);
    transition: background .15s;
}

.object-item:hover {
    background: var(--green-light);
}

.object-item.checked {
    /* background: var(--line); */
    color: var(--ink-soft);
    opacity: .6;
}

.object-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 5px;
}

.category-title {
    background: var(--green);
    color: white;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ─── CARDS (admin / objets) ─────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px;
    transition: border-color .15s, box-shadow .15s;
}

.card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 16px;
}

/* ─── FILTRES ────────────────────────────────────────── */
.filter-controls,
.filter-controls-mobile {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}


.filter-controls-mobile {
    display: flex;
    justify-content: center;
    position: fixed;
    flex-wrap: nowrap;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    /* backdrop-filter: blur(10px); */
    padding-top: 5px;
    margin-top: 10px;
    margin-bottom: 0;
    -webkit-box-shadow: 0px -5px 7px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px -5px 7px 0px rgba(0, 0, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--green);
}


/* ─── PROGRESS ───────────────────────────────────────── */
.progress-bar {
    background: var(--line);
    border-radius: 6px;
    border: 1px solid var(--ink-soft);
    height: 6px;
    margin: 10px 0;

}

/* #progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: var(--line);
} */
#container_progress {
    overflow: hidden;
    position: relative;
}

#container_progress.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 800px;
    margin: auto;
    max-width: 98%;
    height: 8px;
    margin-top: 3px;
    padding: 5px 3px;
    background: rgba(255, 255, 255, .8);

}

#progress-compteur {
    font-weight: bold;
}

.progress-fill {
    background: var(--red);
    height: 100%;
    border-radius: 6px;
    transition: width .3s ease;
}

.stats {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green);
    display: block;
    font-family: 'DM Mono', monospace;
}

.stat-label {
    font-size: .75rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* ─── SEARCH / SUGGESTIONS ───────────────────────────── */
.search-box {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--green);
    border-top: none;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    transition: background .12s;
}

.suggestion-item:hover {
    background: var(--green-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* ─── DRAG & DROP ────────────────────────────────────── */
.drag-handle {
    cursor: grab;
    color: var(--line);
    padding: 4px 6px;
    user-select: none;
    transition: color .15s;
    flex-shrink: 0;
}

.drag-handle:hover {
    color: var(--green);
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: .4;
    background: var(--green-light) !important;
    border: 2px dashed var(--green) !important;
}

.sortable-chosen {
    background: var(--green-light) !important;
    border: 2px solid var(--green) !important;
}

.sortable-drag {
    background: var(--surface) !important;
    border: 2px solid var(--green) !important;
    transform: rotate(1.5deg) !important;
    box-shadow: var(--shadow) !important;
}

.sortable-category {
    min-height: 0;
    padding: 2px 0;
    margin-bottom: 16px;
}

.sortable-item {
    transition: transform .15s;
}

.sortable-item:hover {
    transform: translateY(-1px);
}

/* ─── MODAL ──────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: var(--surface);
    margin: 4% auto;
    padding: 24px;
    border-radius: var(--r);
    width: 92%;
    max-width: 680px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.close {
    color: var(--ink-soft);
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 16px;
    transition: color .15s;
}

.close:hover {
    color: var(--ink);
}

/* ─── INFO MODAL ─────────────────────────────────────── */
.info-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    animation: fadeIn .2s ease-out;
}

.info-modal-content {
    background: var(--surface);
    margin: 6% auto;
    padding: 0;
    border-radius: var(--r);
    width: 92%;
    max-width: 660px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    animation: slideIn .25s ease-out;
}

.info-modal-header {
    background: var(--blue);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.info-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, .8);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.info-modal-body {
    padding: 18px;
    max-height: 62vh;
    overflow-y: auto;
    line-height: 1.65;
    font-size: .88rem;
}

.info-empty {
    color: var(--ink-soft);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.info-modal-body h1,
.info-modal-body h2,
.info-modal-body h3 {
    color: var(--ink);
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.info-modal-body p {
    margin-bottom: .8rem;
}

.info-modal-body ul,
.info-modal-body ol {
    padding-left: 1.4rem;
    margin-bottom: .8rem;
}

.info-modal-body a {
    color: var(--blue);
    text-decoration: underline;
}

/* ─── MASONRY (admin objets) ─────────────────────────── */
.page_liste_detail #objets-container,
.page_liste_detail_modele #objets-container {
    column-count: 2;
    column-gap: 14px;
    display: block;
    /* annule le grid */
}

.page_liste_detail_modele {
    padding-bottom: 35px;
}

.page_liste_detail .container_category,
.page_liste_detail_modele .container_category {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    /* force le flux masonry correct */
    width: 100%;
    margin-top: 12px;
}

/* Items plus compacts dans la liste */
.page_liste_detail .object-item,
.page_liste_detail_modele .object-item {
    padding: 6px 10px;
    gap: 8px;
}

.page_liste_detail .object-item input[type="checkbox"],
.page_liste_detail_modele .object-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.page_liste_detail .category-title,
.page_liste_detail_modele .category-title {
    padding: 6px 10px;
    font-size: 1rem;
    margin-bottom: 4px;
}

.page_liste_detail .sortable-category,
.page_liste_detail_modele .sortable-category {
    margin-bottom: 0;
}

/* Bouton retrait (×) discret */
.object-item .btn-remove {
    margin-left: auto;
    background: transparent;
    color: var(--ink-soft);
    border: none;
    padding: 2px 5px;
    font-size: .75rem;
    cursor: pointer;
    border-radius: 3px;
    transition: color .15s, background .15s;
    flex-shrink: 0;
    line-height: 1;
}

.object-item .btn-remove:hover {
    color: var(--red);
    background: var(--red-light);
}

/* Bouton info discret */
.btn-info-modal {
    background: transparent !important;
    color: var(--blue) !important;
    border: 1px solid var(--blue) !important;
    padding: 2px 6px !important;
    font-size: .92rem !important;
    flex-shrink: 0;
    line-height: 1.4;
}

.btn_duplicate {}

.btn-info-modal:hover {
    background: var(--blue-light) !important;
}

/* ─── FORM Nouvelle liste ───────────────────────────────────────────── */

.form_new_list input,
.form_new_list select {
    width: 100%;
}

/* ─── MISC ───────────────────────────────────────────── */
.est_hidden {
    display: none !important;
}

.slogan {
    max-width: 80%;
    margin: auto auto 16px;
    text-align: center;
    font-size: .9rem;
    color: var(--ink-mid);
}

.titre_liste {
    text-decoration: none;
    color: var(--green);
    display: inline-block;
    width: 100%;
    text-align: center;


    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-tag {
    background: var(--bg);
    color: var(--ink-mid);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: .72rem;
    border: 1px solid var(--line);
}

/* Login / register */
.login-form,
.register-form {
    max-width: 380px;
    margin: 0 auto;
}

.login-form input {
    width: 100%;
}

/* ─── IMPRESSION ─────────────────────────────────────── */
#impression {
    position: fixed;
    right: 5px;
    top: 5px;
    cursor: pointer;
    z-index: 9;
    font-size: .8em;
}

#btn-install {
    display: none;
    color: #fff;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 800px) {
    .list-row-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 0;
    }
}

@media (max-width: 600px) {

    #btn-install {

        /* display: block; */
        position: fixed;
        right: 5px;
        bottom: 50px;
        z-index: 9999999;
        padding: 10px;

        border-radius: 8px;
        background: var(--green-light);
    }

    #btn-install:hover {
        background: var(--green);
    }

    .page_liste_detail .object-item,
    .page_liste_detail_modele .object-item {
        padding: 10px;

    }

    #filter-category-mobile {
        display: none;
    }

    .object-name {
        font-size: 1.3em;
        line-height: 1.15em;
    }



    .header .fa-check {
        /* font-size: 2em;
        left: 10px;
        top: 0px; */
        display: none;
    }

    .container {
        padding: 10px;
    }

    .content-area {
        padding: 14px;
        padding-bottom: 60px;
    }

    .nav-buttons {
        padding: 10px 10px 0;
        gap: 6px;
    }

    .page_liste_detail #objets-container,
    .page_liste_detail_modele #objets-container {
        column-count: 1;
    }

    .container_category {
        min-width: auto;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        min-width: 100%;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 8px 13px;
        font-size: .82rem;
    }

    .btn-small {
        padding: 7px 11px;
        font-size: .8rem;
    }

    #impression {
        display: none;
    }

    .object-item input[type="checkbox"] {
        width: 26px;
        height: 26px;
    }

    .filter-controls {
        display: none;
    }

    .filter-controls-mobile {
        display: flex;
    }

    .modal-content {
        margin: 8% auto;
        padding: 18px;
    }

    .info-modal-content {
        margin: 8% auto;
    }

    .header {
        padding: 20px 12px 10px 12px;
    }




    .logo {
        font-size: .82rem;
    }

    .list-row {
        padding: 11px 12px;
    }

    /* .list-row-title {
        font-size: .9rem;
    } */
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── TABLE (admin) ──────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: .85rem;
}

.table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--ink-mid);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .72rem;
}

.table tr:hover {
    background: var(--bg);
}

/* sortable items in objets.php */
.sortable-item.card {
    padding: 10px;
    margin-bottom: 6px;
}

.sortable-item .ordre-display {
    font-size: .72rem;
    color: var(--ink-soft);
}

.sortable-item h4 {
    margin-bottom: 2px;
    font-size: .9rem;
}

.sortable-item p {
    margin-bottom: 0;
    line-height: 1.2;
}

.modal-objet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
}

.modal-objet-item:last-child {
    border-bottom: none;
}

.modal-objet-item:hover {
    background: var(--green-light);
}

.modal-objet-item.selected {
    background: var(--green-light);
}

.modal-objet-item .toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
    color: var(--ink-soft);
    transition: all .15s;
}

.modal-objet-item.selected .toggle-icon {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.modal-objet-item .objet-cat-hint {
    font-size: .72rem;
    color: var(--ink-soft);
    margin-left: auto;
    white-space: nowrap;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-soft);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* .accordion-header.cat-courante {
    color: var(--green-dim);
    background: var(--green-light);
} */

.accordion-header {

    background: var(--blue-light);
    border-bottom: 1px solid #fff;

}

.accordion-header:hover {
    background: #eaeaea;
}

.accordion-arrow {
    font-size: .8rem;
    width: 12px;
    flex-shrink: 0;
}

.accordion-cat-nom {
    flex: 1;
}

.accordion-count {
    font-size: .72rem;
    color: var(--ink-soft);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.accordion-sel-badge {
    background: var(--green);
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: .68rem;
    font-weight: 600;
}

.accordion-body {
    overflow: hidden;
}

.accordion-body.collapsed {
    display: none;
}