:root {
    --custom-primary: #00457C;   /* Bleu foncé (Header) */
    --custom-success: #558B2F;   /* Vert olive (Actions/Principal) */
    --custom-warning: #F57C00;   /* Orange */
}
body{
    font-size: 1rem !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    line-height: 1.5 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;

}


.btn-login {
    background: linear-gradient(135deg, #084F9C 0%, #063d79 100%);
    color: white !important;
    border: none;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(8, 79, 156, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 79, 156, 0.4);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(0);
}
#navbarSupportedContent .nav-item.active a {
    color: #ffffff;
    border-bottom:solid;
}
.navbar {
    background-color: #242426;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}
.navbar-brand img {
    height: 30px;
    margin-right: 10px;
}
footer{
    background-color: #242426;
    color: #333;
    box-shadow: 0px -5px 10px -5px rgba(0, 0, 0, 0.1);
}
.stagiaire_content {
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    min-height: calc(100vh - 100px) !important ;
    background-color:rgba(255, 255, 255, 0.7);
}
#prochains_seances ul li{
    border-left: 2px solid;
    border-bottom: 0;
    border-left-color: #084f9ca6;
    margin-bottom: 7px;
    transition: transform 0.6s ease-in-out;
}#prochains_seances{
     margin-top: 7px;
     margin-bottom: 7px;
     border-right: 0 solid;
     border-right-color: #084f9ca6;
 }
.ombrage{
    box-shadow: 0 .5rem 1rem #00000026;
}
#prochains_seances ul li:hover{
    background-color: #cfe2ff;
}
.lieu{
    color: #000000
}
#notif_box{
    min-height: 20px;
}
.titre_entete h1 {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 124%;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #024CBB !important;
    line-height: 32px;
    color: #fff;
    border-radius: 5px;
}
.menuSubtitle{
    font-size: 13px;
    margin: 8px 0 30px;
    color: #6d6d6c;
}
.ins_en_cours_box{
    border-radius: 3px;
    border: 1px solid #7979f1;
    margin-top: 10px;
}
.table {
    --bs-table-hover-bg: #cfe2ff !important;
}
.tr-head{
    background-color: #cfe2ff !important;
}
.stagiaire_content a  {
    text-decoration: none;
    /*color: unset;*/
}
.stagiaire_content a li:hover{
    /*background-color: #cfe2ff !important;*/
}
.card {
    box-shadow: 0 5px 10px 0 rgba(0,0,0,.1), 0 2px 2px 0 rgba(0,0,0,.06);
}
.card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    background-color: #fff !important;
    background-clip: border-box !important;
    border: 0 solid rgba(0,0,0,.125) !important;
    border-radius: .25rem !important;
}
.card-header{
    background-color: #7979f112 !important;
}
.fw-bold{
    color: #4d4d4c !important;
}
#ajax-loading {
    display: none; /* Caché initialement */
    position: fixed;
    top: 50%;
    left: 50%;
    /*transform: translate(-50%, -50%);*/
    z-index: 2;
    border-radius: 50%;
    /*width: 3% !important;*/
}


.form_content {
    min-height: 333px;
}

#submitBtn {
    display: none;
}

.completion-form .step {
    display: none;
}

.completion-form .step-header .steplevel {
    position: relative;
    flex: 1;
    padding-bottom: 30px;
}

.completion-form .step-header .steplevel.active {
    font-weight: 600;
    text-decoration: underline;
}

.completion-form .step-header .steplevel.finish {
    font-weight: 600;
    color: #009688;
}

.completion-form .step-header .steplevel::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 9;
    width: 20px;
    height: 20px;
    background-color: #d5efed;
    border-radius: 50%;
    border: 3px solid #ecf5f4;
}

.completion-form .step-header .steplevel.active::before {
    background-color: #3fbdb4;
    border: 3px solid #d5f9f6;
}

.completion-form .step-header .steplevel.finish::before {
    background-color: #3fbdb4;
    border: 3px solid #3fbdb4;
}

.completion-form .step-header .steplevel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 100%;
    height: 3px;
    background-color: #f3f3f3;
}

.completion-form .step-header .steplevel.active::after {
    background-color: #a7ede8;
}

.completion-form .step-header .steplevel.finish::after {
    background-color: #009688;
}

.completion-form .step-header .steplevel:last-child:after {
    display: none;
}

input[readonly] {
    background-color: #f4f4f4; /* Couleur de fond gris clair */
    color: #333; /* Couleur de texte noire */
    cursor: not-allowed; /* Curseur interdit pour indiquer qu'il est en lecture seule */
}

.error {
    font-size: 13px;
    color: #dc3545;
    font-weight: bold;
}

.has-error .form-control {
    border-color: #a94442;
}
.titre_entete{
    position: sticky;
    top: 64px; /* hauteur exacte du header principal */
    z-index: 900;
}
.flash-fixed-bottom {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: min(420px, calc(100% - 2rem));
}

.flash-fixed-bottom .alert {
    margin-bottom: .5rem;
}
.etablissement-utilisateur .nom-etablissement {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 0;
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

/*new interface*/
.formation_infos {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    position: relative;
    overflow: hidden;
}

.btn-switch {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}


.btn-switch:hover {
    background: white;
    color: #6366f1 !important;
}
.btn-switch {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
/* NOTIFICATIONS */
.notif-box {
    border-radius: 18px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid transparent;
}

.notif-urgent {
    background: #fff1f2;
    border-color: #fecdd3;
}

.notif-warning {
    background: #fffbeb;
    border-color: #fef3c7;
}

.notif-info {
    background: #eff6ff;
    border-color: #dbeafe;
}

.notif-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* CORRECTION HOVER BOUTON CONTACT */
.btn-contact-custom {
    background: #f0f2f5!important;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-contact-custom:hover {
    background: #4f46e5 !important;
    color: white !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.gestionnaire-widget {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
}

.seance-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.seance-card:hover {
    border-color: #6366f1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.date-pill {
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
    min-width: 55px;
    text-align: center;
    font-weight: 800;
    color: #475569;
}
.toast {
    border-radius: 16px;
}
.toast-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.toast-container-inline {
    position: static !important;   /* annule fixed / absolute */
    width: 100%;
}

.toast-container-inline .toast {
    position: relative;
    max-width: 100%;
}
.toast-mission {
    --bs-toast-bg: #fef2f2;
    --bs-toast-border-color: #dc3545;
}
.toast-mission .toast-header {
    background-color: #dc3545;
    color: #fff;
}
.toast-contrat {
    --bs-toast-bg: #fffbeb;
    --bs-toast-border-color: #f59e0b;
}
.toast-contrat .toast-header {
    background-color: #f59e0b;
    color: #1f2937;
}
.toast-personnel {
    --bs-toast-bg: #eff6ff;
    --bs-toast-border-color: #2563eb;
}
.toast-personnel .toast-header {
    background-color: #2563eb;
    color: #fff;
}
.date-pill {
    width: 72px;
    min-width: 72px;
    background: rgb(248, 250, 252);
    border-radius: 16px;
    padding: 8px 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    font-family: inherit;
}

.date-day {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #64748b;
}

.date-number {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.date-month {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #475569;
}

.date-year {
    font-size: 0.65rem;
    color: rgb(97, 116, 152);
}
.date-day {
    background-color: #4f46e5;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    margin-bottom: 4px;
}
.page-header-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(67, 97, 238, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.card-title-icon {
    width: 35px;
    height: 35px;
    background: #eff6ff;
    color: #4f46e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0;
}
.div_alternance {
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    border-radius: 16px;
    padding: 1rem;
}
.div_visa_mission {
    background: #fffbeb;
    border: 1px dashed #dc3545;
    border-radius: 16px;
    padding: 1rem;
}
/* Mission Principale */
.main-mission-card {
    background: #f0f4ff;
    border: 2px solid #4361ee;
    border-radius: 16px;
    position: relative;
}
.main-mission-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #4361ee;
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.accordion .accordion-header-validee {
    background-color: #d4edda;
}

.visa-btn {
    background: #2ec4b6;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(46, 196, 182, 0.2);
}
.visa-btn:hover { 
    background: #27ad9f; 
    transform: translateY(-2px); 
    color: white; 
}

/*PROFIL USER*/
.card-profile {

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    font-weight: 800;
    color: #084F9C;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    font-size: 2rem;
}

.data-row {
    padding: 10px 0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.data-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.missing-data {
    background: #fff1f2;
    color: #D5294B;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.box_notif_danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 5px solid #ef4444;
    border-radius: 12px;
    padding: 1rem;
}

.btn-edit-cerfa {
    background: linear-gradient(135deg, #084F9C 0%, #024CBB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-edit-cerfa:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 79, 156, 0.3);
    color: white;
}
/*FIN PROFIL USER */
input[type=date] {
    width: 100% !important;
}