body {
    min-height: 100vh;
}

.brand-logo {
    max-height: 90px;
    max-width: 30%;
    object-fit: contain;
}

.chart-box {
    width: 100%;
    max-width: 620px;
    flex-shrink: 0;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    line-height: 1.3;
}

.legend-block {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
}

.legend-top {
    line-height: 1.35;
    font-weight: 500;
    margin-bottom: 3px;
}

.legend-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 1.25em;
    font-size: 0.95em;
}

.legend-left {
    white-space: nowrap;
    flex-shrink: 0;
}

.legend-dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.4);
    margin-bottom: 2px;
}

.legend-right {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: bold;
    text-align: right;
    padding-left: 8px;
}

.clickable {
    cursor: pointer;
    text-decoration: underline dotted;
}

.synthese th,
.synthese td {
    width: 50%;
    vertical-align: top;
    border-color: #000;
}

.synthese th.positif {
    background-color: #d6f5d6;
    text-align: center;
}

.synthese th.progres {
    background-color: #f7d6d6;
    text-align: center;
}

.synthese ul {
    margin: 0;
    padding-left: 20px;
}

.synthese-visuels img {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.rich p:last-child,
.rich ul:last-child {
    margin-bottom: 0;
}

.table .row-tint > td {
    background-color: transparent;
}

#syncBadge {
    cursor: pointer;
    white-space: normal;
    text-align: left;
    max-width: 32rem;
}

.navbar-brand img {
    object-fit: contain;
}

/* Aide contextuelle des fiches action : bouton « ? » à côté d'une rubrique + fenêtre d'explication (js/help.js). */
.help-btn {
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 1px solid var(--bs-info-border-subtle);
    border-radius: 50%;
    background: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.help-btn:hover {
    border-color: var(--bs-info);
    background: var(--bs-info);
    color: #fff;
}

.help-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1075; /* au-dessus des fenêtres Bootstrap (1055), sous les messages (1090) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.5);
}

.help-window {
    width: min(34rem, 100%);
    max-height: 100%;
    overflow: auto;
}

.help-window .card-header {
    background: var(--bs-info-bg-subtle);
}

.help-example {
    padding-left: 0.75rem;
    border-left: 3px solid var(--bs-info);
    color: var(--bs-secondary-color);
}
