body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.container a{
    text-decoration: none;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.toggle-icon {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.toggle-icon.collapsed {
    transform: rotate(180deg);
}
.detail-row {
    background-color: #f8f9fa;
    display: none; /* Masqué par défaut */
}
.detail-row td {
    padding-left: 2rem;
}
/* Styles pour le tri */
.sortable-header[data-sort]:hover {
    background-color: #e9ecef;
}
.sort-icon {
    font-size: 0.8rem;
    margin-left: 5px;
    opacity: 0.5;
}
.sortable-header[data-sort].asc .sort-icon,
.sortable-header[data-sort].desc .sort-icon {
    opacity: 1;
}

/* Cellule avec bordure rouge */
.note-min {
  /*border: 2px solid red; */
  background-color: #F7CAC0!important;
}

/* masquage colonne */
.hidden-col {
    display: none;
}


/* Cellule avec bordure verte */
.note-max {
  /*border: 2px solid green;*/
  background-color: #C0F7C1!important;  
}

       /* Responsive pour mobile */
        @media (max-width: 768px) {
            .table th, .table td {
                font-size: 0.85rem;
                padding: 0.4rem;
            }
            .toggle-icon {
                font-size: 1rem;
            }
            .sort-icon {
                display: none;
            }
            /* Masquer certaines colonnes sur petit écran */
            .hide-mobile {
                display: none;
            }
        }
        
        @media (max-width: 576px) {
            .table th, .table td {
                font-size: 0.75rem;
                padding: 0.3rem;
            }
        }


/*
* TABLEAU
*/
/*
.container-flex {
    justify-content: center;
    align-items: center; 
}
*/
.element {
    text-align: center;
}

.Vert{
    color: green;
}

.Rouge{
    color: red;
}

/*
* FORMULAIRES
*/
.StyleFormConnect{
    padding: 20px;
    margin-top: 10px;    
    margin-bottom: 20px;
    box-shadow: 2px 10px 13px -2px rgba(120,107,107,0.75);
    -webkit-box-shadow: 2px 10px 13px -2px rgba(120,107,107,0.75);
    -moz-box-shadow: 2px 10px 13px -2px rgba(120,107,107,0.75);      
}

.StyleFormConnect .form-group{
    margin: 12px;
}

.StyleFormConnect a{
    color: #655E5E;
}

#central {
    min-height: 80vh;
}

.BlocCompet{
    border: solid 1px #cecece;
    margin-left: 25px;
    margin-right: 25px;
    padding-left: 15px;
    padding-right: 15px;
}

.bootbox .modal-header{
    background-color: #DC3545;
    color: white;
    font-weight: bold;
}

/*
* STYLE POUR FENÊTRE SCAN
*/
#interactive {
    justify-content: center;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: auto;
}

canvas, video {
    width: 100%;
}

/*
* STYLE POUR LOADER IMPORT PHOTO
*/
#progress-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: none; /* caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 99999; /* au-dessus de Bootstrap modals */
}

#progress-box {
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 12px;
    text-align: center;
    width: 350px;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
}

#progress-text {
    font-weight: 600;
    margin-bottom: 12px;
}

#progress-bar-bg {
    width: 100%;
    height: 14px;
    background: #dee2e6; /* gris bootstrap */
    border-radius: 8px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: #198754; /* vert bootstrap (success) */
    transition: width 0.3s ease;
}

/* * 
Règle pour changer le curseur et ajouter un léger effet de survol 
     * aux en-têtes qui sont triables (les NbColumns premières).
     */
.sortable-header {
    cursor: pointer;
    /* Optionnel : Ajoute un léger survol au passage de la souris */
    transition: background-color 0.15s ease-in-out;
}

.sortable-header:hover {
    background-color: #f0f0f0; /* Couleur très légère au survol */
}

/* Pour s'assurer que l'indicateur est toujours clair */
.table-active th {
    color: #000;
}

/* background verts pour photo validé dans tableau verif */
.BkgValid{
    background-color:palegreen!important
}


/*
* style footer
*/
.copyright {
    text-align: center!important;
    font-size: 0.8em;
    color: #5597A5 !important;
}

.copyright a{
    text-decoration: none;
    color: #5597A5;
}