body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7fafc;
    color: #26323b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-footer {
    width: 100vw;
    background: #019fc2;
    color: #fff;
    padding: 18px 0 16px 0;
    text-align: center;
    font-size: 1.03em;
    margin-top: 38px;
    box-shadow: 0 -2px 8px rgba(1,159,194,0.08);
    position: relative;
    margin-top: auto;
}

header {
    background: #019fc2;
    padding: 20px 0 16px 0;
    box-shadow: 0 2px 8px rgba(1,159,194,0.09);
    margin-bottom: 32px;
}

.navbar {
    margin-bottom: 24px;
}

.navbar .nav-dashboard,
.navbar-nav .nav-item .nav-link[href*="dashboard"] {
    display: none !important;
}

.dashboard-container {
    width: 98%;
    max-width: 1800px;
    margin: 32px auto 0 auto;
    background: #e6e6e6de;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(1,159,194,0.08);
    padding: 20px 35px 1px 35px;
    box-sizing: border-box;
}

.dashboard-title {
    color: #000000;
    font-weight: 700;
    font-size: 2.3rem;
    margin-top: 0;
    margin-bottom: 0.38em;
    letter-spacing: 0.6px;
}

.dashboard-welcome {
    font-size: 1.17rem;
    color: #4a525c;
    margin-bottom: 1.4em;
}

.username {
    color: #019fc2;
    font-weight: 500;
}

.dashboard-actions {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    font-size: 1.02rem;
    border: none;
    border-radius: 7px;
    padding: 10px 22px;
    margin-right: 0;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn i { margin-right: 8px; }
.btn-primary {
    background: #019fc2;
    color: #fff;
    box-shadow: 0 2px 4px rgba(1,159,194,0.07);
}
.btn-primary:hover, .btn-primary:focus {
    background: #137ea6;
}
.btn-secondary {
    background: #e3e7ea;
    color: #0b486b;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #d1d7df;
}
.btn-outline-light {
    border-color: #fff !important;
    color: #fff !important;
    background: transparent;
}
.btn-outline-light:hover, .btn-outline-light:focus {
    background: #fff !important;
    color: #019fc2 !important;
}
.btn-light {
    background: #e6f4fa !important;
    color: #019fc2 !important;
    border: none;
}
.btn-light:hover, .btn-light:focus {
    background: #b8e0ef !important;
}
.btn-success {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.dashboard-section {
    margin-bottom: 28px;
}

.dashboard-filters {
    background: #f6fafd;
    border-radius: 10px;
    padding: 21px 20px 13px 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(1,159,194,0.06);
}

.dashboard-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 20px;
    align-items: end;
}

.dashboard-filter-group {
    display: flex;
    flex-direction: column;
}

.dashboard-filter-label {
    font-size: 0.99em;
    color: #1a7db6;
    margin-bottom: 4px;
    font-weight: 500;
}

.dashboard-filter-input,
.dashboard-filter-select {
    min-width: 138px;
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid #dde5ef;
    font-size: 1rem;
    background: #fff;
    outline: none;
}

.dashboard-filter-input:focus,
.dashboard-filter-select:focus {
    border-color: #019fc2;
}
.dashboard-filters .form-control,
.dashboard-filters .form-select {
    min-width: 138px;
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid #dde5ef;
    font-size: 1rem;
    background: #fff;
    outline: none;
}
.dashboard-filters .form-control:focus,
.dashboard-filters .form-select:focus {
    border-color: #019fc2;
}
.filter-group {
    display: flex;
    flex-direction: column;
    margin-right: 18px;
}
.filter-label {
    font-size: 0.99em;
    color: #1a7db6;
    margin-bottom: 4px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 1px;
}
.checkbox-inline {
    font-size: 0.99em;
    margin-right: 10px;
}

.btn-filter {
    background: #019fc2;
    color: #fff;
    margin-left: 12px;
    font-size: 1.13rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(1,159,194,0.17);
    border: 2px solid #137ea6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 28px;
}
.btn-filter:hover, .btn-filter:focus {
    background: #137ea6;
    color: #fff;
    border-color: #019fc2;
}

.btn-reset {
    background: #fff;
    color: #e0491b;
    margin-left: 12px;
    font-weight: 700;
    font-size: 1.13rem;
    border: 2px solid #e0491b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    box-shadow: 0 2px 10px rgba(224,73,27,0.09);
}
.btn-reset:hover, .btn-reset:focus {
    background: #ffe5e0;
    color: #a3300d;
    border-color: #e0491b;
}

.dashboard-table-outer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 130px;
}

.dashboard-table-container {
    width: 100%;
    max-width: 2000px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.dashboard-table {
    min-width: 1380px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    background: #fcfcfc;
    box-shadow: 0 1px 4px rgba(1,159,194,0.04);
    font-size: 1.04rem;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table thead tr {
    background: #e1f3fa;
}
.dashboard-table th, .dashboard-table td {
    padding: 10px 10px;
    font-size: 1em;
    vertical-align: top;
    word-break: break-word;
    white-space: normal;
}
.dashboard-table th {
    color: #1a7db6;
    font-size: 1.08em;
    font-weight: 600;
    border-bottom: 2px solid #b8e0ef;
    white-space: nowrap;
}
.dashboard-table td {
    border-bottom: 1px solid #e9f2f7;
}
.dashboard-table tr:last-child td {
    border-bottom: none;
}
.table-empty {
    text-align: center;
    color: #aaa;
    font-size: 1.13em;
    padding: 22px 0;
}

.link-fiche {
    color: #019fc2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.12s;
}
.link-fiche:hover, .link-fiche:focus {
    color: #137ea6;
    text-decoration: underline;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 500;
    min-width: 34px;
    text-align: center;
    margin-right: 3px;
}
.tag-oui {
    background: #dafbe2;
    color: #10793f;
    border: 1px solid #b2e7c8;
}
.tag-non {
    background: #fff3f0;
    color: #e0491b;
    border: 1px solid #f3c7bb;
}

.dashboard-table td {
    white-space: normal;
}

/* ---- FICHE INTERVENANT ---- */
.intervenant-details {
    background: #f8fafd;
    border-radius: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #019fc2 70%, #1a7db6 100%);
    color: #fff !important;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}

.card-header .h3, .card-header h1 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-header .badge {
    font-size: 1em;
    margin-top: 2px;
}

.breadcrumb {
    background: #e6f4fa !important;
    font-size: 1.1em;
    margin-bottom: 0;
    padding-left: 12px;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #019fc2;
}

section h2, section h3 {
    color: #137ea6;
    font-weight: 700;
}

.list-group-item b {
    color: #137ea6;
}

.badge.bg-success, .badge.bg-info, .badge.bg-danger, .badge.bg-secondary, .badge.bg-warning {
    font-size: 0.98em;
    vertical-align: middle;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.badge.bg-info {
    background: #e0f7fa !important;
    color: #0b486b !important;
    border: 1px solid #b8e0ef;
}
.badge.bg-danger {
    background: #ffe3e3 !important;
    color: #a3300d !important;
}
.badge.bg-warning {
    background: #fff6da !important;
    color: #8a6d1a !important;
}
.badge.bg-secondary {
    background: #e3e7ea !important;
    color: #495057 !important;
}
.badge.bg-success {
    background: #dafbe2 !important;
    color: #10793f !important;
    border: 1px solid #b2e7c8;
}

.table thead th {
    background: #f4fafd;
    color: #137ea6;
    font-weight: 600;
    font-size: 1.04em;
}
.table-bordered {
    border-radius: 12px;
    overflow: hidden;
}
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
}
.table td, .table th {
    vertical-align: middle !important;
}

form .form-control, form textarea.form-control {
    font-size: 1.08em;
    border-radius: 8px;
    border: 1.5px solid #dde5ef;
    background: #fafdff;
    padding: 10px 13px;
}
form .form-control:focus {
    border-color: #019fc2;
    box-shadow: 0 0 0 1.5px #019fc233;
}



/* Responsive */
@media (max-width: 1500px) {
    .dashboard-container {
        width: 99vw;
        padding: 12px 1vw 8px 1vw;
    }
    .dashboard-table th, .dashboard-table td {
        padding: 6px 4px;
        font-size: 0.93em;
    }
    .dashboard-table-outer,
    .dashboard-table-container {
        max-width: 100vw;
        overflow-x: auto;
    }
    .intervenant-details {
        max-width: 98vw;
        padding: 8px 0;
    }
}
@media (max-width: 900px) {
    .dashboard-container {
        width: 100vw;
        padding: 8px 0 8px 0;
    }
    .dashboard-filters {
        flex-direction: column;
        gap: 13px 0;
        padding: 13px 7px;
    }
    .dashboard-actions {
        flex-direction: column;
        gap: 9px;
    }
    .dashboard-title {
        font-size: 1.28rem;
    }
    .dashboard-table th, .dashboard-table td {
        font-size: 0.87em;
    }
    .dashboard-table-outer,
    .dashboard-table-container {
        max-width: 100vw;
        width: 100vw;
        padding: 0 2px;
    }
    .intervenant-details {
        max-width: 99vw;
        padding: 4px 2px;
    }
}

::-webkit-scrollbar {
    width: 10px;
    background: #e1f3fa;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: #9fdbe8;
    border-radius: 5px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
}


.admin-add-form .form-label {
    font-weight: 500;
    color: #176ea3;
    margin-bottom: 6px;
}
.admin-add-form .form-control {
    font-size: 1.07em;
    border-radius: 7px;
    border: 1px solid #dde5ef;
    margin-bottom: 11px;
    padding: 11px 12px;
}
.admin-add-form .form-control:focus {
    border-color: #019fc2;
    box-shadow: 0 0 0 1.5px #019fc233;
}



.form-control, .form-select {
   padding: 0.375rem 0.75rem;
   line-height: 1.5;
   height: auto;
 }
 
  
.form-control-file {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Styles pour les filtres du dashboard des missions */
.card-body .form-group {
    margin-bottom: 1rem;
}

.card-body .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.card-body .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    width: 100%;
    min-height: 38px;
}

.card-body .form-control:focus {
    border-color: #019fc2;
    box-shadow: 0 0 0 0.2rem rgba(1, 159, 194, 0.25);
}

.card-body select.form-control {
    padding-right: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.card-body select.form-control option {
    padding: 0.5rem;
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
}

/* Responsive pour les filtres */
@media (max-width: 768px) {
    .card-body .row > div {
        margin-bottom: 1rem;
    }
    
    .card-body .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Styles pour les métriques clés */
.dashboard-metrics-section {
    padding: 20px 35px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.metric-icon {
    background: linear-gradient(135deg, #019fc2 0%, #137ea6 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive pour les métriques */
@media (max-width: 768px) {
    .dashboard-metrics-section {
        padding: 15px 20px;
    }
    
    .metric-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 12px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
}




/* Styles spécifiques pour FullCalendar */
#calendar {
    height: 70vh;
    min-height: 600px;
    width: 100%;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.fc-header-toolbar {
    margin-bottom: 1em;
}

.fc-toolbar-title {
    font-size: 1.5em;
    color: #137ea6;
    font-weight: 600;
}

.fc-button {
    background-color: #019fc2 !important;
    border-color: #019fc2 !important;
    color: white !important;
    text-transform: capitalize;
    font-weight: 500;
}

.fc-button:hover {
    background-color: #137ea6 !important;
    border-color: #137ea6 !important;
}

.fc-daygrid-day-number {
    font-size: 1.1em;
    color: #26323b;
}

.fc-col-header-cell {
    background: #e1f3fa;
}

.fc-col-header-cell .fc-scrollgrid-sync-inner {
    padding: 10px;
}

.fc-day-today {
    background-color: #e6f4fa !important;
}

.fc-event {
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    padding: 2px 4px;
}

/* Correction pour le conteneur principal */
.container.mt-4 {
    padding-bottom: 50px;
}