/* =========================================
   COMPONENTS.CSS — Composants réutilisables
   ========================================= */

/* === Profile picture (global — utilisé navbar, listes, dashboard) === */
.profile-picture {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: var(--light-color);
}

.profile-picture.small { width: 32px; height: 32px; min-width: 32px; }
.profile-picture.medium { width: 48px; height: 48px; }
.profile-picture.large { width: 62px; height: 62px; }

/* === ALERTS === */
.alert {
    border-radius: 4px;
    margin-bottom: 5px;
    border: none;
    text-align: left;
    font-size: 14px;
    padding: 14px 20px;
}

.alert .alert-heading {
    font-weight: 600;
}

.alert .alert-icon {
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
    padding-left: 10px;
    padding-right: 10px;
}

.alert.alert-primary,
.alert.alert-primary i {
    background-color: var(--blue-50-color);
    color: var(--blue-400-color) !important;
}

.alert.alert-secondary,
.alert.alert-secondary i {
    background-color: var(--neutral-30-color);
    color: var(--neutral-500-color) !important;
}

.alert.alert-success,
.alert.alert-success i {
    background-color: var(--green-50-color);
    color: var(--green-400-color) !important;
}

.alert.alert-warning,
.alert.alert-warning i {
    background-color: var(--orange-50-color);
    color: var(--orange-500-color) !important;
}

.alert.alert-danger,
.alert.alert-danger i {
    background-color: var(--red-50-color);
    color: var(--red-300-color) !important;
}

.alert.alert-info,
.alert.alert-info i {
    background-color: var(--turquoise-50-color);
    color: var(--turquoise-500-color) !important;
}

.alert.alert-light,
.alert.alert-light i {
    background-color: var(--light-color);
    color: var(--neutral-200-color) !important;
}

.alert.alert-dark,
.alert.alert-dark i {
    background-color: var(--neutral-50-color);
    color: var(--neutral-800-color) !important;
}

/* === FORMULAIRES === */
label, .form-label {
    font-size: 14px;
    margin-bottom: 0;
}

/* Onglet Contact (création lead/ticket) : police uniforme = la plus petite déjà présente (14px,
   celle des labels/inputs/boutons). Les libellés en texte brut dans les .label-col héritaient
   sinon du 16px du body, créant un écart de taille dans l'onglet. */
#contact {
    font-size: 14px;
}

.form-control,
.form-select {
    font-size: 14px;
    border-radius: 4px;
    min-height: 40px;
    height: fit-content !important;
    white-space: normal;
    padding: 10px 16px;
    font-weight: 500;
    color: var(--dark-color);
}

input[type=color] {
    height: revert !important;
}

.form-control.large, .form-select.large {
    padding: 26px 19px;
}

.form-select-warning {
    background-color: var(--orange-50-color);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.input-group input {
    border-left: none;
}

.input-group-text {
    background-color: transparent;
    padding-right: 0;
}

/* Indicatif */
.input-group-indicatif .indicatif-container {
    -ms-flex: 0 0 117px;
    flex: 0 0 117px;
    padding-right: 0;
}

.input-group-indicatif .indicatif-container select {
    font-weight: 700;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.radius-left-field {
    border-radius: 3px 0 0 3px;
    height: 43px !important;
}

.radius-left-field i {
    color: #0000006d;
}

.bg-neutral-20 i.no-hover-effect:hover {
    color: #0000006d;
}

.input-group-indicatif .indicatif-container select:hover {
    cursor: pointer;
}

.input-group-indicatif .number-container {
    padding-left: 0;
}

.input-group-indicatif .number-container input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

select.select-hour {
    width: 90px;
}

/* input Borderless */
.input-group.borderless,
.input-group.borderless .input-group-text,
.input-group.borderless .form-control {
    background-color: transparent;
}

.input-group.borderless .input-group-text,
.input-group.borderless .form-control {
    border: none;
    font-size: 16.8px;
    color: var(--blue-300-color);
}

.input-group.borderless .input-group-text,
.input-group.borderless .form-control::placeholder {
    color: var(--neutral-80-color);
}

.input-group.borderless .form-control:focus {
    outline: 0px !important;
    -webkit-appearance: none;
    box-shadow: none !important;
    background-color: transparent;
}

/* Form error */
.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: var(--red-300-color);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    background-color: var(--red-50-color);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: var(--red-300-color);
}

.alert .invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0;
    font-size: 100%;
    color: var(--red-300-color);
}

/* Pictos sélection */
#pictos i.selected {
    background-color: var(--blue-50-color);
    border: 1px solid var(--blue-100-color);
    border-radius: 4px;
}
#pictos i:hover {
    background-color: var(--blue-50-color);
    border-color: var(--blue-75-color);
    color: black;
}
#pictos i {
    font-size: 18px;
}
#SimpleBtn span.select {
    background-color: var(--blue-50-color);
    border: 2px solid var(--blue-100-color);
    border-radius: 4px;
}
#SimpleBtn span:hover {
    background-color: var(--blue-50-color);
    border-radius: 4px;
}

/* Info Fuseau horaire */
#infoFuseau {
    margin-top: 0;
    font-size: 100%;
    color: var(--blue-300-color);
}

/* Image upload */
.background-center {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#photo-thumbnail {
    height: 8rem;
    width: 8rem;
}
#photo-thumbnail img {
    height: 8rem;
    width: 8rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

#plan-thumbnail, #opt-thumbnail {
    height: 10rem;
}
#plan-thumbnail img, #opt-thumbnail img {
    max-width: 100%;
    max-height: 100%;
}

.upload-image, .hide-input-container, .conteneur-cache-jour, .fichier-opt {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    left: -5rem;
    z-index: -1;
}

.input-group {
    margin-bottom: 0;
    margin-left: 0;
    border-radius: 0.2rem;
}

.bouton-plus-gros {
    font-size: 2rem;
}

.step-1 {
    position: relative;
}

/* === TABLES === */
.table thead th,
.table th,
.table td {
    border: none;
    vertical-align: middle !important;
    white-space: normal;
}

.table thead th {
    background-color: var(--table-header-bg);
}

table thead th:first-child {
    border-radius: 5px 0 0 5px;
}
table thead th:last-child {
    border-radius: 0 5px 0 0;
}

table tbody th,
table tbody td {
    background-color: white;
}

table tbody tr:hover > td:not(.garde-couleur):not(.hiddenRow) {
    background-color: var(--couleur-fond-bleu-clair) !important;
    transition: 0.2s;
}
table tbody tr td {
    transition: 0.4s;
}

/* === CARDS === */
.card {
    box-shadow: none;
    border: 1px solid var(--neutral-40-color);
    border-radius: 1rem;
    padding: 30px;
}

/* Pills d'indisponibilités (récurrentes & périodiques/ponctuelles) : le border-radius
   global des .card (1rem) est trop arrondi pour ces éléments. On le réduit.
   Sélecteurs valables en profil ET en modale utilisateur (mêmes conteneurs). */
.presenceAbsenceRecurente .card,
#indisponibilites .card {
    border-radius: 0.5rem;
}

/* Création lead/ticket : cards Contact & Données métier à hauteur FIXE pour que la hauteur
   ne varie pas selon l'onglet sélectionné. Le contenu des onglets (.tab-content) scrolle en
   interne ; l'en-tête (titre + barre d'onglets) reste figé. */
.card-height-overflow {
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-height-overflow .tab-content {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0; /* indispensable pour autoriser le scroll d'un enfant flex */
}

/* Card couleurs dashboard (ex AdminTY style.css) */
.bg-c-blue {
    background: linear-gradient(to right, #01a9ac, #01dbdf);
    color: #fff;
}
.bg-c-pink {
    background: linear-gradient(to right, #fe5d70, #fe909d);
    color: #fff;
}
.bg-c-green {
    background: linear-gradient(to right, #0ac282, #0df3a3);
    color: #fff;
}
.bg-c-yellow {
    background: linear-gradient(to right, #fe9365, #feb798);
    color: #fff;
}
.bg-c-orenge {
    background: linear-gradient(to right, #FE8A7D, #feb8b0);
    color: #fff;
}
.bg-c-lite-green {
    background: linear-gradient(to right, #01a9ac, #01dbdf);
    color: #fff;
}

.card-hover {
    transition: 0.4s;
}

.card.card-hover:hover {
    cursor: pointer;
    background-color: var(--blue-50-color);
    border: 1px solid var(--blue-400-color);
    color: var(--blue-400-color);
    font-weight: 600;
}

.card.plan-card {
    min-height: 180px;
}

/* Radio button card */
.check-card {
    padding: 14px 17px;
    margin-bottom: 0px;
}
.check-card:hover {
    cursor: pointer;
}
.check-card.active {
    background-color: var(--blue-50-color);
    border: 1px solid var(--primary-color);
}
.check-card .form-check-description {
    margin-left: 9px;
    color: var(--neutral-90-color);
}

/* Step Card */
.form-step-container {
    margin-bottom: 40px;
}
.card.step-card {
    padding: 20px 33px;
}
.card.step-card .step-icon-container {
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
    padding: 0;
}
.card.step-card .step-icon-container .step-icon {
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: white;
    background-color: var(--neutral-40-color);
}
.card.step-card .step-content {
    padding-left: 7px;
}
.card.step-card .step-content .step {
    font-weight: 600;
    color: var(--neutral-50-color);
}
.card.step-card .step-content .step-title {
    font-weight: 600;
    color: var(--neutral-50-color);
}
.card.step-card.step-active .step-icon-container .step-icon {
    background-color: var(--primary-color);
}
.card.step-card.step-active .step-content .step {
    font-weight: 600;
    color: var(--primary-color);
}
.card.step-card.step-active .step-content .step-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* === Red border errors === */
.red-border {
    border: 1px solid var(--red-400-color) !important;
    background-color: var(--red-50-color);
}
.red-border-heure-ouverture-center {
    border-top: 1px solid var(--red-400-color) !important;
    border-bottom: 1px solid var(--red-400-color) !important;
    background-color: var(--red-50-color) !important;
}
.red-border-heure-ouverture-left {
    border-left: 1px solid var(--red-400-color) !important;
    border-top: 1px solid var(--red-400-color) !important;
    border-bottom: 1px solid var(--red-400-color) !important;
    background-color: var(--red-50-color) !important;
}
.red-border-heure-ouverture-right {
    border-right: 1px solid var(--red-400-color) !important;
    border-top: 1px solid var(--red-400-color) !important;
    border-bottom: 1px solid var(--red-400-color) !important;
    background-color: var(--red-50-color) !important;
}

/* === Dropdown === */
.dropdown-item {
    color: var(--dark-color);
    font-weight: 600;
}
.dropdown-item:focus, .dropdown-item:hover {
    color: var(--primary-color);
    text-decoration: none;
    background-color: var(--blue-50-color);
}

.disabled-dropdown-item {
    color: var(--couleur-default);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 20px;
    display: block;
    width: 100%;
    clear: both;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}
.disabled-dropdown-item:hover {
    color: var(--couleur-default);
    background-color: #fff;
    cursor: default;
}

.disabled-picto {
    pointer-events: none;
}
.disabled-picto i {
    color: #0000006d !important;
}

/* === Checkbox === */
.form-check-container {
    padding: 4px 7px !important;
    border-radius: 6px;
    margin-bottom: 2px;
}

.form-check-container-export-lead {
    padding: 4px 0px;
    border-radius: 6px;
    margin-bottom: 2px;
}

.form-check-container.active,
.form-check-container-export-lead.active,
.form-check-container-export-utilisateur.active {
    background-color: var(--blue-50-color);
}

.form-check-input[type=checkbox] {
    border-radius: 5px;
}

.form-check:hover,
.form-check input:hover,
.form-check label:hover {
    cursor: pointer;
}

.form-check-label {
    margin-left: 8px;
}

.form-check .form-check-input {
    width: 18px;
    height: 18px;
    position: relative;
    bottom: 1px;
    margin-top: .25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

.form-switch .form-check-input {
    position: relative;
    width: 2.1em;
    margin-left: -2.5em;
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
}

.fs-picto-en-avant {
    font-size: 1rem;
}

.notif-trigger {
    cursor: pointer;
}

/* === Select2 — uniformisé avec .form-control / .form-select === */

/* Forcer la largeur 100% sur le container */
.select2-container {
    width: 100% !important;
}

/* Base commune : même hauteur, bordure et radius que les inputs */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 40px;
    font-size: 14px;
}

/* Single : alignement vertical du texte */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--dark-color);
    line-height: 38px;
    padding-left: 16px;
}

/* Focus : même couleur que .form-control:focus */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Multiple : chips */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--blue-50-color);
    border: 1px solid var(--blue-50-color);
    padding: 5px 15px;
    color: var(--blue-400-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice span {
    color: var(--blue-400-color);
}

.select2-selection__choice {
    white-space: normal !important;
}

/* Dropdown résultats */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--blue-50-color);
    color: var(--blue-400-color);
}

/* Chevron indicateur sur multiple */
.select2-selection--multiple:before {
    content: "";
    position: absolute;
    right: 11px;
    top: 15px;
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
}

.chevron {
    appearance: menulist-button !important;
    -webkit-appearance: menulist-button !important;
    -moz-appearance: menulist-button !important;
}

/* === DataTable filter === */
.dataTables_wrapper .dataTables_filter {
    display: none;
}

/* Icône info dans les labels de formulaire */
label .bi-info-circle {
    margin-left: 0.4rem;
    cursor: help;
}

/* Filters */
.filters-container {
    -ms-flex: 0 0 300px;
    flex: 0 0 300px;
}
.filters-container .form-label {
    font-weight: 600;
}
.filters-container .card {
    padding-bottom: 15px;
}

/* === Hours Table === */
table.hours-table th,
table.hours-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}
table.hours-table th {
    min-width: 100px;
}
table.hours-table td.hours {
    width: 190px;
}
table.hours-table td.hours select {
    width: 90px;
}

/* === Heure ouverture styles === */
.heure-ouverture-style-left {
    border-radius: 0.2rem;
    border: 1px solid var(--neutral-70-color);
    border-right: none;
    color: black;
    padding: 0.4rem;
    background-color: #fff;
}
.heure-ouverture-style-right {
    border-radius: 0.2rem;
    border: 1px solid var(--neutral-70-color);
    border-left: none;
    color: black;
    padding: 0.4rem;
    background-color: #fff;
}
.heure-ouverture-style-center {
    border-radius: 0.2rem;
    border: 1px solid var(--neutral-70-color);
    border-left: none;
    border-right: none;
    color: black;
    padding: 0.4rem;
    background-color: #fff;
}
.heure-ouverture-style-input {
    border-radius: 0.2rem;
    border: 1px solid var(--neutral-70-color);
    color: black;
    padding: 0.4rem;
    background-color: #fff;
}

/* Échéance (création lead/ticket) : date + heure présentées comme UN seul champ
   (cohérent avec un champ DM DH). Seul #echeance-container porte la bordure ;
   l'input date et les selects heure/minute sont sans bordure ni fond propre. */
#echeance-container {
    background-color: #fff;
}
#echeance-container .form-control,
#echeance-container select {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent;
    /* Taille des chiffres heure/minute alignée sur celle du champ date (1rem). */
    font-size: 1rem;
}
#echeance-container .input-group {
    flex: 0 0 auto;
    width: auto;
    background-color: transparent;
}

.heure-indispo-style {
    background-color: rgb(255, 237, 204);
    border: none;
    border-radius: 0.2rem;
    color: orange;
    font-weight: 700;
    padding: 0.4rem;
}

.rajout-indispo-lien {
    border: none;
    background-color: rgba(255, 255, 255, 0);
}

/* === Input spin resets === */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* === Dot === */
.dot-column {
    -ms-flex: 0 0 23px;
    flex: 0 0 23px;
    padding-right: 0;
}

.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: var(--neutral-50-color);
    display: inline-block;
}

/* === Toast === */
.toast-container {
    margin-top: 50px;
}

.toast {
    width: 400px;
    overflow: hidden;
    font-size: .875rem;
    background-color: rgba(255, 255, 255, 0.788);
    background-clip: padding-box;
    border: none;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: .25rem;
}

.toast:not(.show) {
    opacity: 0;
}

.toast.show {
    opacity: 1;
}

.toast-body:hover {
    background-color: rgb(255, 255, 255);
    cursor: pointer;
    transition: 0.3s;
}

.toast-container .toast-body {
    transition: 0.3s;
    padding: 23px 30px;
}

.toast-container .toast-icon {
    -ms-flex: 0 0 20px;
    flex: 0 0 20px;
    padding-right: 10px;
}
.toast-container .toast-icon i {
    font-size: 25px;
}

/* === Voir plus container === */
.voir-plus-container {
    min-width: 200px;
}

.accordeon-voir-plus-container .btn-voir-plus {
    top: -71px;
    right: 66px;
    width: 90px;
}

.accordeon-voir-plus-container .btn-options {
    top: -73px;
    right: -29px;
    width: 90px;
}

/* === Form container/menu === */
.form-container .form-menu-container {
    -ms-flex: 0 0 350px;
    flex: 0 0 350px;
    padding-left: 0;
}

.fixed-nav {
    top: 9vh;
    position: fixed;
    z-index: 1020;
}

.form-container .form-menu-container a {
    display: block;
    text-align: left;
    border-radius: 0;
    padding: 3px 10px;
    margin-bottom: 6px;
    font-weight: 600;
    border-left: 3px solid transparent;
}
.form-container .form-menu-container a.active {
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}
.form-container .form-menu-container a:hover {
    background-color: var(--grey-30-color);
}

.form-container .form-menu-container a.form-menu-link-secondary {
    font-weight: 500;
    padding-left: 25px;
    padding-right: 25px;
}

.form-container .title-container {
    margin-bottom: 33px;
}

.form-container .category-container {
    margin-bottom: 50px;
}

.form-container .form-category {
    padding-left: 20px;
    padding-right: 20px;
}

.form-container .form-category .row {
    margin-bottom: 9px;
}

.col.plan-col {
    -ms-flex: 0 0 500px;
    flex: 0 0 500px;
}

.form-container .label-col {
    -ms-flex: 0 0 200px;
    flex: 0 0 200px;
}

.form-container .label-col.switch {
    -ms-flex: 0 0 232px;
    flex: 0 0 232px;
}

.form-container .form-footer {
    margin-top: 50px;
}

/* === Required markers (custom.css) === */
label.required:after {
    content: " *";
    color: black;
}
.required:after {
    content: " *";
}

/* === Carte et titre (cssSam.css) === */
.card .card-header h5 {
    margin-bottom: 0;
    color: var(--neutral-500-color);
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    margin-right: 10px;
    line-height: 1.4;
}

/* === Labels/badges (cssSam.css) === */
.label-primary {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-primary)), to(var(--couleur-primary-hover)));
    background: linear-gradient(to right, var(--couleur-primary), var(--couleur-primary-hover));
}
.label-info {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-info)), to(var(--couleur-info-hover)));
    background: linear-gradient(to right, var(--couleur-info), var(--couleur-info-hover));
}
.label-succes {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-succes)), to(var(--couleur-succes-hover)));
    background: linear-gradient(to right, var(--couleur-succes), var(--couleur-succes-hover));
}
.label-warning {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-warning)), to(var(--couleur-warning-hover)));
    background: linear-gradient(to right, var(--couleur-warning), var(--couleur-warning-hover));
}
.label-danger {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-danger)), to(var(--couleur-danger-hover)));
    background: linear-gradient(to right, var(--couleur-danger), var(--couleur-danger-hover));
}
.label-default {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-default)), to(var(--couleur-default-hover)));
    background: linear-gradient(to right, var(--couleur-default), var(--couleur-default-hover));
}

/* === Radio buttons (cssSam.css) === */
.radio.radiofill.radio-primary .helper::before {
    border-color: var(--couleur-primary);
}
.radio .helper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    margin: 0.25rem;
    width: 1rem;
    height: 1rem;
    -webkit-transition: -webkit-transform 0.28s ease;
    transition: transform 0.28s ease, -webkit-transform 0.28s ease;
    border-radius: 50%;
    border: 0.125rem solid var(--couleur-primary);
    border-top-color: var(--couleur-primary);
    border-right-color: var(--couleur-primary);
    border-bottom-color: var(--couleur-primary);
    border-left-color: var(--couleur-primary);
}
.radio label:hover .helper {
    color: var(--couleur-primary);
}
.radio input:checked ~ .helper::before {
    color: var(--couleur-primary);
}
.radio.radiofill.radio-primary .helper::after {
    background-color: var(--couleur-primary);
    border-color: var(--couleur-primary);
}

/* === Checkbox (cssSam.css) === */
.checkbox-fade.fade-in-primary .cr,
.checkbox-fade.zoom-primary .cr,
.checkbox-zoom.fade-in-primary .cr,
.checkbox-zoom.zoom-primary .cr {
    border: 2px solid var(--couleur-primary);
}

.checkbox-fade.fade-in-primary .cr .cr-icon,
.checkbox-fade.zoom-primary .cr .cr-icon,
.checkbox-zoom.fade-in-primary .cr .cr-icon,
.checkbox-zoom.zoom-primary .cr .cr-icon {
    color: var(--couleur-primary);
}

/* === Notifications (cssSam.css) === */
.bg-sonnette {
    background: -webkit-gradient(linear, left top, right top, from(var(--couleur-danger)), to(var(--couleur-danger-hover)));
    background: linear-gradient(to right, var(--couleur-danger), var(--couleur-danger-hover));
}

.brighttheme-notice {
    background-color: #FFF;
    border: 1px solid var(--couleur-warning);
    color: #4F4F00;
}
.brighttheme-info {
    background-color: #FFF;
    border: 1px solid var(--couleur-info);
    color: var(--couleur-info);
}
.brighttheme-success {
    background-color: #FFF;
    border: 1px solid var(--couleur-succes);
    color: var(--couleur-succes);
}
.brighttheme-error {
    background-color: #FFF;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.3) 35px, rgba(255,255,255,.3) 70px);
    border: 1px solid var(--couleur-danger);
    color: var(--couleur-danger);
}

/* === Switch version hors template (cssSam.css) === */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-50-color);
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--couleur-primary);
}
input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}

/* === Form control (cssSam.css) === */
.form-control-primary {
    border-color: var(--couleur-primary);
    color: var(--couleur-primary);
}
.form-control-primary:focus {
    border-color: var(--couleur-primary);
}

/* === Table / datatable (cssSam.css) === */
table.dataTable tbody > tr.selected,
table.dataTable tbody > tr > .selected {
    background-color: var(--couleur-info);
    color: #fff;
}
table.dataTable tbody > tr.selected > td > a > i:hover,
table.dataTable tbody > tr.selected > td > form > button > i:hover {
    color: #fff;
}

.table td, .table th {
    padding: .75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.radioUt label {
    margin-right: 30px;
    margin-left: 5px;
}

tr.even {
    background-color: #FFFFFF;
}

/* datatable responsive */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child::before {
    content: '-';
    background-color: var(--couleur-moins);
}

.modal-xxl {
    max-width: 1500px;
}

/* =========================================
   Tom Select — overrides design SAM 360
   Phase 4.2.a — items sélectionnés en blue-50 (cohérence visuelle ancienne).
   ========================================= */

/* Chip d'un item sélectionné (multi-select) — fond bleu clair, texte primary */
.ts-wrapper.multi .ts-control > .item {
    background-color: var(--blue-50-color);
    color: var(--blue-500-color);
    border-color: var(--blue-75-color);
}

/* Item sélectionné en simple-select (apparaît dans le ts-control) */
.ts-wrapper.single .ts-control .item {
    color: var(--neutral-900-color);
}

/* Option sélectionnée affichée dans le dropdown (quand on ré-ouvre) */
.ts-dropdown .option.selected {
    background-color: var(--blue-50-color);
    color: var(--blue-500-color);
}

/* Option actuellement survolée / focus clavier dans le dropdown */
.ts-dropdown .option.active {
    background-color: var(--blue-50-color);
    color: var(--blue-500-color);
}

/* Bouton de suppression (croix) du chip — couleur cohérente */
.ts-wrapper.multi .ts-control > .item .remove {
    border-left-color: var(--blue-75-color);
}
.ts-wrapper.multi .ts-control > .item .remove:hover {
    background-color: var(--blue-75-color);
}

/* === Service search columns (cssSam.css) === */
#tableServicesChoisis thead th:nth-child(11),
#tableServicesChoisis tbody td:nth-child(11) {
    width: 18%;
    min-width: 180px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
#tableServicesChoisis tbody td.d-flex {
    justify-content: flex-start;
}
#tableServicesChoisis tbody td.d-flex input {
    width: 100%;
    min-width: 150px;
    max-width: 100%;
}
#tableServicesChoisis thead th:nth-child(12),
#tableServicesChoisis tbody td:nth-child(12) {
    width: 5%;
    min-width: 50px;
    max-width: 60px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-align: center;
}
#tableServicesChoisis tbody td:nth-child(12) .mailsAppartenance {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* === Pagination centrée pour le tableau appartenances/autorisations === */
#tableServicesChoisis_wrapper .dt-paging {
    text-align: center;
}

/* === Badges accordion (custom.css) === */
.badge {
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.badge.type1 {
    color: #fe5f55;
    background-color: rgba(231, 105, 75, 0.1);
}

/* === Accordion (custom.css) === */
table.table.table-accordion td {
    background-color: white;
    border: none;
}

/* Rotation chevron accordion */
.accordion-toggle .bi-chevron-right {
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-toggle .bi-chevron-right.rotated {
    transform: rotate(90deg) !important;
    display: inline-block;
}

td.hiddenRow {
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
}
#lead-datatable tbody tr:hover {
    cursor: pointer;
}
div.accordion table {
    margin-bottom: 0;
}
#accordionGroupements .accordion-button {
    padding-top: 10px;
    padding-bottom: 10px;
}
.accordion-button:hover {
    background-color: rgba(135, 144, 159, .1);
}
table.services-table td { }
div.accordion-item .level2 {
    padding-left: 40px;
}
div.accordion-item .level3 {
    padding-left: 100px;
}

div.accordion-item thead th, .accordion-table-header th {
    color: var(--couleur-default) !important;
    font-size: 14px;
    opacity: 0.7;
}

#accordionGroupements {
    margin-bottom: 10px;
}

#accordionGroupements table td.groupement-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

#accordionGroupements table span.groupement-city {
    margin-left: 2px;
    color: var(--couleur-default);
    opacity: 0.6;
}

.accordion-table-header {
    padding-left: 67px;
    padding-right: 22px;
    background-color: white;
}

.accordion-button:not(.collapsed) {
    background-color: white;
}

#accordionGroupements .accordion-item.groupement {
    background-color: transparent;
    position: relative;
}

#accordionGroupements .accordion-header.groupement {
    margin-bottom: 10px;
    margin-top: 10px;
}

#accordionGroupements .groupement-collapse {
    margin-top: -10px;
}

#accordionSites table td {
    font-size: 15px;
    font-weight: 600;
}

#accordionSites table.services-table td {
    font-size: 14px;
    font-weight: 500;
}

.accordion-button {
    position: relative;
}

div.voir-plus-container {
    position: absolute;
    right: 0px;
}

/* === btn overrides (custom.css) === */
.btn {
    text-transform: none;
}

.btn-light {
    background-color: rgba(0, 0, 0, 0.05);
}

/* === Mails wrapper === */
#mails-wrapper, [id^="mails-wrapper_"] {
    min-height: 5rem !important;
    max-height: 10rem !important;
}

.supprMailDestinataire:hover {
    cursor: pointer;
}

/* === Range format === */
.range-format {
    background: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid var(--neutral-50-color);
    width: 100%;
    height: 40px;
}

/* === No icon accordeon === */
.no-icon-accordeon::after,
.no-icon-accordeon:not(.collapsed)::after,
.no-icon-accordeon.collapsed::after,
.no-icon-accordeon,
.no-icon-accordeon:not(.collapsed),
.no-icon-accordeon.collapsed {
    background-image: none;
    color: #212529;
}
.no-icon-accordeon[aria-expanded="true"] {
    font-weight: 700;
    outline: 0 !important;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
}
.no-icon-accordeon:focus,
.no-icon-accordeon:not(.collapsed):focus,
.no-icon-accordeon.collapsed:focus {
    outline: 0 !important;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
}

/* === FAQ footer === */
.faq-footer {
    position: absolute;
    bottom: 0;
    padding-top: 50px;
}

/* === Link styles === */
.listABulle ul {
    list-style-type: disc;
    padding-left: 2rem;
}
.linkStyle a {
    color: #007bff;
}
.linkStyle a:hover {
    color: rgba(41, 119, 188, 1);
}

/* === Word break global === */
* {
    word-break: normal;
}

/* === Label disabled === */
label.disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* === Dropdown locale === */
.dropdown-locale {
    min-width: unset !important;
    left: -2rem !important;
}
.dropdown-locale-form {
    min-width: 6vh !important;
    left: -1rem !important;
}
.dropdown-primary .dropdown-menu a:hover,
.dropdown-split-primary .dropdown-menu a:hover {
    background-color: unset !important;
}
