/* ==========================================================================
   CARGO.HTML — feuille dédiée (refonte du 21/10/2026) : règles
   d'origine puis habillage « route de nuit ».
   ========================================================================== */


        /* ============ CARGAISONS — styles de la page ============ */
        .cargo-page { display: flex; flex-direction: column; gap: 16px; }

        .cargo-entete h1 { font-size: var(--font-5xl); font-weight: var(--font-weight-bold); color: var(--text-primary); }
        .cargo-entete h1 span { background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
        .cargo-entete p { color: var(--text-secondary); font-size: var(--font-md); margin-top: 6px; max-width: 900px; }

        .cargo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
        .cargo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: var(--font-sm); font-weight: 600; }
        .cargo-chip strong { color: var(--text-primary); }
        .cargo-chip .c-ico { font-size: 15px; }

        section.bloc { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px 20px; }
        section.bloc h2 { display: flex; align-items: center; gap: 8px; font-size: var(--font-lg); font-weight: var(--font-weight-bold); color: var(--text-primary); margin: 0 0 14px; }
        section.bloc h2 .hint { font-size: var(--font-xs); color: var(--text-muted); font-weight: 500; margin-left: auto; }

        /* --- filtres --- */
        .c-filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
        .c-champ { display: flex; flex-direction: column; gap: 6px; }
        .c-champ label { font-size: 11px; font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
        .c-champ input, .c-champ select {
            background: var(--bg-input); color: var(--text-primary);
            border: 1px solid var(--border-color); border-radius: var(--radius-sm);
            padding: 9px 11px; font-size: var(--font-md); font-family: inherit; width: 100%; box-sizing: border-box;
            transition: border-color .2s ease, box-shadow .2s ease;
        }
        .c-champ input:focus, .c-champ select:focus { outline: none; border-color: var(--accent-yellow); box-shadow: var(--focus-ring); }
        .c-champ input::placeholder { color: var(--text-muted); }
        .c-large { grid-column: span 2; }
        @media (max-width: 700px) { .c-large { grid-column: span 1; } }

        .c-competences { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
        .c-case {
            display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
            padding: 7px 12px; border-radius: 999px; font-size: var(--font-sm);
            background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary);
            transition: border-color .2s ease, color .2s ease;
        }
        .c-case:hover { border-color: var(--accent-yellow); }
        .c-case input { accent-color: var(--accent-yellow); }
        .c-case:has(input:checked) { border-color: var(--accent-yellow); color: var(--text-primary); background: rgba(var(--rgb-yellow), .08); }

        .c-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
        button.c-bouton {
            display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--radius-sm);
            border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-primary);
            font-size: var(--font-md); font-weight: var(--font-weight-semibold); cursor: pointer; font-family: inherit;
            transition: border-color .2s ease, color .2s ease;
        }
        button.c-bouton:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
        .c-compteur { margin-left: auto; font-size: var(--font-md); color: var(--text-secondary); font-weight: var(--font-weight-semibold); }

        /* --- tableau --- */
        .c-enveloppe { overflow: auto; max-height: 640px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
        table.c-table { width: 100%; border-collapse: collapse; font-size: var(--font-md); }
        table.c-table thead th {
            position: sticky; top: 0; z-index: 2;
            background: var(--bg-secondary); text-align: left; white-space: nowrap;
            padding: 11px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
            color: var(--text-muted); border-bottom: 1px solid var(--border-color);
        }
        table.c-table th[data-tri] { cursor: pointer; user-select: none; }
        table.c-table th[data-tri]:hover { color: var(--accent-blue); }
        table.c-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: top; color: var(--text-primary); }
        table.c-table tbody tr { transition: background .15s ease; cursor: pointer; }
        table.c-table tbody tr:hover { background: var(--bg-card-hover); }
        table.c-table tbody tr.c-selection { background: rgba(var(--rgb-yellow), .07); box-shadow: inset 3px 0 0 var(--accent-yellow); }
        table.c-table tbody tr:last-child td { border-bottom: none; }
        .c-nom { font-weight: var(--font-weight-semibold); }
        .c-valeur { color: var(--accent-yellow); font-variant-numeric: tabular-nums; font-weight: 600; }
        .c-remorques { color: var(--text-secondary); font-size: var(--font-sm); }
        .c-dlc { color: var(--text-secondary); font-size: var(--font-sm); }
        .c-nd { color: var(--text-muted); font-style: italic; }
        .c-note { color: var(--text-muted); font-size: var(--font-xs); }
        .c-vide { padding: 34px 16px; text-align: center; color: var(--text-muted); }

        .c-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; margin: 1px 3px 1px 0; border: 1px solid transparent; }
        .c-badge.adr { background: rgba(var(--rgb-red), .12); color: var(--accent-red); border-color: rgba(var(--rgb-red), .3); }
        .c-badge.fragile { background: rgba(var(--rgb-pink), .12); color: var(--accent-pink); border-color: rgba(var(--rgb-pink), .3); }
        .c-badge.lourd { background: rgba(var(--rgb-orange), .12); color: var(--accent-orange); border-color: rgba(var(--rgb-orange), .3); }
        .c-badge.valeur { background: rgba(var(--rgb-purple), .12); color: var(--accent-purple); border-color: rgba(var(--rgb-purple), .3); }
        .c-badge.dynamique { background: rgba(var(--rgb-blue), .12); color: var(--accent-blue); border-color: rgba(var(--rgb-blue), .3); }

        /* --- pagination --- */
        .c-pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .c-pagination .c-page-info { color: var(--text-secondary); font-size: var(--font-sm); }
        .c-pagination button { min-width: 38px; justify-content: center; }
        .c-pagination button:disabled { opacity: .45; cursor: not-allowed; }

        /* --- fiche --- */
        .c-fiche { margin-top: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px; }
        .c-fiche-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .c-fiche-entete h3 { font-size: var(--font-xl); font-weight: var(--font-weight-bold); color: var(--text-primary); margin: 0; }
        .c-fermer { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: var(--radius-sm); width: 32px; height: 32px; cursor: pointer; font-size: var(--font-md); }
        .c-fermer:hover { border-color: var(--accent-red); color: var(--accent-red); }
        .c-fiche-badges { margin: 10px 0 12px; }
        .c-fiche dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; font-size: var(--font-md); }
        .c-fiche dt { color: var(--text-muted); }
        .c-fiche dd { margin: 0; color: var(--text-primary); }
        .c-avert { margin: 12px 0 0; font-size: var(--font-sm); color: var(--accent-orange); }
        @media (max-width: 700px) { .c-fiche dl { grid-template-columns: 1fr; } }

        .c-source { font-size: var(--font-sm); color: var(--text-muted); line-height: 1.7; }
        .c-source a { color: var(--accent-blue); }
        .c-legende { font-size: var(--font-xs); color: var(--text-muted); margin: 10px 0 0; line-height: 1.6; }
        .c-legende code { background: var(--bg-input); padding: 1px 6px; border-radius: 4px; }
    
.page-header h1, h1 { font-family: 'Barlow Condensed','Inter',sans-serif; text-transform: uppercase; font-weight: 800; color: var(--text-primary); }
.card, .cargo-card, section { border-radius: var(--radius-xl); border-color: rgba(var(--rgb-white), .07); }
input, select { border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-primary); }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--accent-ambre); box-shadow: var(--focus-ring); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
