/**
 * Typographie globale — lisibilité arabe / RTL (taille et graisse renforcées).
 */
html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    color: #1a2a36;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Menu */
.navbar-default .navbar-brand {
    font-size: 18px;
    font-weight: 700;
    padding-top: 16px;
    padding-bottom: 16px;
}

.navbar-default .navbar-nav > li > a {
    font-size: 17px;
    font-weight: 600;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.35;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    font-weight: 700;
}

/* Formulaires */
.form-control,
input.form-control,
select.form-control,
textarea.form-control,
.input-group-addon {
    font-size: 17px;
    line-height: 1.45;
}

label,
.control-label,
.checkbox label,
.radio label {
    font-size: 17px;
    font-weight: 600;
}

.form-group small,
.help-block {
    font-size: 15px;
}

/* Boutons */
.btn {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    padding: 9px 16px;
}

.btn-lg {
    font-size: 18px;
    padding: 11px 20px;
}

.btn-sm {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 14px;
    line-height: 1.4;
}

.btn-xs {
    font-size: 14px;
    padding: 6px 10px;
}

/* Tableaux, panneaux, alertes */
.table > thead > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    font-size: 16px;
    line-height: 1.5;
}

.panel-heading,
.panel-title {
    font-size: 18px;
    font-weight: 700;
}

.panel-body {
    font-size: 16px;
    line-height: 1.55;
}

.alert {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    padding: 14px 18px;
    margin-bottom: 16px;
}

/* Titres */
h1, .h1 { font-size: 32px; font-weight: 700; line-height: 1.25; }
h2, .h2 { font-size: 26px; font-weight: 700; line-height: 1.3; }
h3, .h3 { font-size: 22px; font-weight: 700; line-height: 1.35; }
h4, .h4 { font-size: 19px; font-weight: 700; }
h5, .h5 { font-size: 17px; font-weight: 600; }
h6, .h6 { font-size: 16px; font-weight: 600; }

/* Wizard (inscription / modification) */
.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
    font-size: 16px;
    font-weight: 600;
}

.wizard > .content {
    font-size: 16px;
}

.wizard > .content > .body label {
    font-size: 17px;
}

/* Listes déroulantes, pagination */
.dropdown-menu > li > a {
    font-size: 16px;
}

.pagination > li > a,
.pagination > li > span {
    font-size: 16px;
}

.badge {
    font-size: 13px;
    font-weight: 600;
}

/* Espace candidat */
.candidat-info-table th,
.candidat-info-table td {
    font-size: 16px;
}

.espace-theme-panel .panel-heading.espace-theme-heading {
    font-size: 18px;
}

.section-title {
    font-size: 22px;
}

/* Validation formulaire */
.has-error .help-block,
.has-success .help-block {
    font-size: 15px;
}

/* Barre d'actions espace candidat (utilisée aussi hors espace_prive si besoin) */
.espace-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 4px;
}

.espace-toolbar-title {
    margin: 0;
    color: #1f5f8b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.espace-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.espace-actions .btn {
    font-size: 15px;
    font-weight: 600;
    padding: 9px 14px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .espace-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .espace-actions {
        justify-content: flex-start;
    }
    .espace-actions .btn {
        white-space: normal;
        text-align: center;
    }
}
