.annonces-bandeau-zone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.annonce-bandeau {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    padding: 10px 14px;
}

.annonce-bandeau-icone {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.annonce-bandeau-content {
    flex: 1;
    min-width: 0;
}

.annonce-bandeau-titre {
    font-weight: 700;
    font-size: 0.9rem;
}

.annonce-bandeau-message {
    font-size: 0.85rem;
    color: var(--muted, #6b7280);
}

.annonce-dismiss {
    background: none;
    border: none;
    color: var(--muted, #6b7280);
    cursor: pointer;
    padding: 2px 4px;
    flex-shrink: 0;
}

.annonce-dismiss:hover {
    color: #111827;
}

.annonce-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
}

.annonce-mode-fermeture-option {
    border-color: #e5e7eb !important;
    transition: border-color .15s, background-color .15s;
}

.annonce-mode-fermeture-option:has(input:checked) {
    border-color: #6366f1 !important;
    background: #eef2ff;
}

.annonce-niveau-option {
    border-color: #e5e7eb !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.annonce-niveau-option:has(input:checked) {
    border-color: var(--niveau-color) !important;
    background: color-mix(in srgb, var(--niveau-color) 10%, white);
}

.annonce-niveau-option .form-check-input {
    margin: 0;
}

.annonce-niveau-option .form-check-input:checked {
    background-color: var(--niveau-color);
    border-color: var(--niveau-color);
}

.annonce-niveau-option .form-check-label {
    cursor: pointer;
}

.annonce-form-layout {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
}

.annonce-preview-sticky {
    position: sticky;
    top: 16px;
}

/* Grand écran (2560×1440) : cartes du formulaire sur deux colonnes, aperçu à droite → sans défilement */
@media (min-width: 2200px) {
    .annonce-form-layout { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 24px; }
    .annonce-form-cartes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
    .annonce-form-layout .card-body.p-4 { padding: 1.1rem 1.25rem !important; }
    .annonce-form-layout textarea { min-height: 200px; }
}

.annonce-preview-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted, #6b7280);
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .annonce-form-layout {
        grid-template-columns: 1fr;
    }

    .annonce-preview-sticky {
        position: static;
        order: -1;
        margin-bottom: 16px;
    }
}

/* Statistiques de lecture d'une annonce : grand écran (2560×1440) → chaque liste de salariés sur 2 colonnes */
@media (min-width: 2200px) {
    .stats-liste thead { display: none; }
    .stats-liste tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    .stats-liste tr { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); }
    .stats-liste td { border: 0 !important; padding: 6px 4px !important; width: auto !important; }
}

/* Statistiques : deux panneaux bien distincts — vert = ont lu, orange = n'ont pas encore lu */
.stats-panel { border-radius: var(--radius, 12px); padding: 14px 16px 6px; height: 100%; border: 1px solid; border-top-width: 4px; }
.stats-panel--lu     { background: #f0fdf4; border-color: #bbf7d0; border-top-color: #16a34a; }
.stats-panel--non-lu { background: #fff7ed; border-color: #fed7aa; border-top-color: #ea580c; }
.stats-panel-titre { font-size: .95rem; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 4px; }
.stats-panel--lu .stats-panel-titre     { color: #15803d; }
.stats-panel--non-lu .stats-panel-titre { color: #c2410c; }
.stats-panel-nb { margin-left: 6px; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; color: #fff; }
.stats-panel--lu .stats-panel-nb     { background: #16a34a; }
.stats-panel--non-lu .stats-panel-nb { background: #ea580c; }
.stats-panel .table { --bs-table-bg: transparent; margin-bottom: 8px; }
.stats-panel .table thead th { background: transparent; }
.stats-panel--lu .stats-liste tr     { border-color: #dcfce7; }
.stats-panel--non-lu .stats-liste tr { border-color: #ffedd5; }
.stats-panel > p { margin-bottom: 8px; }
@media (max-width: 767.98px) { .stats-panel--non-lu { margin-top: 16px; } }

