html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.home-background {
    background-image: url('/images/home.png');
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-size: cover;
}

.text-light-grey {
    color: rgb(220, 220, 220);
}

.text-mid-grey {
    color: rgb(121, 121, 121);
}

.bg-light-grey {
    background-color: #F3F3F3;
}

.tabbable-line .nav-link {
    border: none;
    color: #6c757d;
}

.tabbable-line .nav-link.active {
    border-bottom: 2px solid red;
    color: dimgrey;
    font-weight: 500;
}

.input-group .input-group-sm {
    font-size: 15px;
}

div#RegieSalle .tab-content {
    margin: 30px;
}

#RegieSalleDispositionPlan {
    position: relative;
}

#RegieSalleDispositionPlan-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#RegieSalleDispositionPlan-draw {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.RegieSalleDispositionPlan-bloc {
    position: absolute;
    border: 1px solid #3498db;
    border-radius: 5px;
    background: #e2f3ff;
    overflow: hidden;
}

.RegieSalleDispositionPlan-bloc.over {
    background-color: #f6d1d1;
    border: 1px solid #ff9595;
}

.RegieSalleDispositionPlan-micnum {
    position: absolute;
    bottom: 0;
    font-size: 10px;
    text-align: center;
    height: 10px;
    line-height: 10px;
    background-color: #FFFFFFAA;
}

.RegieSalleDispositionPlan-micdetail {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.RegieSalleDispositionPlan-micdetail > .imgTilePerson {
    object-fit: cover;
    object-position: top;
}

#tableRegieSalleMicrophone tbody td {
    cursor: pointer
}

.RegieSalleDispositionPlan-bloc.groupe-politique-red .RegieSalleDispositionPlan-micnum {
    background-color: rgb(215, 57, 20);
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-orange .RegieSalleDispositionPlan-micnum {
    background-color: orange;
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-blue .RegieSalleDispositionPlan-micnum {
    background-color: DeepSkyBlue;
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-royalblue .RegieSalleDispositionPlan-micnum {
    background-color: royalblue;
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-yellow .RegieSalleDispositionPlan-micnum {
    background-color: yellow;
    color: #000000;
}

.RegieSalleDispositionPlan-bloc.groupe-politique- > gray .RegieSalleDispositionPlan-micnum {
    background-color: SlateGray;
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-white .RegieSalleDispositionPlan-micnum {
    background-color: #e0e0e0;
    color: #000000;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-green .RegieSalleDispositionPlan-micnum {
    background-color: #41AD49;
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-none .RegieSalleDispositionPlan-micnum {
    background-color: #fff;
    color: #000000;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-gold .RegieSalleDispositionPlan-micnum {
    background-color: #C0A94A;
    color: #FFFFFF;
}

.RegieSalleDispositionPlan-bloc.groupe-politique-gray .RegieSalleDispositionPlan-micnum {
    background-color: SlateGray;
    color: #FFFFFF;
}

.personnePreset > div {
    border: solid 1px #CCCCCC;
    border-radius: 3px;
    margin: 1px;
    padding: 1px;
}

.personnePreset:hover {
    cursor: grab;
}

.personnePreset:hover > div {
    background-color: #EEEEEE
}

.personnePreset.dragged {
    opacity: 50%;
}

.personnePresetEdit {
    float: right;
    display: none;
}

.personnePreset:hover .personnePresetEdit {
    display: block;
}

.personnePresetEdit:hover {
    cursor: pointer;
}

#modalIntervenant .modal-header {
    color: #FFFFFF;
}

.modal-header {
    background: #0480be;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

#sidebar-container {
    max-height: 100vh;
    overflow-y: auto;
}


/* Groupes politiques */

.groupe-politique-red {
    color: rgb(215, 57, 20);
}

.groupe-politique-orange {
    color: orange;
}

.groupe-politique-blue {
    color: DeepSkyBlue;
}

.groupe-politique-royalblue {
    color: royalblue;
}

.groupe-politique-yellow {
    color: yellow;
}

.groupe-politique-gray {
    color: SlateGray;
}

.groupe-politique-white {
    color: #e0e0e0;
}

.groupe-politique-green {
    color: #41AD49;
}

.groupe-politique-none {
    color: #fff;
}

.groupe-politique-gold {
    color: #C0A94A;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Positionnement du "pouce" du switch */
.form-switch {
    transform: translateX(1.5em);
}

.status_on {
    color: #00ba08 !important;
}

.status_off {
    color: #a60000 !important;
}

.room-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #0d6efd;
}

.bg-soft-primary {
    background-color: #eef2ff;
}

.transition-all {
    transition: all 0.3s ease;
}

.text-light-grey {
    color: #d1d5db;
}

.room-card:hover .icon-box {
    background-color: #DBEAFE !important;
    color: #1E40AF !important;
    transition: all 0.3s ease;
}

.room-card:hover {
    border-color: #3B82F6 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.personnePresetEdit {
    float: right;
    display: none;
}

.personnePreset:hover .personnePresetEdit {
    display: block;
}

.personnePresetEdit:hover {
    cursor: pointer;
}

.btn-huge {
    min-height: 80px;
    white-space: normal;
    text-align: left;
}

#tableRegieSalleCamera tr {
    cursor: pointer;
}

.table-hover > tbody > tr:hover > * {
    background-color: cornflowerblue !important;
    color: white;
}

.micro-active {
    outline: 4px solid #ff0000 !important; /* Rouge flash */
    box-shadow: 0 0 15px #f10e31; /* Effet néon */
    z-index: 10; /* Pour passer au-dessus des autres */
    transition: all 0.3s ease; /* Animation douce */
}

.top-buttons {
    position: absolute;
    top: 12vh;
    right: 15vw;
    width: 180px;
    height: 32px;
    z-index: 0;
}