/* ==========================================================================
   CHANGELOG.HTML — feuille dédiée (refonte du 21/10/2026).
   ========================================================================== */


        .logout-btn { transition: all 0.3s ease; }
        .page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
        .page-header .header-left h1 { font-size: var(--font-5xl); font-weight: 800; color: var(--text-primary); }
        .page-header .header-left h1 span {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .page-header .header-left p { color: var(--text-secondary); font-size: var(--font-base); }
        .changelog-meta { font-size: var(--font-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

        .nouveautes { display: flex; flex-direction: column; gap: 16px; }
        .nouveaute {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--accent-blue);
            border-radius: var(--radius-md);
            padding: 18px 20px;
        }
        .nouveaute-entete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
        .nouveaute-version {
            font-size: var(--font-md);
            font-weight: var(--font-weight-bold);
            color: var(--accent-blue);
            background: rgba(var(--rgb-blue), 0.12);
            border-radius: var(--radius-sm);
            padding: 3px 10px;
        }
        .nouveaute-type {
            font-size: var(--font-sm);
            font-weight: var(--font-weight-semibold);
            color: var(--text-secondary);
            background: rgba(var(--rgb-white), 0.05);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 3px 10px;
        }
        .nouveaute-date { margin-left: auto; font-size: var(--font-sm); color: var(--text-muted); }
        .nouveaute-titre { font-size: var(--font-xl); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 8px; }
        .nouveaute-corps { font-size: var(--font-base); color: var(--text-secondary); white-space: pre-line; }
        .nouveaute-auteur { margin-top: 10px; font-size: var(--font-xs); color: var(--text-muted); }

        .etat-vide {
            background: var(--bg-card);
            border: 1px dashed var(--border-color);
            border-radius: var(--radius-md);
            padding: 44px 22px;
            text-align: center;
        }
        .etat-vide .icone { font-size: var(--font-7xl); display: block; margin-bottom: 12px; }
        .etat-vide .titre { font-size: var(--font-xl); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 6px; }
        .etat-vide .detail { font-size: var(--font-md); color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

        @media (max-width: 640px) {
            .page-header .header-left h1 { font-size: var(--font-3xl); }
            .nouveaute-date { margin-left: 0; width: 100%; }
        }
        /* ============ LOT 4 : LISIBILITÉ ET FINITIONS ============ */
        /* Mesure de lecture : le corps d'une nouveauté occupe toute la largeur de
           la page sur un grand écran. On le borne à 67ch, environ 80 caractères
           (voir rapport). */
        .nouveaute-corps { max-width: 67ch; line-height: 1.75; }
        .nouveaute { transition: box-shadow var(--transition-base); }
        .nouveaute:hover { box-shadow: var(--shadow-md); }
        .nouveaute-titre { line-height: 1.35; }
        .etat-vide { box-shadow: var(--shadow-sm); }
        /* La page n'a pas de contrôle interactif propre : sa barre latérale est
           générée par hub-sidebar.js. On rend explicite le bouton qu'elle porte. */
        .logout-btn:focus-visible {
            outline: var(--focus-ring-outline);
            outline-offset: 2px;
        }
        .nouveaute-date, .changelog-meta { letter-spacing: 0.5px; }

        /* ============ FILTRES ET COULEURS DE TYPE ============ */
        .changelog-filtres {
            display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: var(--radius-lg); padding: 10px 12px; margin-bottom: 16px;
            position: sticky; top: 8px; z-index: 5;
        }
        .changelog-types { display: flex; flex-wrap: wrap; gap: 6px; }
        .type-chip {
            padding: 6px 12px; border-radius: 999px; cursor: pointer;
            background: var(--bg-input); border: 1px solid var(--border-color);
            color: var(--text-secondary); font-size: var(--font-sm); font-weight: 600; font-family: inherit;
        }
        .type-chip:hover { color: var(--text-primary); border-color: var(--accent-blue); }
        .type-chip.active { background: rgba(var(--rgb-blue), .14); border-color: var(--accent-blue); color: var(--accent-blue); }
        .changelog-recherche {
            display: flex; align-items: center; gap: 8px; flex: 1 1 200px;
            background: var(--bg-input); border: 1px solid var(--border-color);
            border-radius: var(--radius-sm); padding: 0 10px;
        }
        .changelog-recherche i { color: var(--text-muted); font-size: var(--font-sm); }
        .changelog-recherche input { flex: 1; background: transparent; border: none; padding: 8px 0; color: var(--text-primary); font-family: inherit; font-size: var(--font-sm); }
        .changelog-recherche input:focus { outline: none; }
        .changelog-recherche:focus-within { border-color: var(--accent-blue); box-shadow: var(--focus-ring); }
        .changelog-compteur { font-size: var(--font-xs); color: var(--text-muted); white-space: nowrap; margin-left: auto; }

        /* Un liseré et une pastille par type servi : la couleur ne dit rien de plus
           que le type, elle le rend seulement lisible d'un coup d'œil. */
        .nouveaute { scroll-margin-top: 120px; }
        .nouveaute[data-type="ajout"] { border-left-color: var(--accent-green); }
        .nouveaute[data-type="correction"] { border-left-color: var(--accent-orange); }
        .nouveaute[data-type="changement"] { border-left-color: var(--accent-blue); }
        .nouveaute[data-type="retrait"] { border-left-color: var(--accent-red); }
        .nouveaute[data-type="securite"] { border-left-color: var(--accent-purple); }
        .nouveaute-type.t-ajout { color: var(--accent-green); border-color: rgba(var(--rgb-green), .35); background: rgba(var(--rgb-green), .1); }
        .nouveaute-type.t-correction { color: var(--accent-orange); border-color: rgba(var(--rgb-orange), .35); background: rgba(var(--rgb-orange), .1); }
        .nouveaute-type.t-changement { color: var(--accent-blue); border-color: rgba(var(--rgb-blue), .35); background: rgba(var(--rgb-blue), .1); }
        .nouveaute-type.t-retrait { color: var(--accent-red); border-color: rgba(var(--rgb-red), .35); background: rgba(var(--rgb-red), .1); }
        .nouveaute-type.t-securite { color: var(--accent-purple); border-color: rgba(var(--rgb-purple), .35); background: rgba(var(--rgb-purple), .1); }
        .type-chip.t-ajout.active { color: var(--accent-green); border-color: var(--accent-green); background: rgba(var(--rgb-green), .12); }
        .type-chip.t-correction.active { color: var(--accent-orange); border-color: var(--accent-orange); background: rgba(var(--rgb-orange), .12); }
        .type-chip.t-changement.active { color: var(--accent-blue); border-color: var(--accent-blue); background: rgba(var(--rgb-blue), .12); }
        .type-chip.t-retrait.active { color: var(--accent-red); border-color: var(--accent-red); background: rgba(var(--rgb-red), .12); }
        .type-chip.t-securite.active { color: var(--accent-purple); border-color: var(--accent-purple); background: rgba(var(--rgb-purple), .12); }

        .nouveaute-copier {
            margin-left: 4px; padding: 3px 10px; border-radius: 999px;
            background: transparent; border: 1px solid var(--border-color);
            color: var(--text-muted); font-size: var(--font-xs); font-weight: 600;
            cursor: pointer; font-family: inherit;
        }
        .nouveaute-copier:hover { color: var(--text-primary); border-color: var(--accent-blue); }
        .nouveaute-copier:focus-visible { outline: var(--focus-ring-outline); outline-offset: 2px; }
        @media (max-width: 640px) {
            .changelog-filtres { position: static; }
            .changelog-compteur { margin-left: 0; }
            .nouveaute-copier { margin-left: auto; }
        }
    
/* Habillage « route de nuit » (21/10/2026). */
.page-header h1, h1 { font-family: 'Barlow Condensed','Inter',sans-serif; text-transform: uppercase; font-weight: 800; color: var(--text-primary); }
.card, .section-card, .panel, .fiche, .archive-item, .event-carte { border-radius: var(--radius-lg); border-color: rgba(var(--rgb-white), .07); }
.banner-erreur { display: none; margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid rgba(var(--rgb-red), .35); background: rgba(var(--rgb-red), .08); color: var(--accent-red); }
.cache { display: none; }
.actions-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-entre { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.actions-centre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sans-souligne { text-decoration: none; }
.btn-back-input { background: var(--bg-input); }
.fiche { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px; }
.titre-16 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.texte-13 { font-size: 13px; color: var(--text-secondary); }
.bloc-14 { margin-top: 14px; }
.pied-12 { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.sous-texte { font-size: 11px; color: var(--text-muted); }
.sous-texte-12 { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.aide-texte { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.preligne { white-space: pre-line; }
.event-carte { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; background: var(--bg-card); }
.event-entete { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.event-titre { font-weight: 700; font-size: 14px; }
.event-sous { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.event-slot { margin-top: 8px; }
.bouton-import { background: rgba(96, 165, 250, .12); color: var(--accent-blue); }
.tmp-petit { font-size: 12px; }
.icone-grande { font-size: 22px; }
.textearea-libre { min-height: 140px; }
@media (prefers-reduced-motion: reduce) { .archive-item, .event-carte { transition: none; } }
