:root {
    --primaryColor: #ffffff;   
    --secondaryColor: #fcfdfd;
    --tertiaryColor: cornsilk;
    --borderColor: #6a6a6a;
    --borderColorDimmed: #e4e7ec;
    --darkmSecondaryTextColor: darkgrey;
    --darkmAccentColor: #ffc107;
    --inputColor: #eaf0fd;
}

.input-bg {
    background-color: var(--inputColor);
}

.ratio1 {
    aspect-ratio: 1 / 1;
}



.full-width-minus-300 {
    width: calc(100% - 300px);
}



.stats-flex-row {
    display: flex;
    align-items: stretch; /* Ensures children have equal height */
    width: 100%;
}
.stats-col {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stats-red-bg {
    flex: 1 1 0;
    margin-left: 10px;
    /* Remove height, let flexbox stretch it */
}



.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* Crée des colonnes automatiques */
    gap: 10px; /* Espace entre les images (ajustez selon vos besoins) */
    align-content: start;
}


.gap-5 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.width-50 {
    width: 50px;
}

.gap-10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overflowX {
    overflow-x: auto; /* Empêche la scrollbar verticale si elle n'est pas souhaitée */
    overflow-y: hidden; /* Ajoute une scrollbar horizontale si nécessaire */
}


.light-shadow {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.topzindex {
    z-index: 1000;
}

.darken-on-hover2 {
    transition: opacity 0.3s ease, background-color 0.3s ease; /* Smooth transition effect */
    opacity: 0; /* Default opacity set to 50% */
}

.darken-on-hover2:hover {
    opacity: 1; /* Restores the opacity to 100% on hover */
    background-color: var(--darkmPrimaryColorDimmed);
}


body, html {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
}
input,textarea {
    border: 2px solid var(--borderColor);
    background-color: #eaf0fd;
    font-family: Inter, sans-serif;
}
button {
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-family: Inter, sans-serif;
    border-radius: 0.25rem;
}


a {
    text-decoration: none;
    outline: none;
    color: inherit;
}


.sidebar-item {
    border-bottom: 1px solid var(--borderColorDimmed);
    box-sizing: border-box;
    position: relative;
}

.sidebar-item:hover {
    background-color: var(--primaryColor);
    cursor: pointer;
}
.selected-item::after {
    content: '';
    position: absolute;
    right: -5px;
    box-sizing: border-box;
    top: 0px;
    padding: 10px;
    height: 100%;
    background-color: var(--primaryColor);
}





.small-button {
    font-size: 12px;
    padding: 5px 10px;

}
.text-grey {
    color: var(--darkmSecondaryTextColor);
}

.primary-bg {
    background-color: var(--primaryColor);
}
.secondary-bg {
    background-color: var(--secondaryColor);
}
.tertiary-bg {
    background-color: var(--tertiaryColor);
}
.dimmed {
    opacity: 0.5;
}
.padding-5 {
    padding: 5px;
}
.padding-10 {
    padding: 10px;
}
.padding-10-side {
    padding-left: 10px;
    padding-right: 10px;
}
.padding-20 {
    padding: 20px;
}
.padding-30 {
    padding: 30px;
}
.margin-10 {
    margin: 10px;
}
.margin-20 {
    margin: 20px;
}
.margin-top-5 {
    margin-top: 5px;
}
.margin-top-10 {
    margin-top: 10px;
}
.margin-top-20 {
    margin-top: 20px;
}
.margin-bottom-10 {
    margin-bottom: 10px;
}
.margin-10-side {
    margin-left: 10px;
    margin-right: 10px;
}

.ns {
    user-select: none; /* Standard */
    -moz-user-select: none; /* Firefox */
    -webkit-user-select: none; /* Safari et Chrome */
    -ms-user-select: none; /* Internet Explorer/Edge */
}



.no-focus {
    outline: none;
}
.no-focus:focus {
    outline: none;
}
.no-focus:active {
    outline: none;
}
.no-border {
    border: none;
}
.border-1 {
    border: 1px solid rgb(229 231 235);
}
.border-blue {
    border: 1px solid  rgba(7, 189, 189, 0.551);
}
.border-accent {
    border: 1px solid #efc346;
}

.rounded-corner-big {
    border-radius: 0.75rem;
}
.rounded-corner {
    border-radius: 0.5rem;
}
.rounded-corner-small {
    border-radius: 0.25rem;
}
.rounded-corner-tiny {
    border-radius: 0.15rem;
}
.width-100 {
    width: 100px;
}
.width-150 {
    width: 150px;
}
.width-200 {
    width: 200px;
}



.highlight-on-hover:hover *:not(.no-highlight-on-hover) {
    background-color: var(--inputColor); /* ou toute autre stylisation */
}


.width-300 {
    width: 300px;
}
.width-400 {
    width: 400px;
}
.width-500 {
    width: 500px;
}


.box-20 {
    width: 20px;
    height: 20px;
}


.full-width {
    width: 100%;
}
.big-text {
    font-size: 1.5rem;
}
.bold {
    font-weight: bold;
}
.italic {
    font-style: italic;
}
.small-text {
    font-size: 14px;
}
.padding-3 {
    padding: 3px;
}

.avg-text {
    font-size: 12px;
}


.sized {
    box-sizing: border-box;
}
.cursor-pointer {
    cursor: pointer;
}
.na {
    cursor: not-allowed;
}

.height-25 {
    height: 25px;
}
.height-30 {
    height: 30px;
}
.height-40 {
    height: 40px;
}
.height-50 {
    height: 50px;
}
.height-100 {
    height: 100px;
}
.min-height-100 {
    min-height: 100px;
}
.height-150 {
    height: 150px;
}
.height-170 {
    height: 170px;
}
.height-200 {
    height: 200px;
}
.height-250 {
    height: 250px;
}
.height-280 {
    height: 280px;
}


.height-300 {
    height: 300px;
}
.full-height-minus-150 {
    height: calc(100% - 150px);
}

.overflow-hidden {
    overflow: hidden;
}
.lined {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.monospace{
    font-family: monospace!important;
}


.margin-left-10 {
    margin-left:10px;
}
.relative {
    position: relative;
}
.width-250 {
    width: 250px;
}
.full-width-minus-380 {
    width: calc(100% - 314px);
}
.full-width {
    width: 100%;
}




.custom-tooltip-img {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInTooltip 0.15s;
}
@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}
.custom-tooltip-img-inner {
    background: #181818;
    border-radius: 10px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.custom-tooltip-img-inner img {
    width: 120px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
    display: block;
}
.custom-tooltip-dent-up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #181818;
    margin-top: -1px;
}
.custom-tooltip-dent-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #181818;
    margin-bottom: -1px;
}



.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.absolute-top-right2 {
    position: absolute;
    top: 40px;
    right:15px;
}

.absolute-top-right3 {
    position: absolute;
    top: 10px;
    right:10px;
}

.absolute-top-left {
    position: absolute;
    top: 0px;
    left:0px;
}
.absolute-bottom-right {
    position: absolute;
    bottom: 0px;
    right:0px;
}



.red {
    background-color: red;
}
.blue {
    background-color: blue;
}
.black-text {
    color: black;
}
.margin-left-130 {
    margin-left: 130px;
}

.hide {
    display: none!important;
}

.show-on-mobile {
    display: none;
}
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none!important;
    }
    .show-on-mobile {
        display: block!important;
    }
}

.accented {
    color:var(--darkmAccentColor)!important;
}



.flex-boxing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.flex-boxing>*{flex-grow: 1;}


.flex-children {
    display: flex;
    width: 100%;
    gap: 10px;
}
.flex-children > * {
    flex:1;
}



.darken-on-hover {
    transition: background-color 0.3s ease;
}

.darken-on-hover:hover {
    background-color: rgba(0, 0, 0, 0.67); /* Adjust the color and opacity as needed */
    color: white;
    cursor: pointer;
}


.fullvh {
    height: 100vh;
}
.fullvh-minus-22 {
    height: calc(100vh - 22px);
}
.smooth-transition {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.no-height {
    height: 0;
}


.full-height {
    height: 100%;
}
.absolute-center-right {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translate(50%, -50%);
}


.loader {
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: grid;
  }
  .loader:before,
  .loader:after {
    content: "";
    grid-area: 1/1;
    margin: 0 0 15px 15px;
    --c:#0000 calc(100%/3),var(--darkmAccentColor) 0 calc(2*100%/3),#0000 0;
    --c1:linear-gradient(90deg,var(--c));
    --c2:linear-gradient( 0deg,var(--c));
    background: var(--c1),var(--c2),var(--c1),var(--c2);
    background-size: 300% 4px,4px 300%;
    background-repeat: no-repeat;
    animation: l12 1s infinite linear;
  }
.loader:after {
    margin: 15px 15px 0 0;
transform: scale(-1,-1);
}
@keyframes l12 {
    0%   {background-position: 50%  0,100% 100%,0    100%,0 0}
    25%  {background-position: 0    0,100% 50% ,0    100%,0 0}
    50%  {background-position: 0    0,100% 0   ,50%  100%,0 0}
    75%  {background-position: 0    0,100% 0   ,100% 100%,0 50%}
75.01%{background-position: 100% 0,100% 0   ,100% 100%,0 50%}
    100% {background-position: 50%  0,100% 0   ,100% 100%,0 100%}
}

.spread-appart-lined {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.error-theme {
    background-color: #f08080;
    color: white;
}
.danger-theme {
    background-color: #ff0b0b;
    color: white;
}

.logo img {
    height: 40px; /* Limite la hauteur du logo */
    width: 40px; /* Limite la hauteur du logo */
    border-radius: 8px; /* Ajoute un léger arrondi aux coins */
}
.margin-left-20 {
    margin-left: 20px;
}
.margin-right-20 {
    margin-right: 20px;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 130px; /* Width of the sidebar */
    height: calc(100%); /* Full height of the viewport */
    background-color: var(--secondaryColor); /* Dark background color for the sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-right: 1px solid var(--borderColorDimmed);
}




.red-hover {
    transition: opacity 0.2s, fill 0.2s, background-color 0.2s;
    opacity: 0.5;
}

.red-hover:hover {
    opacity: 1;
    stroke: red;
    background-color: red;
    color: white;
}


.primaryLine {
    border: 1px solid black;
}

.no-corner {
    border-radius: 0;
}

.no-corner-bottom {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.no-corner-top-right {
    border-top-right-radius: 0;
}
.no-corner-top-left {
    border-top-left-radius: 0;
}
.no-border-side {
    border-left: none;
    border-right: none;
}
.no-border-bottom {
    border-bottom: none;
}
.no-border-right {
    border-right: none;
}

.overflowYimportant {
    overflow-y: auto!important; /* Empêche la scrollbar verticale si elle n'est pas souhaitée */
    overflow-x: hidden; /* Ajoute une scrollbar horizontale si nécessaire */
}
.left-scrollbar {
    direction: rtl;
}

.direction-normal {
    direction: ltr;
}


.pretty-scrollbar::-webkit-scrollbar-track {
    background: #ffffff79; /* Couleur de fond de la scrollbar */
}

.pretty-scrollbar::-webkit-scrollbar-thumb {
    background: #88888880; /* Couleur du "thumb" de la scrollbar */
    border-radius: 10px; /* Bord arrondi pour un look plus subtil */
}
.app::-webkit-scrollbar-thumb:hover {
    background: #5555558c; /* Couleur plus sombre quand on survole la scrollbar */
}



.hidden-scrollbar::-webkit-scrollbar {
    height: 0px!important; /* Hauteur de la scrollbar pour la rendre discrète */
    width: 0px!important; /* Hauteur de la scrollbar pour la rendre discrète */
}


.pretty-scrollbar::-webkit-scrollbar {
    height: 6px; /* Hauteur de la scrollbar pour la rendre discrète */
    width: 6px; /* Hauteur de la scrollbar pour la rendre discrète */
}
    
.thin-scrollbar::-webkit-scrollbar {
    height: 3px; /* Hauteur de la scrollbar pour la rendre discrète */
    width: 3px; /* Hauteur de la scrollbar pour la rendre discrète */
}
 
table {
    table-layout: fixed;
}
 
.table-auto {
    table-layout: auto!important;
}

thead tr th {
    font-weight: normal;
    color:var(--darkmSecondaryTextColor);
    font-size: 14px;
    width: fit-content;
}
tbody tr td {
    font-size: 14px;

}

tbody tr td{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
thead tr td{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap; 
}

.stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-align {
    text-align: left;
}
.right-align {
    text-align: right;
}

.padding-bottom-10 {
    padding-bottom: 10px;
}
.padding-top-10 {
    padding-top: 10px;
}
.padding-top-0 {
    padding-top: 0px!important;
}

.full-height-minus-x {
    height: calc(100% - 168px);
}
.full-height-minus-56 {
    height: calc(100% - 56px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Crée des colonnes automatiques */
    gap: 10px; /* Espace entre les images (ajustez selon vos besoins) */
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Crée des colonnes automatiques */
    gap: 10px; /* Espace entre les images (ajustez selon vos besoins) */
    align-content: start;
}
.post-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); /* Crée des colonnes automatiques */
    gap: 10px; /* Espace entre les images (ajustez selon vos besoins) */
    align-content: start;
}
.video-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 colonnes égales */
    gap: 5px; /* espace entre les éléments */
    align-content: start;
}



.blink-change {
    animation: blink-change-anim 0.7s;
}
@keyframes blink-change-anim {
    0%   { background-color: #ffe066; }
    50%  { background-color: #fffbe6; }
    100% { background-color: inherit; }
}


.cover-img {
    object-fit: cover;
}

.fill-img {
    object-fit: fill;
}
.center-text {
    text-align: center;
}

.s-loader {
    width: 15px;
    height: 15px;
    aspect-ratio: 1;
    display: grid;
  }
  .s-loader:before,
  .s-loader:after {
    content: "";
    grid-area: 1/1;
    margin: 0 0 5px 5px;
    --c:#0000 calc(100%/3),var(--darkmAccentColor) 0 calc(2*100%/3),#0000 0;
    --c1:linear-gradient(90deg,var(--c));
    --c2:linear-gradient( 0deg,var(--c));
    background: var(--c1),var(--c2),var(--c1),var(--c2);
    background-size: 300% 2px,2px 300%;
    background-repeat: no-repeat;
    animation: l12 1s infinite linear;
  }
  .s-loader:after {
    margin: 5px 5px 0 0;
    transform: scale(-1,-1);
  }
  @keyframes l12 {
    0%   {background-position: 50%  0,100% 100%,0    100%,0 0}
    25%  {background-position: 0    0,100% 50% ,0    100%,0 0}
    50%  {background-position: 0    0,100% 0   ,50%  100%,0 0}
    75%  {background-position: 0    0,100% 0   ,100% 100%,0 50%}
   75.01%{background-position: 100% 0,100% 0   ,100% 100%,0 50%}
    100% {background-position: 50%  0,100% 0   ,100% 100%,0 100%}
  }


  .absolute-stick-to-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
    
.smooth-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.no-pointer-events {
    pointer-events: none;
}

.smooth-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


.reveal-last-child-on-hover > *:last-child {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0px;
}
.reveal-last-child-on-hover:hover > *:last-child {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
    padding-bottom: 10px;
}



.transparent-text {
    display: none;
}

.margin-right-10 {
    margin-right: 10px;
}



.padding-bottom-10 {
    padding-bottom: 10px;
}


.opaque {
    opacity: 1;
}

.opacity-50 {
    opacity: 0.5;
}
.opaque-on-hover {
    transition: opacity 0.3s ease;
}
.opaque-on-hover:hover {
    opacity: 1;
}


.red-alert  {
    background-color: rgba(189, 7, 7, 0.551);
    color: white;
    border: solid 1px red;
    box-sizing: border-box;
}

.green-alert  {
    background-color: rgba(7, 189, 49, 0.551);
    color: white;
    border: solid 1px green;
    box-sizing: border-box;
}
.green-bg {
    background-color: rgba(7, 189, 49, 0.551);
}


.width-60 {
    width: 60px;
}

.blue-bg {
    background-color: rgba(7, 189, 189, 0.551);
}

.blue-text {
    color: rgba(7, 189, 189, 0.551);
}
.red-text {
    color: rgba(189, 7, 7, 0.551);
}

.red-bg {
    background-color: rgba(189, 7, 7, 0.551);
}

.padding-5 {
    padding: 5px;
}


.green-text {
    color: green;
}


.cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Crée des colonnes automatiques */
    gap: 10px; /* Espace entre les images (ajustez selon vos besoins) */
    align-content: start;
}




.progress-container {
    width: 100%;
    background-color: var(--inputColor);
    border-radius: 25px;
    padding: 2px;
    height: 4px;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 4px;
    transition: width 0.2s;
    background-color: var(--darkmAccentColor);
    text-align: center;
    color: white;
    line-height: 20px;
    font-weight: bold;
    border-radius: 25px;
    border: 2px solid var(--inputColor);
}

.progress-bar-red {
    background-color:rgba(189, 7, 7, 0.551);
    width: 0%;
    height: 4px;
    transition: width 0.2s;
    text-align: center;
    color: white;
    line-height: 20px;
    font-weight: bold;
    border-radius: 25px;
    border: 2px solid var(--inputColor);
}





.nowrap {
    white-space: nowrap;
}

.absolute-center-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


