.cc-container {
    background-color: #f3f3f3 !important;
    padding: 1rem 2rem .5rem 2rem;
}

.list-group-item.contrat {
    max-width: 100%;
    word-break: break-word;
    position: relative;
}

/*.list-group-item.contrat > .contrat-action {*/
/*    min-width: 3rem;*/
/*    display: flex;*/
/*}*/

.btn-contrat {
    text-align: left !important;
    border: none !important;
}

.list-group-contrat {
    background: #fff;
    margin: 0 0 1rem 0;
    padding: 0 0 10px 0;
    transition: .5s;
}

.cc-info {
    background: rgb(77, 131, 255);
    background: linear-gradient(45deg, rgba(77, 131, 255, 1) 0%, rgb(13, 90, 245) 99%);
    padding: .5rem 1rem;
    color: white;
    margin-bottom: .5rem;
}

.list-group-contrat:hover {
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    transform: scale(1.002);
}

.list-group-contrat.active {
    border: 1px solid #4d83ff;
}

a.contrat-btn {
    transition: 0.3s;
    border-left: 2px solid;
    padding: 0 5px;
    box-sizing: border-box;
    margin: 0 5px;
}

a.contrat-btn .c-label {
    display: none;
    transition: 0.3s;
}

a.contrat-btn:hover {
    background: rgb(255, 255, 255);
    color: #00337a !important;
    text-decoration: none;
    border-radius: 3px;
    padding: 0 5px;
    border: 2px solid;
}

.contrat-btn:hover .c-label {
    display: inline-block;
}


.contrat-qualiopi {
    padding-top: 1rem;
    margin-bottom: 1rem;
    background-color: #ececec !important;
    border: 1px solid #007bff;
    border-radius: 10px;
}

.qualiopi-header {
    font-size: 20px;
    display: flex;
    margin-bottom: 1rem;
}

.qualiopi-header .badge {
    border-radius: 5px !important;
}

.qualiopi-header > .qualiopi-item {
    font-weight: bolder;
    margin-right: .5rem;
}

.site-contrat {
    min-width: 15rem;
    min-height: 15rem;
}

.site-lists {
    border-radius: 5px;
    border: 1px solid #007bff;
    background-color: #ececec !important;
    margin-bottom: 3rem;
    position: relative;
}

.site-lists > .s-message {
    position: absolute;
    bottom: -2rem;
}

.organisme-card {
    background-color: #eaeaea;
    min-width: 16rem;
    max-width: 16rem;
    word-break: break-word;
    padding: .5rem 1rem;
    border-radius: 5px;
    transition: .5s border;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.organisme-card:hover {
    border: 1px solid #0c59db;
}

#list-contrat a {
    font-size: 20px;
}

.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: sideways;
}

.bg-primary-bci {
    background-color: #6898ef !important;
}

.cat {
    margin: 4px;
    background-color: #9b9b9b;
    border-radius: 4px;
    border: 1px solid #fff;
    overflow: hidden;
    float: left;
}

.cat label {
    float: left;
    line-height: 2em;
    height: 2em;
}

.cat label span {
    text-align: center;
    padding: 3px 1rem;
    display: block;
    cursor: pointer;
}

.cat label span:hover {
    background: #007bff;
}

.cat label input {
    position: absolute;
    display: none;
    color: #fff !important;
}

/* selects all of the text within the input element and changes the color of the text */
.cat label input + span {
    color: #fff;
}


/* This will declare how a selected input will look giving generic properties */
.cat input:checked + span {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}


/*
This following statements selects each category individually that contains an input element that is a checkbox and is checked (or selected) and chabges the background color of the span element.
*/

.action input:checked + span {
    background-color: #F75A1B;
}

.serious input:checked + span {
    background-color: #1BB8F7;
}

.crime input:checked + span {
    background-color: #D9D65D;
}

.history input:checked + span {
    background-color: #82D44E;
}

.reality input:checked + span {
    background-color: #F3A4CF;
}

.news input:checked + span {
    background-color: #8C1B1B;
}

.scifi input:checked + span {
    background-color: #AC9BD1;
}

.sports input:checked + span {
    background-color: #214A09;
}

.small-btn {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    padding: 0;
}

.top-0 {
    top: 0 !important;
}

.start-100 {
    left: 100% !important;
}

.translate-middle {
    transform: translate(-50%, -50%) !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.custom-shadow {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
}

body.sidebar-icon-only .site-name {
    display: none;
}

.site-name {
    display: block;
}


.file-upload .file-upload-select {
    display: block;
    color: white;
    cursor: pointer;
    text-align: left;
    background: #007bff;
    overflow: hidden;
    position: relative;
    border-radius: 6px 0 0 6px;
}

.file-upload .file-upload-select .file-select-button {
    background: #52a9ff;
    padding: 10px;
    display: inline-block;
}

.file-upload .file-upload-select .file-select-name {
    display: inline-block;
    padding: 10px;
}

.file-upload .file-upload-select:hover .file-select-button {
    background: #324759;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.file-upload .file-upload-select input[type="file"] {
    display: none;
}

.file-upload .btn-file-upload {
    background: #324759;
    color: whitesmoke;
    border-radius: 0 6px 6px 0;
}

.check-filter-container {
    position: relative;
    border-radius: 5px;
    padding-right: 30px;
}

.check-filter {
    margin: 1rem 0;
    flex-wrap: wrap;
    border-radius: 5px 0 0 5px;
    display: flex;
    justify-content: space-around;
    background: #324759;
    color: white;
    position: relative;
    padding-right: 5px;
}

.check-filter-container .submit-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: #007bff;
    color: #fff;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 100%;
    border-radius: 0 5px 5px 0;
}

.gradient-custom {
    /* fallback for old browsers */
    background: #65d4f6;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right bottom, rgb(101, 241, 246), rgb(133, 185, 253));

    background: linear-gradient(45deg, #c01a40, #8d1430);

}

.paint-canvas {
    border: 1px black solid;
    display: block;
    margin: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100000;
}

.color-picker {
    margin: 1rem 1rem 0 1rem;
}

blockquote p {
    padding: 15px;
    background: #eee;
    border-radius: 5px;
    border-left: 5px solid #9982e7;
}

.note-btn {
    font-size: 20px;
    position: relative;
    top: 2px;
    color: #0f9d58;
    cursor: pointer;
}

.note-btn:hover {
    color: rgba(15, 157, 88, 0.53);
}

.map-container {
    width: 100%;
    height: 70vh;
}

.inputTableau:focus {
    width: 300px;
}

.f-titre, label.f-titre {
    padding: 0;
    font-weight: bold !important;
    font-size: 1rem !important;
}

.xl-text {
    font-size: 2rem;
}

.md-text {
    font-size: 1rem;
}

.section-rappel > p {
    font-size: 1rem;
}

.bg-gray {
    background: #c0bfbf !important;
}

.red-placeholder::-webkit-input-placeholder {
    color: rgba(0, 13, 255, 0.54);
}

.form-control, select.form-control {
    /*border-radius: 5px;*/
    /*border: 1px solid #848484;*/

    border: 1px solid #555555;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    outline: none;
}

.table td {
    padding: 0.5rem !important;
}

.td-bleu {
    background-color: #4a7ef6;
    color: #fff;
}

.t-btn {
    padding: 5px;
    border-radius: 5px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.contact-card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #fff;
    width: 300px;
}

.contact-info {
    padding: 15px;
}

.contact-info h3, .contact-info p {
    margin: 5px 0;
}

.contact-info .email, .contact-info .phone {
    font-size: 0.9em;
    color: #555;
}

.site-card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #fff;
    width: 300px;
}

.my-shadow-1 {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.site-info {
    padding: 15px;
}

.site-info h3, .site-info p {
    margin: 5px 0;
}

.label-container {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.label {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    color: #fff;
}

.valid {
    background-color: #4a7ef6;
}

.invalid {
    background-color: grey;
}

.table-bordered-big th, .table-bordered-big td {
    border: 2px solid #a9a9a9;
    background: #e3e3e3;
}

.title-with-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contrat-btn {
    font-size: 12px !important;
}

.search-btn {
    cursor: pointer;
}

.search-btn:hover {
    scale: 1.2;
}

.search-container {
    width: 100%;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 10px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.search-input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
    background-color: #f9f9f9;
    color: #333;
    font-size: 16px;
}

.recent-list {
    margin-top: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}

.recent-item.active {
    background-color: #4d83ff;
    color: #ffffff;
}


.item-details {
    flex-grow: 1;
}

a.item-title {
    font-size: 16px;
    font-weight: bold;
    color: #666;
}

.item-category {
    font-size: 12px;
    color: #666;
}

.recent-item.active .item-title,
.recent-item.active .item-category {
    color: #ffffff;
}


.footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.footer-text {
    margin-right: 10px;
}

.history-icon {
    width: 20px;
    height: 20px;
    background: url('../images/certificate.svg') no-repeat center center;
    background-size: contain;
    margin-right: 10px;
}

.recent-item.active .history-icon {
    background: url('../images/certificate-inverse.svg') no-repeat center center;
    background-size: contain;
}

.btn-white {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 16px;
    cursor: pointer;
}

.btn-white:hover {
    background-color: #f9f9f9;
    text-decoration: none;
}

.profile-circle {
    width: 30px;
    height: 30px;
    background-color: #066009; /* Vert sobre */
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Cercle parfait */
}

.s-fixed {
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 65px !important;
}


.sidebar-icon-only .s-fixed {
    position: relative;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0 !important;
}

.count-nbr {
    position: absolute;
    top: 30px;
    color: #ff4747;
    font-weight: bold;
}

.custom-form {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.custom-form:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.custom-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.custom-label {
    flex: 0 0 150px;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

.custom-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus {
    border-color: #4d83ff;
    box-shadow: 0 0 0 3px rgba(77, 131, 255, 0.15);
    outline: none;
}

.custom-button {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #fff;
    background-color: #4d83ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.custom-button:hover {
    background-color: #3b6ede;
    transform: translateY(-1px);
}

.custom-button:active {
    transform: translateY(0);
}

.modal-header {
    cursor: move;
}

.delete-btn {
    cursor: pointer;
    padding: 0 5px;
    background: #f3f3f3;
    border-radius: 5px;
}

.delete-btn:hover {
    color: red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.contact-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Ajoute un padding à droite pour laisser de l'espace à l'icône */
.input-container input {
    width: 100%;
    padding-right: 2.5rem; /* Ajustez cette valeur si nécessaire */
}

/* Style et positionnement de l'icône check */
.input-container .icon-check {
    position: absolute;
    top: 50%;
    right: 0.75rem; /* Position horizontale ajustable */
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d; /* Couleur de l'icône, à personnaliser */
    font-size: 1rem; /* Taille de l'icône */
    user-select: none;
}

.input-container .icon-check:hover {
    color: #343a40; /* Couleur au survol, par exemple */
}


/* Ajout d'une puce personnalisée pour la liste des critères */
.criteria li::before {
    content: "✓ ";
    color: #ffc200;
    font-weight: bold;
}

.rating-icon {
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.rating-icon.active {
    color: #ffc200 !important;
    transform: scale(1.1);
}

.rating-icon.hover-effect {
    color: #fde19e !important;
    transform: scale(1.2);
}

.contract-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    border: 1px solid rgba(108, 92, 231, 0.1);
}


.contract-card .card-header {
    background: linear-gradient(45deg, #c01a40, #8d1430);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
    position: relative;
}

.contract-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}

.contract-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contract-card .card-body {
    padding: 1.5rem;
    background: transparent;
    color: #4a5568;
}

.contract-info {
    margin-bottom: 1rem;
}

.contract-info i {
    margin-right: 10px;
    color: #c01a40;
    background: linear-gradient(45deg, #c01a40, #8d1430);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contract-actions {
    padding: 1rem 1.5rem;
    background: rgba(248, 249, 250, 0.7);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

.contract-actions .btn {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #8d1430;
    color: white;
    position: relative;
    overflow: hidden;
}

.contract-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

.contract-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.no-contracts-message {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-documents-selected {
    background-color: green; /* Couleur verte (success) */
    color: #fff; /* Texte blanc */
}

.info-line {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-line strong {
    margin-right: 2px;
}

.info-line span {
    margin-right: 8px;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(20 20 20 / 80%);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.close-overlay-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    line-height: 1;
}

.locked-overlay .btn {
    margin: 5px;
}

.list-group-contrat {
    position: relative; /* Ensure the overlay is positioned inside */
}

:root {
    --custom-primary-color: #c01a40;
    --custom-accent-color: #8d1430;
}

/* ----  Dropzones  ------------------------------------------------ */
.dropzone {
    border: 3px dashed var(--custom-primary-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    background: #fff;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    min-height: 160px;
}

.dropzone.dragover {
    border-color: var(--custom-accent-color);
    background: #fff5f8;
}

.dz-title {
    font-weight: 600;
    color: var(--custom-primary-color);
}

/* ----  Liste globale  ------------------------------------------- */
.btn-file-remove {
    background: var(--custom-primary-color);
    color: #fff;
    border-radius: 5px;
    padding: .15rem .4rem;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}
.btn-file-validate {
    background: #0f9d58;
    color: #fff;
    border-radius: 5px;
    padding: .15rem .4rem;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}
.btn-file-blue {
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    padding: .15rem .4rem;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}

#global-file-list {
    margin-top: 2rem;
    padding-left: 0;
}

#global-file-list li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid #e6e6e6;
    padding: .25rem 0;
}

.file-badge {
    background: var(--custom-accent-color);
    color: #fff;
    border-radius: .25rem;
    padding: .15rem .4rem;
    font-size: .75rem;
}

#global-file-list a {
    text-decoration: none;
}

#global-file-list a:hover {
    text-decoration: underline;
}

.pulse {
    animation: pulse-animation 1.2s infinite;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

