/* Surcharges Bootstrap – Questionnaire SCORE */

[x-cloak] { display: none !important; }


:root {
    --score-primary: #1a4f8a;
    --score-accent:  #e8f0fb;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
}

.navbar-brand img {
    height: 40px;
}

/* ── Progression ─────────────────────────────────────────────────────────── */

.progress-bar {
    background-color: var(--score-primary);
}

/* ── Layout card (blocs à 1 question) ────────────────────────────────────── */

.bloc-card {
    border-left: 4px solid var(--score-primary);
}

.question-label {
    font-weight: 600;
}

/* ── Champ obligatoire non rempli (validation) ───────────────────────────── */

.champ-invalide {
    border: 1px solid var(--bs-danger, #dc3545);
    border-radius: .375rem;
    background: #fff5f5;
    padding: .5rem;
}

/* ── Titre du bloc en cours ──────────────────────────────────────────────── */

.bloc-title-banner {
    border-left: 4px solid var(--score-primary);
    background: rgba(26, 79, 138, 0.06);
    padding: 0.85rem 1.25rem;
    border-radius: 0 .375rem .375rem 0;
}

.bloc-title {
    color: var(--score-primary);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: .2px;
}

@media (max-width: 576px) {
    .bloc-title { font-size: 1.3rem; }
}

/* ── Layout tableau VSME ─────────────────────────────────────────────────── */

.vsme-table {
    font-size: 0.95rem;
    table-layout: fixed;
}

.vsme-table th {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    vertical-align: middle;
}

/* Colonne question : large, texte peut wraper */
.vsme-table .col-indicateur {
    width: 28%;
    min-width: 220px;
    white-space: normal;
    font-size: 1.1rem;
}

/* Colonnes Likert : taille fixe pour les 5 boutons, contenu centré */
.vsme-table .col-score_accessibilite,
.vsme-table .col-score_utilite {
    width: 180px;
    text-align: center;
}

.vsme-table td.col-score_accessibilite .likert-group,
.vsme-table td.col-score_utilite .likert-group {
    justify-content: center;
}

.vsme-table td.col-score_accessibilite .form-check,
.vsme-table td.col-score_utilite .form-check {
    display: inline-flex;
    justify-content: center;
}

/* Colonne valeur déclarée */
.vsme-table .col-contenu {
    width: 170px;
}

/* Colonne parties prenantes */
.vsme-table .col-reponses_multiples {
    width: 185px;
}

/* Colonne commentaire : réduite pour laisser plus de place aux autres réponses */
.vsme-table .col-commentaire {
    width: 250px;
    min-width: 205px;
}

/* Boutons Likert compacts dans le tableau */
.vsme-table .likert-btn {
    padding: 2px 7px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Augmentation globale des textes 'small' de Bootstrap */
.small, small {
    font-size: 0.95em !important;
}

/* Likert card (blocs non-tabulaires) */
.likert-group .btn-check:checked + .btn {
    background-color: var(--score-primary);
    border-color: var(--score-primary);
    color: #fff;
}

/* ── Dropdown Parties Prenantes ──────────────────────────────────────────── */

.pp-dropdown {
    position: relative;
}

.pp-panel {
    position: fixed;
    z-index: 1080;
    min-width: 230px;
    max-height: 280px;
    overflow-y: auto;
}

.pp-remove {
    cursor: pointer;
    opacity: 0.75;
    font-weight: bold;
    line-height: 1;
}

.pp-remove:hover {
    opacity: 1;
}

/* ── Récapitulatif (étape de confirmation) ───────────────────────────────── */

.recap-toggle {
    background: transparent;
    border: 0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.recap-toggle:hover .recap-chevron,
.recap-toggle:focus-visible .recap-chevron {
    color: var(--score-primary);
}

.recap-bloc-toggle {
    padding-left: 0;
    padding-right: 0;
}

.recap-bloc-toggle .border-bottom {
    border-color: #dee2e6 !important;
}

.recap-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    color: #6c757d;
    font-size: 0.9rem;
}

.recap-chevron.ouvert {
    transform: rotate(90deg);
}

.recap-section .recap-toggle h5 {
    color: var(--score-primary);
}
