body {
    background-color: white;
}

.main-content{
    padding-bottom: 1.5rem;
}

#mainNavbar a{
    text-decoration:none;
}

table .badge{
    font-size: 0.7rem;
    font-weight: 400;
}

table .btn {
    font-size: 0.8rem;
}

div.alert {
    font-size: 0.8rem;
}

div.alert.alert-dismissible{
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
} 


.alert-dismissible .btn-close {
    padding: 0.75rem 0.5rem;
}

.btn svg{
	    font-size: larger;
	    vertical-align: sub;
}
@media (min-width: 1400px) {
	main .container{
		 max-width: 90vw;
	}
}

@media (min-width: 1400px) {
	main .container{
		 max-width: 90vw;
	}
}
@media (max-width: 1399px) {
	main .container{
		 max-width: 98vw;
	}
}

.workflow{
    zoom:135%;
}

.workflow-progress {
       margin: 0 auto;
}

.workflow-pagination .page-item {
    position: relative;
}

.workflow-pagination .page-item .page-link {
    padding: 0.65rem 2rem;
    font-size: 0.85rem;
}

.workflow-stage-brouillon { --workflow-stage-color: #6c757d }
.workflow-stage-soumise { --workflow-stage-color: #fd7e14; }
.workflow-stage-recue { --workflow-stage-color: #0dcaf0; }
.workflow-stage-en_cours { --workflow-stage-color: #0d6efd; }
.workflow-stage-en_attente_accord_employeur { --workflow-stage-color: #6f42c1; }
.workflow-stage-cloturee { --workflow-stage-color: #198754; }

.urgence-faible { --urgence-color: #6c757d; }
.urgence-normale { --urgence-color: #0d6efd; }
.urgence-haute { --urgence-color: #dc3545; }

.workflow-pagination .current-stage:not(.first-stage)::before,
.workflow-pagination .current-stage:not(.last-stage)::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 82%;
    background: #6c757d;
    z-index: 5;
    transition: transform .25s ease;
}

.current-stage .workflow-stage-chip{
	display:none;
}

.workflow-stage-brouillon .current-stage:not(.last-stage)::after {
	background: #6c757d !important;
}

.workflow-stage-soumise.current-stage:not(.last-stage)::after {
	background: #fd7e14 !important;
}


.workflow-stage-recue.current-stage:not(.last-stage)::after {
	background: #0dcaf0 !important;
}

.workflow-stage-en_cours.current-stage:not(.last-stage)::after {
	background: #0d6efd !important;
}

.workflow-stage-en_attente_accord_employeur.current-stage:not(.last-stage)::after {
	background: #6f42c1 !important;
}

.workflow-stage-cloturee.current-stage:not(.last-stage)::after {
	background: #198754 !important;
}

.workflow-pagination .current-stage:not(.first-stage)::before {
    left: -7px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: #fff;
}

.workflow-pagination .current-stage:not(.last-stage)::after {
    right: -14px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: #6c757d;
}



.workflow-pagination .current-stage .page-link {
    border-color: transparent;
}

.workflow-pagination .current-stage:hover::before,
.workflow-pagination .current-stage:hover::after,
.workflow-pagination .current-stage.active::before,
.workflow-pagination .current-stage.active::after {
    transform: translateY(-50%) scale(1.2);
}

.active .text-muted{
    color:#eee !important;
}



.workflow-stage-chip {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-left: 0.35rem;
    background: var(--workflow-stage-color, #6c757d);
    border: 1px solid rgba(255, 255, 255, 0.75);
    display: inline-block;
}

.workflow-stage-badge {
    background-color: var(--workflow-stage-color, #6c757d);
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.urgence-badge {
    background-color: var(--urgence-color, #6c757d);
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.45rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workflow-pagination .page-item[class*="workflow-stage-"] .page-link {
    border-color: var(--workflow-stage-color, #6c757d);
    color: var(--workflow-stage-color, #6c757d);
    background-color: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.workflow-pagination .page-item.current-stage[class*="workflow-stage-"] .page-link {
    background-color: var(--workflow-stage-color, #6c757d);
    color: #fff;
    border-color: var(--workflow-stage-color, #6c757d);
    /*box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08);*/
}

.workflow-pagination .page-item.current-stage[class*="workflow-stage-"] .page-link small {
    color: rgba(255, 255, 255, 0.85);
}

.workflow-pagination .page-item.disabled[class*="workflow-stage-"] .page-link {
    opacity: 0.45;
}

.text-muted{
    color: var(--bs-tertiary-color) !important;
}
.totp {
    font-size: 1.8rem;
    padding: 0 !important;
    text-align: center;
}

.user-list-table{
    width: calc(100% - 0.5rem);
}

.user-list-btn{
    width: 100%
}



/* Styles pour les pièces jointes */
.attachment-item {
    transition: all 0.2s ease;
}

.attachment-item:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa;
}

.file-label {
    font-size: 0.9rem;
    cursor: pointer;
    display: block;
    margin-bottom: 0.5rem;
}

.attachment-item input[type="file"] {
    border: 2px dashed #ced4da;
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.attachment-item input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.attachment-item input[type="file"]::file-selector-button {
    margin-right: 1rem;
}

.font-larger{
	font-size: larger;
}

.question-page-hero,
.home-hero {
       position: relative;
}

.question-page-hero-card,
.home-hero-card {
    border-radius: 1.5rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #071328 0%, #1d2d71 60%, #2c5dc3 100%);
    color: #fff;
}

.question-page-hero-card .row,
.home-hero-card .row {
    position: relative;
    z-index: 2;
}

.question-page-hero-card .hero-icon,
.home-hero-card .hero-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    opacity: 0.12;
}

.question-page-hero-card .letter-spacing,
.home-hero-card .letter-spacing {
    letter-spacing: 0.4rem;
}

.question-filter-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 63, 122, 0.1);
}

.question-filter-panel .form-select {
    border-radius: 0.75rem;
    min-height: 46px;
}

.question-table-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 63, 122, 0.1);
    overflow: hidden;
}

.question-table-panel table {
    margin-bottom: 0;
}

.question-table-panel .table-hover tbody tr:hover {
    background: rgba(13, 63, 122, 0.04);
}

.question-table-panel td.question-attachments-column {
    width: 96px;
}

.question-attachments-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.question-detail-panel,
.question-progress-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 63, 122, 0.1);
    background: #fff;
}

.question-detail-panel {
    box-shadow: 0 0 0 1px rgba(13, 63, 122, 0.04) inset;
}

.question-detail-panel .detail-field {
    padding: 0.75rem 0.8rem;
    border-radius: 0.65rem;
    background: #f8f9ff;
}

.question-detail-panel .detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.question-detail-panel .detail-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.question-detail-section {
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(13, 63, 122, 0.15);
}

.question-detail-section h2 {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.question-detail-actions {
    margin-top: 2rem;
}

.question-detail-actions .btn {
    min-width: 220px;
}

.question-attachments-list .list-group-item {
    border-radius: 0.85rem;
    border: 1px solid rgba(13, 63, 122, 0.08);
    background: #f8f9ff;
    padding: 0.9rem 1rem;
    margin-bottom: 0.65rem;
}

.question-attachments-list .list-group-item:last-child {
    margin-bottom: 0;
}

.question-attachments-list .bi {
    font-size: 1.1rem;
}

.question-attachments-list .btn-sm {
    padding: 0.35rem 0.75rem;
}

.question-progress-panel .workflow-progress .page-link {
    min-width: 5rem;
}

.home-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 63, 122, 0.1);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(13, 63, 122, 0.04) inset;
}

.home-panel .list-group-item {
    border-radius: 0.85rem;
    border: 1px solid rgba(13, 63, 122, 0.08);
    margin-bottom: 0.65rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-panel .list-group-item:last-child {
    margin-bottom: 0;
}

.home-panel .list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(13, 63, 122, 0.08);
}

.question-page-hero-card .text-lg-end{
	padding-right: 7rem;
}

.question-comments-panel {
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, #ddd 0%, #eee 55%, #fff 100%);
    color: #333;
}

.question-comments-panel .card-body {
    position: relative;
    background: transparent;
}

.question-comments-panel__timeline {
    position: relative;
    padding:  1rem 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
    background-color: #FFF;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
}

.question-comments-panel__timeline::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
}

.comment-timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 0.25rem;
}

.comment-timeline-event:last-child {
    margin-bottom: 0;
}

.comment-timeline-event::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.comment-timeline-event__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.comment-timeline-event__meta span {
    letter-spacing: 0.02em;
}

.comment-timeline-event__content {
    margin-top: 0.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
}

.question-comments-panel__form {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

.question-comment-form .form-label {
    color: #666;
}

.question-comment-form .tox-tinymce {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.04);
}
