/*
* Style d'affichage liste de course (bandeau bleu pour les dates)
*/
.editor-container {
    width: 50%;
    /* This will make the editor take only half of the page */
}

.tutor-ratio-16x9 {
    position: relative;
}

.bandeau {
    position: inherit;
    bottom: 0;
    background-color: rgb(0, 106, 148);
    color: #fff;
    padding: 10px;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

/*
* Style Tableau utilisateur (page 'mon groupe')
*/

.users-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 26px;
    margin-top: 38px;
}

.user-card {
    text-align: center;
    width: 23%;
    /* 4 cards per row, with some space for the gaps */
}

.user-card .user-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.user-card .user-name {
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

.user-card .user-status.awaiting {
    background-color: orange;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px;
    display: inline-block;
}

/* Pour les écrans d'ordinateur */
@media screen and (min-width: 1200px) {
    .user-card:not(:nth-child(4n)) {
        margin-right: 2%;
    }
}

/* Pour les écrans de tablettes */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .user-card:not(:nth-child(4n)) {
        margin-right: 15%;
    }
}

@media screen and (max-width: 600px) {
    .user-card {
        width: 100%;
    }
}

.company-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group label {
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input[type="submit"] {
    grid-column: span 2;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-group input[type="submit"]:hover {
    background-color: #0056b3;
}

i.fa-plus {
    color: #3d64df;
}

i.fa-plus:hover {
    color: #ffffff;
}

.societe-card {
    background-color: #6281ec14;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: -22px;
    align-items: flex-start;
    box-shadow: 0px 0px 10px rgba(72, 125, 249, 0.37);
}

.societe-info,
.societe-stats {
    margin-right: 43px;
}

.societe-info p,
.societe-stats p {
    margin-bottom: 1px;
}

.btn-detail {
    display: block;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: 80px;
    margin-left: auto;
}

.btn-detail:hover {
    background-color: #0056b3;
    color: white;
}

.btn-edit-societe {
    background-color: #ffffff;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-detail-apprenant:hover {
    background-color: #0056b3;
    /* Blue background on hover */
    color: #ffffff;
    /* White text on hover */
}

.btn-detail-apprenant {
    background-color: #ffffff;
    color: #aa7f17;
    border: 2px solid #aa7f17;
    padding: 5px 20px;
    font-size: 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-detail-apprenant-modif {
    background-color: #ffffff;
    color: #3d64df;
    border: 2px solid #3d64df;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button-container {
    text-align: center;
    margin-top: 16px;
}

.btn-detail-apprenant:hover {
    background-color: #aa7f17;
    /* Blue background on hover */
    color: #ffffff;
    /* White text on hover */
}

.apprenant-info,
.apprenant-stats {
    margin-right: 43px;
}

.apprenant-info p,
.apprenant-stats p {
    margin-bottom: 1px;
}

.apprenants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.apprenants-table td {
    text-align: left;
}


.apprenants-table tr {
    border: none;
}

.apprenants-table td {
    padding: 0;
    border: none;
}

.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 0.8em;
    vertical-align: super;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.apprenant-card {
    position: relative;
    padding: 20px;
    border: 1px solid #b9b4b4;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 37px;
    box-shadow: 0px 0px 10px rgba(9, 9, 9, 0.37);
}

.ruban {
    position: absolute;
    top: -3px;
    right: -33px;
    background-color: #3d64df;
    color: white;
    padding: 5px 0;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 100px;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


.input-hint {
    display: none;
    color: red;
    font-size: 0.9em;
    margin-top: -16px;
}

.mess-info-societe {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #156b95;
    font-size: 17px;
    font-weight: bold;
    border: 1px solid #156b95;
    padding: 12px;
    background-color: #eff2f9;
    box-shadow: 3px 3px 12px rgba(9, 9, 9, 0.37);
    margin-bottom: 30px;
}

.search-siret {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.button-form {
    text-align: center;
    color: #156b95;
    border: 1px solid #156b95;
    font-size: 14px;
    padding: 14px 11px;
    border-radius: 12px;
    cursor: pointer;
    transition: color 200ms ease-in-out, background-color 200ms ease-in-out, border-color 200ms ease-in-out;
}

.button-form:hover {
    text-align: center;
    color: #fff;
    border: 1px solid #156b95;
    font-size: 14px;
    padding: 14px 11px;
    border-radius: 12px;
    cursor: pointer;
    background-color: #156b95;
}

/*#siret {
    width: 25%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #a2a2a2;
    border-radius: 8px;
    background-color: #fdfdfd;
    margin-top: 7px;
}*/

#siret:focus {
    border-color: #0d4d71;
    outline: none;
}

#edit-societe-form {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 0px;
    box-shadow: 0px 8px 12px 0px rgba(72, 125, 249, 0.37);
    border-top: none;
    margin-top: 0px;
}

#edit-societe-form .form-group {
    flex: 1 1 45%;
    /* Réduire la base à 45% pour s'assurer qu'il y ait de l'espace pour deux colonnes */
    min-width: 260px;
    /* Ajuster la largeur minimum si nécessaire */
    display: flex;
    flex-direction: column;
}

#edit-societe-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

#edit-societe-form input,
#edit-societe-form button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#edit-societe-form .tutor-btn-outline-primary {
    background-color: #3d64df;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#edit-societe-form .tutor-btn-outline-primary:hover {
    background-color: #2a4aab;
}

#edit-societe-form .tutor-btn-ghost {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #edit-societe-form {
        flex-direction: column;
    }

    #edit-societe-form .form-group {
        flex: 1 1 100%;
        /* Sur mobile, chaque champ prend 100% de la largeur */
    }
}

.action-panel {
    display: none;
    margin-top: 10px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.action-select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination {
    text-align: center;
    font-size: 16px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #0073aa;
    color: #0073aa;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #005691;
    color: #ffffff;
}

.pagination span {
    background-color: #0073aa;
    color: #ffffff;
}

.search-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* Alignement vertical des enfants */
    margin-bottom: 20px;
}

.custom-search-input {
    padding: 10px;
    /* Augmente le padding pour agrandir légèrement l'input */
    border: 1px solid #ccc;
    border-right: none;
    /* Enlève la bordure droite pour fusionner visuellement l'input avec le bouton */
    border-radius: 5px 0 0 5px;
    /* Bord arrondi à gauche */
}

.search-button {
    background-color: #ffffff;
    color: #3d64df;
    border: 2px solid #3d64df;
    padding: 10px 20px;
    font-size: 16px;
}

.search-button:hover {
    background-color: #2c4ab2;
}

.custom-search-input::placeholder {
    color: #000;
    /* Définit la couleur du texte du placeholder en noir */
}

.search-and-add-container {
    margin-top: 20px;
    margin-bottom: -20px;
}

#edit-societe-form {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px 0 4px 6px rgba(72, 125, 249, 0.37);
    color: #333;
    margin-bottom: 20px;
}

#edit-societe-form .form-group {
    margin-bottom: 20px;
}

#edit-societe-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #333;
}

#edit-societe-form .form-group input[type="text"],
#edit-societe-form .form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#edit-societe-form .checkbox-group,
#edit-societe-form .checkbox-special {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#edit-societe-form .metier-checkbox,
#edit-societe-form .checkbox-special {
    margin-bottom: 10px;
}

#create-society-form .checkbox-group,
#create-society-form .checkbox-special {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#create-society-form .metier-checkbox,
#create-society-form .checkbox-special {
    margin-bottom: 10px;
}
#create-society-form .appsubmit-button {
    margin-top: 32px;
    display: block;
}

#edit-societe-form input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3d64df;
    border-radius: 16px;
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
}

#edit-societe-form input[type="checkbox"]:checked {
    background-color: #3d64df;
}

#edit-societe-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#edit-societe-form .tutor-btn {
    margin-top: 15px;
}

#edit-societe-form .tutor-btn-outline-primary {
    background-color: #3d64df;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
}

#edit-societe-form .tutor-btn-ghost {
    background-color: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 15px;
}

#edit-societe-form .error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.error-field+.input-hint {
    display: block;
}

form.company-form-grid .form-group input.error-field {
    border: 2px solid red;
    background-color: #ffe6e6;
}

#edit-societe-form .metier-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metier-checkbox {
    display: flex;
    align-items: center;
}

.metier-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #3d64df;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.metier-checkbox input[type="checkbox"]:checked {
    background-color: #3d64df;
}

.metier-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.metier-checkbox label {
    font-size: 15px;
    color: #333;
    user-select: none;
}
#autre-metier-input {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.app-button {
    margin-top: 63px;
}

#edit-societe-form .unplus-cancel {
    background-color: #dfaf3d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
}

/* Aligner le bouton sur une ligne complète */
.save-apprenant {
    width: 100%;
    margin: 20px auto 0; /* Centrer le bouton */
}

.show-flex {
    display: flex !important;
}
/* Assure une largeur cohérente pour tous les champs du formulaire de société */
.company-input-group input[type="text"],
.company-input-group input[type="email"],
.company-input-group input[type="password"] {
    width: 100%; /* Assure que chaque champ prend toute la largeur disponible */
    box-sizing: border-box; /* Pour que padding n'affecte pas la largeur */
}

/* Styles pour les messages d'erreur */
#create-user-form .error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Met en évidence les champs avec une erreur */
#create-user-form .company-input-group input.error-field {
    border: 2px solid red;
    background-color: #ffe6e6;
}

/* Pour afficher un hint lié aux champs en erreur */
#create-user-form .error-field + .input-hint {
    display: block;
}

.error-inscription {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: solid;
    padding: 12px 12px 12px 12px;
    font-weight: bold;
}
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-popup-content {
    background: #fff;
    padding: 20px;
    text-align: center;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-popup-button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.custom-popup-button:hover {
    background: #005a87;
}

/* Nouveau conteneur pour permettre la superposition */
.apprenant-card-wrapper {
    position: relative;
}

/* Style pour griser la carte et désactiver l'interaction */
.disabled-card {
    background-color: #e0e0e0; /* Couleur de fond grisée */
    opacity: 0.5;
    pointer-events: none; /* Désactive les interactions sur la carte */
}

/* Bouton "Envoyer mail de relance" en position absolue pour être au-dessus de la carte */
.btn-mail-relance {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: #3e64de;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10; /* Assure la superposition au-dessus de la carte */
}

.btn-mail-relance:hover {
    background-color: #2d4fb0;
}

/*CSS à supprimer des que Export file est effectué*/
/* Style pour griser et désactiver le lien */
.tutor-dashboard-menu-item.disabled .tutor-dashboard-menu-item-link {
    color: #b0b0b0 !important; /* Couleur gris clair pour le texte */
    cursor: not-allowed !important; /* Curseur désactivé */
}

/* Style pour griser l'icône */
.tutor-dashboard-menu-item.disabled .tutor-dashboard-menu-item-icon {
    color: #b0b0b0 !important; /* Gris clair pour l'icône */
}

/* Style pour l'info-bulle au survol */
.tutor-dashboard-menu-item.disabled .tutor-dashboard-menu-item-link[data-tooltip]:hover::after {
    content: attr(data-tooltip); /* Affiche l'info-bulle */
    position: absolute;
    bottom: 100%; /* Place l'info-bulle au-dessus de l'élément */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* Couleur de fond de l'info-bulle */
    color: #fff; /* Couleur du texte */
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* Fixe la position du conteneur pour l'info-bulle */
.tutor-dashboard-menu-item {
    position: relative;
}

/*
* Style pour la page de contenu de la formation
 */
.formation-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.formation-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.formation-left {
    flex: 3;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.1);
}

.bloc-section-choice-right {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 1px 1px 10px 4px rgba(0, 37, 96, 0.22);
}

.bloc-section-enroll-right {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 1px 1px 10px 4px rgba(121, 63, 0, 0.32);
    margin-top: 30px;
    margin-bottom: 20px;
}

.formation-right {
    flex: 1; /* Section droite prend moins d'espace */
    position: sticky; /* Garde la section fixe si nécessaire */
    top: 6px; /* Ajuste en fonction de ton design */
}

.formation-title {
    font-size: 24px;
    font-weight: bold;
    line-height: normal;
    margin-bottom: 0;
}

.formation-section {
    background-color: #f7f7f7;
    margin-left: 0px;
    margin-right: 30px;
    padding: 4px 6px 2px 8px;
    border-radius: 8px;
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.formation-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    text-align: center;
    color: #fff;
    background-color: #0073aa;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn:hover {
    background-color: #005885;
}

.price-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.extra-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-actions .btn {
    background-color: #4CAF50;
}

.extra-actions .btn:last-child {
    background-color: #0073aa;
}
.formation-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid #ddd;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-right: 10px;
    font-weight: bold;
}

.tab-item.active {
    border-bottom: 2px solid #0073e6;
    color: #0073e6;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}
.formation-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Espacement entre les deux colonnes */
}

.formation-main-content {
    display: flex;
    flex: 3;
}

.formation-main {
    flex: 2;
}

.unplus-inscription-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.formation-right {
    align-self: flex-start;
    padding: 20px;
    /*background-color: #f9f9f9;
    border: 1px solid #e0e0e0;*/
    border-radius: 8px;
    margin-top: 132px;
    margin-left: 55px;
}

.tarif-formation-right {
    margin-bottom: 20px;
    text-align: center;
}

.bloc-section-choice-right {
    margin-bottom: 20px; /* Espacement entre la sélection et les actions supplémentaires */
}

.tab-content {
    margin-top: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
table th {
    background-color: #f4f4f4;
}
.pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: blue;
}

/* Ajuster l'en-tête contenant le mois et l'année */
.flatpickr-current-month {
    display: flex; /* Affiche le mois et l'année sur une seule ligne */
    align-items: center; /* Aligne verticalement les éléments */
    justify-content: space-between; /* Espace égal entre les éléments */
    gap: 5px; /* Ajoute un petit espace entre les éléments */
    padding: 0 10px; /* Ajoute de l'espace à gauche et à droite */
}

/* Ajuste le champ d'année */
.flatpickr-current-month .numInput.cur-year {
    width: 60px; /* Ajuste la largeur pour plus de lisibilité */
    height: 30px; /* Ajuste la hauteur */
    text-align: center; /* Centre le texte */
    font-size: 14px; /* Taille de police lisible */
    border: 1px solid #ccc; /* Ajoute une bordure grise */
    border-radius: 4px; /* Arrondi les coins */
}

/* Ajuste les flèches haut/bas */
.flatpickr-current-month .numInput.cur-year {
    width: 70px !important;
    text-align: left !important;
    margin: 0;
    border: 1px solid #ccc;
}

/* Ajoute un espace entre le champ année et les flèches */
.flatpickr-current-month .numInputWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 5px; /* Ajoute un espace entre le champ mois et le champ année */
}

/* Amélioration du style pour le champ de mois */
.flatpickr-current-month select.flatpickr-monthDropdown-months {
    padding: 5px 10px; /* Ajoute de l'espace interne */
    font-size: 14px; /* Taille de police lisible */
    border: 1px solid #ccc; /* Bordure grise */
    border-radius: 4px; /* Coins arrondis */
    background-color: #fff; /* Fond blanc */
    cursor: pointer; /* Curseur pointeur */
}

/* Effet hover sur les flèches */
.flatpickr-current-month .numInputWrapper .arrowUp:hover,
.flatpickr-current-month .numInputWrapper .arrowDown:hover {
    background-color: #f0f0f0; /* Fond clair au survol */
    border-radius: 2px;
}

.select2-results__option--highlighted {
    background-color: #e0e0e0 !important;
    color: #000 !important;
    border-radius: 4px;
}
/* Formulaire de filtres */
#filter-form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Assure un espacement entre les éléments */
    align-items: flex-start;
}

.filter-container {
    min-width: 250px;
    margin-bottom: 10px; /* Espace supplémentaire entre les lignes */
}

.filter-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filter-button {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #005bb5;
}

.order-card {
    background-color: #f8f9fa;
    border: 1px solid #b9b4b4;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(9, 9, 9, 0.37);
    transition: box-shadow 0.3s ease; /* Ajoute une transition fluide */
}

.order-card-content {
    width: 100%;
    position: relative;
    padding-bottom: 20px; /* Espace pour le bouton */
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-title h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-weight: bold;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.status-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-danger {
    background-color: #ffebee;
    color: #c62828;
}

.status-warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-remboursement {
    background-color: #ffe4ef;
    color: #a8005a;
}

.status-remboursement-partiel {
    background-color: #fff3e0;
    color: #c57600;
}

.order-items-header {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
}

.order-items-header h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.order-items-table th {
    background-color: #f5f5f5;
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.order-items-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
    text-align: left;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.order-items {
    margin: 20px 0 20px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
}

.product-name {
    font-weight: 500;
    margin: 0;
    color: #333;
}

.collaborator-name {
    color: #666;
    font-size: 0.9em;
    margin: 2px 0 0 0;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.order-total {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.order-total .price {
    color: #3f64de;
    font-weight: bold;
}

.btn-invoice {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3f64de;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-invoice:hover {
    background-color: #2f4ba0;
}

.details-toggle {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    text-align: center;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 4px;
    color: #1a1b1e;
}

.details-toggle:hover {
    background: #ebebeb !important;
    color: #1a1b1e !important;
}

.details-content {
    margin-top: 1rem;
}

/* CSS affichage Quiz bloqué */
.mon-message-quiz {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.message-quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.message-quiz-header .fa-lock {
    font-size: 3.5rem;
    color: #4154f1;
    margin-bottom: 1rem;
    display: block;
}

.message-quiz-header h3 {
    font-size: 2.5rem;
    color: #4154f1;
    margin: 0;
    font-weight: 600;
}

.message-quiz-content {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
}

.main-message {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.date-message {
    background: rgba(65, 84, 241, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.date-message .fa-calendar-alt {
    margin-right: 0.5rem;
    color: #4154f1;
}

/* Animation */
.mon-message-quiz {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mon-message-quiz {
        margin: 1rem;
        padding: 1.5rem;
    }

    .message-quiz-header .fa-lock {
        font-size: 2.5rem;
    }

    .message-quiz-header h3 {
        font-size: 2rem;
    }

    .message-quiz-content {
        font-size: 1.1rem;
    }
}
.back-to-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: #4154f1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-dashboard:hover {
    background-color: #2a3cc5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(65, 84, 241, 0.2);
}

.back-to-dashboard .fa-arrow-left {
    font-size: 0.9em;
}

/*
* Responsive page contenu-formation
 */
/* CSS Responsive pour la page formation - À ajouter à ton fichier CSS existant */

/* Media queries pour mobile et tablette */
@media (max-width: 768px) {
    /* Container principal */
    .formation-container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    /* Content principal */
    .formation-main-content {
        flex-direction: column;
    }

    /* Section droite - Repositionnement */
    .formation-right {
        position: static !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        padding: 15px;
        order: -1; /* Place la section droite en haut sur mobile */
    }

    /* Section gauche */
    .formation-left {
        padding: 15px;
        margin-right: 0;
    }

    /* Titre de la formation */
    .formation-title {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Onglets responsive */
    .formation-tabs {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
    }

    .tab-item {
        padding: 8px 12px;
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 14px;
        border-radius: 4px;
        background-color: #f5f5f5;
    }

    .tab-item.active {
        background-color: #0073e6;
        color: white;
        border-bottom: none;
    }

    /* Sections de formation */
    .formation-section {
        margin-right: 0;
        padding: 8px 12px;
        margin-bottom: 15px;
    }

    .formation-section h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* Prix et titre */
    .price-title {
        font-size: 18px;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Formulaire d'inscription */
    .inscription-form {
        gap: 12px;
    }

    .form-select {
        padding: 12px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }

    /* Boutons */
    .btn {
        padding: 1px 20px;
    }

    .extra-actions {
        gap: 12px;
    }

    /* Tableau des sessions */
    .sessions-table {
        font-size: 14px;
    }

    .sessions-table th,
    .sessions-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    /* Cache certaines colonnes sur très petit écran */
    .sessions-table th:nth-child(3),
    .sessions-table td:nth-child(3) {
        display: none; /* Cache la colonne lieu */
    }

    /* Section prochaine session */
    .prochaine-session-info {
        padding: 15px;
        margin-bottom: 15px;
    }

    .prochaine-session-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .prochaine-session-details p {
        font-size: 14px;
        margin: 6px 0;
    }

    /* Avis */
    .note-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .note-globale {
        min-width: auto;
    }

    .note-bars {
        max-width: 100%;
    }

    .note-bar-row {
        gap: 0.5rem;
    }

    .evals-count {
        min-width: auto;
        font-size: 0.8rem;
    }

    /* Commentaires d'avis */
    .avis-comment {
        flex-direction: column;
        gap: 1rem;
    }

    .avatar-container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .avis-container,
    .avis-comments {
        padding: 1rem;
    }

    /* Modal responsive */
    .inscription-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
    }

    .collaborateurs-table-container {
        max-height: 250px;
        font-size: 14px;
    }

    .collaborateurs-table th,
    .collaborateurs-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    /* Popup responsive */
    .custom-popup-content {
        width: 90%;
        margin: 20px;
        padding: 20px;
    }
}

/* Media query pour très petits écrans */
@media (max-width: 480px) {
    .formation-container {
        padding: 5px;
    }

    .formation-left,
    .formation-right {
        padding: 10px;
    }

    .formation-title {
        font-size: 18px;
    }

    .tab-item {
        padding: 6px 8px;
        font-size: 12px;
    }

    .price-title {
        font-size: 16px;
    }

    .sessions-table th:nth-child(2),
    .sessions-table td:nth-child(2) {
        display: none; /* Cache aussi la modalité sur très petit écran */
    }

    .note-moyenne {
        font-size: 2.5rem;
    }
}

/* Amélioration générale pour tous les écrans */
@media (max-width: 1024px) {
    .formation-container {
        max-width: 100%;
        padding: 15px;
    }

    .formation-main-content {
        gap: 15px;
    }

    .formation-right {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Fix pour les input select sur iOS */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zM0 3l2 2 2-2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Assure-toi que les images sont responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix pour les tableaux débordants */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Améliore l'accessibilité tactile */
.btn,
.tab-item,
.select-session {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.unplus-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unplus-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff !important;
    text-decoration: none;
}

.unplus-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.unplus-action-btn:hover::before {
    left: 100%;
}

.unplus-color-green {
    background: #28a745;
    color: #fff;
}
.unplus-color-red {
    background: #dc3545;
    color: #fff;
}
.unplus-color-blue {
    background: #007bff;
    color: #fff;
}
.unplus-color-orange {
    background: #fd7e14;
    color: #fff;
}
.unplus-color-purple {
    background: #6f42c1;
    color: #fff;
}
.unplus-color-gray {
    background: #6c757d;
    color: #fff;
}
.unplus-color-teal {
    background: #20c997;
    color: #fff;
}

/* ========================================
   SYSTÈME DE BADGES DE STATUT PROFESSIONNELS
   ======================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    position: relative;
    min-width: fit-content;
    white-space: nowrap;
}

.status-badge i {
    font-size: 10px;
}

/* ========================================
   VARIANTES DE COULEURS POUR STATUTS
   ======================================== */

/* Succès / Validation / Payé */
.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-color: rgba(40, 167, 69, 0.2);
}

.status-success i {
    color: #28a745;
}

/* Attention / En attente */
.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.2);
}

.status-warning i {
    color: #ffc107;
}

/* Information / En cours */
.status-info {
    background: rgba(0, 123, 255, 0.1);
    color: #004085;
    border-color: rgba(0, 123, 255, 0.2);
}

.status-info i {
    color: #007bff;
}

/* Erreur / Refusé */
.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.2);
}

.status-danger i {
    color: #dc3545;
}

/* Inactif / Clôturé */
.status-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    border-color: rgba(108, 117, 125, 0.2);
}

.status-secondary i {
    color: #6c757d;
}

/* Sombre / Archivé */
.status-dark {
    background: rgba(52, 58, 64, 0.1);
    color: #212529;
    border-color: rgba(52, 58, 64, 0.2);
}

.status-dark i {
    color: #343a40;
}

/* ========================================
   VARIANTES DE TAILLE
   ======================================== */

.status-badge-sm {
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 15px;
}

.status-badge-lg {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 25px;
}

/* ========================================
   EFFET PULSE POUR STATUTS ACTIFS
   ======================================== */

.status-pulse {
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0% {
        box-shadow: 0 0 0 0 currentColor;
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 3px transparent;
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
        opacity: 1;
    }
}

/* ========================================
   STATUTS AVEC DOT INDICATOR
   ======================================== */

.status-badge.status-with-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    margin-right: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .status-badge i {
        font-size: 9px;
    }
}
