/* =============================================================================
   TELANODE PUBLIC — Couche UI pages utilisateur
   Version 1.0
   =============================================================================
   Préfixe : tn-pub-
   Requiert : telanode-ds.css (chargé avant)
   Cible   : Pages non-admin (Account, Trombi, Wall, Feed, Profil…)
   
   Différences avec le DS admin :
   - Layout centré avec largeur max (pas full-width)
   - Typographie plus aérée, font-size légèrement plus grande
   - Cards avec border-radius plus arrondi, ombres plus douces
   - Composants sociaux : avatars, feed, votes, galeries média
   - Ton plus chaleureux (couleurs accent atténuées)
   
   Sections :
     1. TOKENS PUBLIC          — Surcharges variables spécifiques public
     2. PAGE LAYOUT            — Conteneur centré, colonnes, header de page
     3. AVATAR                 — Cercles avatar en 5 tailles
     4. USER CARD              — Carte profil (grille annuaire, profil inline)
     5. FEED                   — Posts, réponses, thread
     6. COMPOSER               — Zone de rédaction (nouveau post / réponse)
     7. INTERACTIONS           — Votes, compteurs, actions sociales
     8. MEDIA GALLERY          — Mosaïque images/vidéos, fichier téléchargeable
     9. SEARCH BAR             — Barre de recherche avec icône
    10. SECTION HEADER         — Titre de section + description + actions
    11. CONTENT BADGES         — Badges contextuels (pinned, restricted, edited)
    12. PAGINATION             — Navigation pages style public
    13. PROFILE ROW            — Ligne clé/valeur style profil
    14. EMPTY STATE PUBLIC     — État vide orienté utilisateur
    15. RESPONSIVE             — Points de rupture publics
   ============================================================================= */


/* =============================================================================
   1. TOKENS PUBLIC
   ============================================================================= */

:root {
    /* Surcharges pour contexte public — plus doux, plus aéré */
    --tn-pub-radius: 12px;
    --tn-pub-radius-sm: 8px;
    --tn-pub-radius-lg: 16px;
    --tn-pub-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .03);
    --tn-pub-shadow-hover: 0 4px 16px rgba(0, 0, 0, .07);
    --tn-pub-font-size: 14px;
    --tn-pub-line-height: 1.6;
    --tn-pub-content-max: 720px;
    --tn-pub-content-wide: 1100px;
    --tn-pub-gap: 16px;
    --tn-pub-gap-sm: 10px;

    /* Couleurs action sociales */
    --tn-pub-vote-up: #10b981;
    --tn-pub-vote-down: #ef4444;
    --tn-pub-vote-neutral: var(--tn-text-4);
    --tn-pub-link: var(--tn-accent);
    --tn-pub-link-hover: #2563eb;
}

[data-theme="dark"] {
    --tn-pub-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .1);
    --tn-pub-shadow-hover: 0 4px 16px rgba(0, 0, 0, .25);
}


/* =============================================================================
   2. PAGE LAYOUT
   ============================================================================= */

/* Conteneur principal de page publique — centré, aéré */
.tn-pub-page {
    max-width: var(--tn-pub-content-max);
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-size: var(--tn-pub-font-size);
    line-height: var(--tn-pub-line-height);
    color: var(--tn-text-1);
}

.tn-pub-page.wide {
    max-width: var(--tn-pub-content-wide);
}

/* Header de page : titre + sous-titre + actions alignées */
.tn-pub-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--tn-bg-primary, #fff);
    border-radius: var(--tn-pub-radius-sm, 8px);
    border: 1px solid var(--tn-border-light, #e9ecef);
    border-left: 4px solid var(--tn-pub-header-accent, var(--tn-accent, #3b82f6));
    box-shadow: var(--tn-pub-shadow, 0 1px 3px rgba(0,0,0,.04));
}

.tn-pub-page-header.accent-account { --tn-pub-header-accent: #7c3aed; }
.tn-pub-page-header.accent-trombi  { --tn-pub-header-accent: #0891b2; }

.tn-pub-page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tn-text-1);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tn-pub-page-title i {
    font-size: 16px;
    color: var(--tn-pub-header-accent, var(--tn-text-3, #6c757d));
}

.tn-pub-page-desc {
    font-size: 12px;
    color: var(--tn-text-3);
    margin-top: 2px;
    line-height: 1.5;
}

.tn-pub-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Séparateur thématique */
.tn-pub-separator {
    height: 1px;
    background: var(--tn-border-light);
    margin: 24px 0;
}


/* =============================================================================
   3. AVATAR
   ============================================================================= */

.tn-pub-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--tn-border);
    background: var(--tn-bg-tertiary);
}

/* Tailles */
.tn-pub-avatar.xs  { width: 28px; height: 28px; border-width: 1px; }
.tn-pub-avatar.sm  { width: 36px; height: 36px; }
.tn-pub-avatar.md  { width: 56px; height: 56px; }
.tn-pub-avatar.lg  { width: 80px; height: 80px; }
.tn-pub-avatar.xl  { width: 120px; height: 120px; border-width: 3px; }

/* Placeholder (pas de photo) */
.tn-pub-avatar-ph {
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tn-bg-tertiary);
    border: 2px dashed var(--tn-border);
    color: var(--tn-text-4);
}

.tn-pub-avatar-ph.xs  { width: 28px; height: 28px; font-size: 11px; border-width: 1px; }
.tn-pub-avatar-ph.sm  { width: 36px; height: 36px; font-size: 14px; }
.tn-pub-avatar-ph.md  { width: 56px; height: 56px; font-size: 22px; }
.tn-pub-avatar-ph.lg  { width: 80px; height: 80px; font-size: 28px; }
.tn-pub-avatar-ph.xl  { width: 120px; height: 120px; font-size: 40px; border-width: 3px; }

/* Stack d'avatars superposés */
.tn-pub-avatar-stack {
    display: flex;
}

.tn-pub-avatar-stack .tn-pub-avatar,
.tn-pub-avatar-stack .tn-pub-avatar-ph {
    margin-left: -8px;
    border: 2px solid var(--tn-bg-primary);
}

.tn-pub-avatar-stack .tn-pub-avatar:first-child,
.tn-pub-avatar-stack .tn-pub-avatar-ph:first-child {
    margin-left: 0;
}

/* Initiales dans cercle coloré */
.tn-pub-avatar-initials {
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.tn-pub-avatar-initials.sm { width: 36px; height: 36px; font-size: 12px; }
.tn-pub-avatar-initials.md { width: 56px; height: 56px; font-size: 16px; }


/* =============================================================================
   4. USER CARD — Grille annuaire, carte profil
   ============================================================================= */

/* Grille de cartes (trombinoscope, annuaire) */
.tn-pub-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--tn-pub-gap);
}

/* Carte utilisateur */
.tn-pub-user-card {
    background: var(--tn-bg-primary);
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-pub-radius);
    overflow: hidden;
    box-shadow: var(--tn-pub-shadow);
    transition: box-shadow .2s, transform .15s;
}

.tn-pub-user-card:hover {
    box-shadow: var(--tn-pub-shadow-hover);
    transform: translateY(-2px);
}

.tn-pub-user-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 12px;
}

.tn-pub-user-card-identity {
    flex: 1;
    min-width: 0;
}

.tn-pub-user-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--tn-text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tn-pub-user-card-sub {
    font-size: 12px;
    color: var(--tn-text-4);
    margin-top: 1px;
}

.tn-pub-user-card-bio {
    padding: 0 16px 12px;
    font-size: 13px;
    color: var(--tn-text-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-pub-user-card-relation {
    border-top: 1px solid var(--tn-border-light);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tn-pub-user-card-relation-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tn-text-2);
}

.tn-pub-user-card-relation-row i {
    width: 16px;
    text-align: center;
    color: var(--tn-text-4);
    font-size: 12px;
}

.tn-pub-user-card-relation-row a {
    color: var(--tn-pub-link);
    text-decoration: none;
}

.tn-pub-user-card-relation-row a:hover {
    color: var(--tn-pub-link-hover);
    text-decoration: underline;
}

.tn-pub-user-card-actions {
    border-top: 1px solid var(--tn-border-light);
    padding: 10px 16px;
    display: flex;
    gap: 8px;
}

.tn-pub-user-card-actions .tn-btn {
    flex: 1;
    justify-content: center;
}

/* Profil inline (identité horizontale dans un header) */
.tn-pub-profile-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tn-pub-profile-inline-info {
    min-width: 0;
}

.tn-pub-profile-inline-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tn-text-1);
}

.tn-pub-profile-inline-meta {
    font-size: 12px;
    color: var(--tn-text-4);
}


/* =============================================================================
   5. FEED — Posts, réponses, thread
   ============================================================================= */

.tn-pub-feed {
    display: flex;
    flex-direction: column;
    gap: var(--tn-pub-gap);
}

/* Post individuel */
.tn-pub-post {
    background: var(--tn-bg-primary);
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-pub-radius);
    box-shadow: var(--tn-pub-shadow);
    overflow: hidden;
}

.tn-pub-post.pinned {
    border-left: 3px solid var(--tn-warning);
}

.tn-pub-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 0;
}

.tn-pub-post-author {
    flex: 1;
    min-width: 0;
}

.tn-pub-post-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tn-text-1);
}

.tn-pub-post-author-date {
    font-size: 12px;
    color: var(--tn-text-4);
}

.tn-pub-post-menu {
    flex-shrink: 0;
    color: var(--tn-text-4);
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: var(--tn-radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.tn-pub-post-menu:hover {
    background: var(--tn-bg-hover);
    color: var(--tn-text-2);
}

.tn-pub-post-body {
    padding: 12px 16px;
    font-size: var(--tn-pub-font-size);
    line-height: var(--tn-pub-line-height);
    color: var(--tn-text-1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tn-pub-post-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px 12px;
    font-size: 12px;
    color: var(--tn-text-4);
}

.tn-pub-post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tn-pub-post-stat i {
    font-size: 12px;
}

/* Réponses */
.tn-pub-replies {
    border-top: 1px solid var(--tn-border-light);
    background: var(--tn-bg-secondary);
}

.tn-pub-reply {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tn-border-light);
}

.tn-pub-reply:last-child {
    border-bottom: none;
}

.tn-pub-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tn-pub-reply-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--tn-text-1);
}

.tn-pub-reply-date {
    font-size: 11px;
    color: var(--tn-text-4);
}

.tn-pub-reply-body {
    font-size: 13px;
    line-height: 1.55;
    color: var(--tn-text-2);
    padding-left: 46px; /* alignement sous le nom (avatar sm 36 + gap 10) */
}

/* Lien "Voir les réponses" */
.tn-pub-replies-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tn-pub-link);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    transition: background .15s;
}

.tn-pub-replies-toggle:hover {
    background: var(--tn-bg-hover);
}


/* =============================================================================
   6. COMPOSER — Zone de rédaction
   ============================================================================= */

.tn-pub-composer {
    background: var(--tn-bg-primary);
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-pub-radius);
    box-shadow: var(--tn-pub-shadow);
    padding: 14px 16px;
}

.tn-pub-composer-editor {
    min-height: 60px;
    margin-bottom: 10px;
}

.tn-pub-composer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tn-pub-composer-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bouton outil dans le composer */
.tn-pub-composer-tool {
    background: none;
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-pub-radius-sm);
    padding: 5px 10px;
    font-size: 13px;
    color: var(--tn-text-3);
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tn-pub-composer-tool:hover {
    background: var(--tn-bg-hover);
    color: var(--tn-text-1);
}


/* =============================================================================
   7. INTERACTIONS — Votes, compteurs, actions sociales
   ============================================================================= */

.tn-pub-actions-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-top: 1px solid var(--tn-border-light);
}

.tn-pub-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    background: none;
    border-radius: var(--tn-pub-radius-sm);
    font-size: 13px;
    color: var(--tn-text-3);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.tn-pub-action-btn:hover {
    background: var(--tn-bg-hover);
    color: var(--tn-text-1);
}

.tn-pub-action-btn.active-up {
    color: var(--tn-pub-vote-up);
}

.tn-pub-action-btn.active-down {
    color: var(--tn-pub-vote-down);
}

.tn-pub-action-btn i {
    font-size: 14px;
}

.tn-pub-action-spacer {
    flex: 1;
}

/* Compteur inline */
.tn-pub-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--tn-text-3);
    min-width: 16px;
    text-align: center;
}


/* =============================================================================
   8. MEDIA GALLERY — Mosaïque, vidéo, fichier
   ============================================================================= */

.tn-pub-media-gallery {
    padding: 0 16px 12px;
}

/* Image unique — large */
.tn-pub-media-single img,
.tn-pub-media-single video {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--tn-pub-radius-sm);
    cursor: pointer;
}

/* Mosaïque 2-4 images */
.tn-pub-media-mosaic {
    display: grid;
    gap: 4px;
    border-radius: var(--tn-pub-radius-sm);
    overflow: hidden;
}

.tn-pub-media-mosaic.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.tn-pub-media-mosaic.cols-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.tn-pub-media-mosaic.cols-3 > :first-child {
    grid-row: 1 / 3;
}

.tn-pub-media-mosaic.cols-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.tn-pub-media-mosaic img,
.tn-pub-media-mosaic video {
    width: 100%;
    height: 100%;
    min-height: 120px;
    max-height: 240px;
    object-fit: cover;
    cursor: pointer;
}

/* Overlay "+N" sur la dernière image */
.tn-pub-media-more {
    position: relative;
}

.tn-pub-media-more::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* Fichiers téléchargeables */
.tn-pub-media-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 16px 12px;
}

.tn-pub-media-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--tn-bg-tertiary);
    border-radius: var(--tn-pub-radius-sm);
    font-size: 13px;
    color: var(--tn-text-2);
    text-decoration: none;
    transition: background .15s;
}

.tn-pub-media-file:hover {
    background: var(--tn-bg-hover);
}

.tn-pub-media-file i {
    color: var(--tn-text-4);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.tn-pub-media-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-pub-media-file-size {
    font-size: 11px;
    color: var(--tn-text-4);
    flex-shrink: 0;
}


/* =============================================================================
   9. SEARCH BAR
   ============================================================================= */

.tn-pub-search {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.tn-pub-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tn-text-4);
    font-size: 13px;
    pointer-events: none;
}

.tn-pub-search .tn-input {
    padding-left: 36px;
    width: 100%;
    border-radius: var(--tn-pub-radius-sm);
}


/* =============================================================================
   10. SECTION HEADER — Titre de section dans une page publique
   ============================================================================= */

.tn-pub-section {
    margin-bottom: 16px;
}

.tn-pub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tn-pub-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tn-text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tn-pub-section-title i {
    color: var(--tn-text-3);
    font-size: 14px;
}


/* =============================================================================
   11. CONTENT BADGES — Indicateurs contextuels
   ============================================================================= */

.tn-pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.tn-pub-badge.pinned {
    background: var(--tn-warning-light);
    color: var(--tn-warning);
}

.tn-pub-badge.restricted {
    background: var(--tn-danger-light);
    color: var(--tn-danger);
}

.tn-pub-badge.edited {
    background: var(--tn-bg-tertiary);
    color: var(--tn-text-4);
}

.tn-pub-badge.new {
    background: var(--tn-accent-light);
    color: var(--tn-accent);
}

.tn-pub-badge.pending {
    background: var(--tn-warning-light);
    color: var(--tn-warning);
}

.tn-pub-badge i {
    font-size: 10px;
}


/* =============================================================================
   12. PAGINATION
   ============================================================================= */

.tn-pub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
}

.tn-pub-page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-pub-radius-sm);
    background: var(--tn-bg-primary);
    color: var(--tn-text-2);
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    text-decoration: none;
    padding: 0 8px;
}

.tn-pub-page-btn:hover {
    background: var(--tn-bg-hover);
    border-color: var(--tn-accent);
    color: var(--tn-accent);
}

.tn-pub-page-btn.active {
    background: var(--tn-accent);
    border-color: var(--tn-accent);
    color: #fff;
    font-weight: 600;
}

.tn-pub-page-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}


/* =============================================================================
   13. PROFILE ROW — Ligne clé/valeur style profil (Mon compte)
   ============================================================================= */

.tn-pub-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--tn-border-light);
    gap: 16px;
}

.tn-pub-profile-row:last-child {
    border-bottom: none;
}

.tn-pub-profile-row-info {
    flex: 1;
    min-width: 0;
}

.tn-pub-profile-row-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--tn-text-1);
}

.tn-pub-profile-row-hint {
    font-size: 12px;
    color: var(--tn-text-4);
    margin-top: 2px;
}

.tn-pub-profile-row-ctrl {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =============================================================================
   14. EMPTY STATE PUBLIC
   ============================================================================= */

.tn-pub-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 12px;
    text-align: center;
}

.tn-pub-empty i {
    font-size: 48px;
    color: var(--tn-text-4);
    margin-bottom: 4px;
    opacity: .6;
}

.tn-pub-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tn-text-3);
}

.tn-pub-empty-desc {
    font-size: 13px;
    color: var(--tn-text-4);
    max-width: 360px;
    line-height: 1.5;
}


/* =============================================================================
   15. RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .tn-pub-page {
        padding: 16px 12px 32px;
    }

    .tn-pub-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tn-pub-page-actions {
        justify-content: flex-end;
    }

    .tn-pub-user-grid {
        grid-template-columns: 1fr;
    }

    .tn-pub-search {
        max-width: 100%;
    }

    .tn-pub-profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tn-pub-profile-row-ctrl {
        width: 100%;
    }

    .tn-pub-profile-row-ctrl .tn-input,
    .tn-pub-profile-row-ctrl .tn-textarea {
        width: 100%;
    }

    .tn-pub-reply-body {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .tn-pub-page-title {
        font-size: 18px;
    }

    .tn-pub-media-mosaic.cols-3,
    .tn-pub-media-mosaic.cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .tn-pub-media-mosaic.cols-3 > :first-child {
        grid-row: auto;
    }

    .tn-pub-action-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
}


/* =============================================================================
   MODALS — Override Bootstrap pour dark mode (fragments Account / Trombi)
   Bootstrap Modal garde un fond blanc hardcodé → on le remplace par tokens DS
   ============================================================================= */

.modal .modal-content {
    background: var(--tn-bg-primary, #fff);
    color: var(--tn-text-1, #212529);
    border-color: var(--tn-border, #dee2e6);
}

.modal .modal-header {
    border-bottom-color: var(--tn-border-light, #e9ecef);
    color: var(--tn-text-1, #212529);
}

.modal .modal-title {
    color: var(--tn-text-1, #212529);
}

.modal .modal-body {
    color: var(--tn-text-1, #212529);
}

.modal .modal-footer {
    border-top-color: var(--tn-border-light, #e9ecef);
}

.modal .btn-close {
    filter: var(--tn-btn-close-filter, none);
}

.tn-pub-page-header.accent-dashboard { --tn-pub-header-accent: #f59e0b; }

/* =============================================================================
   FIN — TELANODE PUBLIC
   ============================================================================= */
