@import url("/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css?v=<%= version %>");

/*
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
*/
/* Import the font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Muli');

/* Font Face for Roboto Regular */
@font-face {
    font-family: 'Roboto';
    src: url('/src/fonts/Roboto-Regular.woff2') format('woff2'),
        url('/src/fonts/Roboto-Regular.woff') format('woff'),
        url('/src/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Roboto Bold */
@font-face {
    font-family: 'Roboto';
    src: url('/src/fonts/Roboto-Bold.woff2') format('woff2'),
        url('/src/fonts/Roboto-Bold.woff') format('woff'),
        url('/src/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Roboto Black */
@font-face {
    font-family: 'Roboto';
    src: url('/src/fonts/Roboto-Black.woff2') format('woff2'),
        url('/src/fonts/Roboto-Black.woff') format('woff'),
        url('/src/fonts/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    /* Typically, 900 is used for Black weight */
    font-style: normal;
    font-display: swap;
}

/* Import Tajawal font from Google Fonts */

@font-face {
    font-family: 'Fira Sans Black Italic';
    src: url('/src/fonts/FiraSans-BlackItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/src/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*
Cherry Color Palette

fw: allays make div fullwidth

hex:
#D2042D, #DAF7A6, #FFC300, #FF5733, #C70039, #900C3F

rgb:
rgb(210, 4, 45), rgb(218, 247, 166), rgb(255, 195, 0), rgb(255, 87, 51), rgb(199, 0, 57), rgb(144, 12, 63)

*/
:root {
    --font-family: 'Roboto', sans-serif;
    /*--font-family: Open Sans,mm-main,tahoma,arial,sans-serif;*/
    --secondary-color-rgb: 236, 25, 68;
    /* Digit Menu Color Scheme */
    --accent: #007bff;
    /* temp: #007bff #3457D5*/
    --accent-lighter: #5e81ff;
    /* Lighter Accent Color - Light Orange */
    --accent-rgb-lighter: 255, 138, 80;
    /* Lighter Accent Color in RGB */
    --accent-darker: #0071eb;
    /* #264aca  */
    --accent-rgb: 255, 87, 34;
    /* Accent Color in RGB */
    --accent-rgb-darker: 230, 74, 25;
    /* Darker Accent Color in RGB */

    --accent: #D2042D;
    --accent-rgb: 210, 4, 45;
    /* RGB equivalent of #D2042D */
    --accent-lighter: rgb(226, 14, 57);
    --accent-darker: #D2042D;
    --color-1: #D2042D;
    --color-2: #FFC300;

    --background-color: #f4f4f4;
    --background-color-light: #fafafa;
    --success: #28a745;
    --success-darker: #1a9236;
    --success-rgb: 40, 167, 69;
    /* RGB equivalent of #28a745 */

    --btn-bg: #e1e4e8;
    --btn-bg-hover: #d3e1ec;
    --btn-bg-active: #d1dee8;

    --error: #fdf8f8;
    --error-darker: #c82333;
    --error-rgb: 255, 193, 7;
    /* RGB equivalent of #dc3545 */

    --warning: #ffc107;
    --warning-darker: #e0a800;
    --warning-rgb: 255, 193, 7;
    /* RGB equivalent of #ffc107 */

    --danger: #dc3545;
    --danger-darker: #c82333;
    --danger-rgb: 255, 193, 7;
    /* RGB equivalent of #dc3545 */

    --info: #24a0ed;
    --info-rgb: 36, 160, 237;
    /* RGB equivalent of #24a0ed */

    --info-darker: #1c8cd7;

    --gradient-color-1: #3457d5;
    --gradient-color-2: #389fe3;
    --linear-gradient: linear-gradient(to right, var(--gradient-color-1), var(--gradient-color-2));

    --secondary-color: #ec1944;
    --secondary-darker: #db0e38;
    --dark: #1d2327;
    --dark-rgb: 29, 35, 39;
    --dark-less: #2c3338;

    --dashboard-color: #6E8DFF;
    --icon-gradient-bg: #6E8DFF, #9ab0ff;

    /* Primary Colors */
    --color-primary: #3F51B5;
    /* Primary Color - Deep Blue */
    --color-primary-dark: #303F9F;
    /* Darker Primary Color - Dark Blue */
    --color-primary-light: #C5CAE9;
    /* Lighter Primary Color - Light Blue */

    /* Secondary Colors */
    --color-secondary: #FFC107;
    /* Secondary Color - Amber */
    --color-secondary-light: #FFECB3;
    /* Lighter Secondary Color - Light Amber */
    --color-secondary-dark: #FFA000;
    /* Darker Secondary Color - Dark Amber */

    /* Validate Colors */
    --color-yes: #95B813;
    /* Yes Color - Green */
    --color-yes-light: #AEC42A;
    /* Lighter Yes Color - Light Green */
    --color-yes-dark: #76990C;
    /* Darker Yes Color - Dark Green */

    /* Background Colors */
    --color-background: #ffffff;
    /* White */
    --color-background-secondary: #f9f9f9;
    /* Light Gray */
    --color-background-tertiary: #f1f1f1;
    /* Very Light Gray */

    /* Text Colors */
    --color-text-primary: #000000;
    /* Black */
    --color-text-secondary: #606060;
    /* Medium Gray */
    --color-text-tertiary: #909090;
    /* Light Gray */

    /* Border Colors */
    --color-border: #ced4da;
    /* Default border color */
    --color-border-light: #e3e6e9;
    /* Light border color */
    --color-border-dark: #a0a0a0;
    /* Dark border color */
    --color-border-primary: #ff0000;
    /* Primary border color */
    --color-border-secondary: #606060;
    /* Secondary border color */

    /* Border Widths */
    --border-width-thin: 1px;
    --border-width-medium: 2px;
    --border-width-thick: 3px;

    /* Border Styles */
    --border-style-solid: solid;
    --border-style-dashed: dashed;
    --border-style-dotted: dotted;

    --border-radius: 5px;
    --border-radius-media: 8px;
    --border-out-radius-media: 10px;
}

body a:not(.no-accent):not(.button),
body a.button-link,
body a.button-link:hover {
    color: var(--accent);
}

/* ✅ Mode Sombre (Dark Mode) */
.dark-mode {
    --background-color: #121212;
    /* Fond sombre */
    --color-background: #181818;
    /* Fond principal */
    --color-background-secondary: #1e1e1e;
    /* Fond secondaire */
    --color-background-tertiary: #252525;
    /* Fond tertiaire */

    --color-text-primary: #e0e0e0;
    /* Texte principal en gris clair */
    --color-text-secondary: #b0b0b0;
    /* Texte secondaire */
    --color-text-tertiary: #888888;
    /* Texte tertiaire */

    --color-border: #333;
    /* Bordures sombres */
    --color-border-light: #444;
    /* Bordures légères */
    --color-border-dark: #555;
    /* Bordures plus marquées */

    --color-primary: #bb86fc;
    /* Violet lumineux */
    --color-primary-dark: #9b67e0;
    --color-primary-light: #d3b8ff;

    --color-secondary: #03dac6;
    /* Bleu-vert */
    --color-secondary-dark: #029d91;
    --color-secondary-light: #7ff1e8;

    --success: #1db954;
    /* Vert Spotify */
    --success-darker: #168f3d;
    --success-rgb: 40, 167, 69;

    --warning: #ffcc00;
    /* Jaune vif */
    --warning-darker: #d4a500;
    --warning-rgb: 255, 193, 7;

    --danger: #cf6679;
    /* Rouge */
    --danger-darker: #b00020;
    --danger-rgb: 255, 193, 7;

    --info: #24a0ed;
    /* Bleu clair */
    --info-rgb: 36, 160, 237;
    --info-darker: #1c8cd7;

    --dashboard-color: #6E8DFF;

    --gradient-color-1: #232d60;
    --gradient-color-2: #1b4f72;
    --linear-gradient: linear-gradient(to right, var(--gradient-color-1), var(--gradient-color-2));

    --secondary-color: #ff3b3f;
    --secondary-darker: #db0e38;
    --dark: #1d2327;
    --dark-rgb: 29, 35, 39;
    --dark-less: #2c3338;

    --border-radius: 6px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fbfbfb;
}

body.admin-dashboard {
    background-color: #f2f2f2;
}

main {
    flex: 1;
}

/* ✅ Appliquer automatiquement les couleurs */
.dark-mode body {
    background: var(--color-background);
    color: var(--color-text-primary);
}

/* ✅ Fond des cartes / panneaux */
.dark-mode .card,
.dark-mode .quickpanel-section {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ✅ Bordures et séparateurs */
.dark-mode .border {
    border: 1px solid var(--color-border);
}

/* ✅ Boutons */
.dark-mode .btn {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius);
    transition: background 0.3s;
}

.dark-mode .btn:hover {
    background: var(--color-primary-dark);
}

/* ✅ Boutons danger (rouge) */
.dark-mode .btn-danger {
    background: var(--danger);
}

.dark-mode .btn-danger:hover {
    background: var(--danger-darker);
}

/* ✅ Inputs et champs de texte */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background: var(--color-background-tertiary);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-primary);
    padding: 8px;
    border-radius: var(--border-radius);
}

/* ✅ Placeholder des inputs */
.dark-mode input::placeholder {
    color: var(--color-text-tertiary);
}

/* ✅ Icônes et éléments interactifs */
.dark-mode .icon {
    color: var(--color-text-secondary);
}

/* ✅ Liens */
.dark-mode a {
    color: var(--color-secondary);
}

.dark-mode a:hover {
    color: var(--color-secondary-dark);
}

/* ✅ Notifications */
.dark-mode .alert {
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-primary);
}

/* ✅ Tableaux */
.dark-mode table {
    background: var(--color-background-secondary);
    border-collapse: collapse;
    width: 100%;
}

.dark-mode th,
.dark-mode td {
    border: 1px solid var(--color-border);
    padding: 10px;
}

/* ✅ Mode impersonation */
.dark-mode #impersonationBanner {
    background: #ffcc00;
    color: black;
}

/* ✅ Barre de défilement */
.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--color-background-tertiary);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--border-radius);
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}


/* Apply color variables to common elements */
input,
select,
textarea,
table,
button {
    color: var(--text-color);
    background-color: var(--background-color);
    border-color: var(--border-color);
}

body {
    margin: 0;
    padding-top: 40px;
    /*font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", 'Fira Sans Black Italic', Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;*/
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: start;
}

body:not(.guest):not(.home-page) {
    padding-top: 78px;
}

body.rtl {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.rtl .mr-auto,
.rtl .mx-auto {
    margin-left: 0;
    margin-right: auto;
}

.breadcrumb li {
    margin: 0;
}

.marg-top-lg {
    margin-top: 20% !important;
}

.marg-top-5 {
    margin-top: 5px;
}

.marg-top-10 {
    margin-top: 10px;
}

.marg-top-15 {
    margin-top: 15px;
}

.marg-top-20 {
    margin-top: 20px;
}

.marg-bot-20 {
    margin-bottom: 20px;
}

.marg-bot-15 {
    margin-bottom: 15px;
}

.marg-bot-10 {
    margin-bottom: 10px;
}

.marg-bot-5 {
    margin-bottom: 5px;
}

/*
::selection, ::-moz-selection {
	color: #fff;
	background: var(--accent);
}*/

.text-end {
    text-align: end;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

.h1,
h1 {
    font-size: 2.5rem;
}

.h2,
h2 {
    font-size: 2rem;
}

.h3,
h3 {
    font-size: 1.75rem;
}

.h4,
h4 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.h5,
h5 {
    font-size: 1.25rem;
}

.h6,
h6 {
    font-size: 1rem;
}

a,
a:hover {
    color: var(--accent);
    text-decoration: none;
}

.a {
    color: var(--accent);
}

.a,
footer a {
    text-decoration: underline;
}

/* common */

.bg-g1 {
    background-color: #f8f9fa;
}

.bg-g2 {
    background-color: #e9ecef;
}

.bg-g3 {
    background-color: #dee2e6;
}

.bg-g4 {
    background-color: #ced4da;
}

.mtb-sm {
    /* margin top and bottom small media */
    margin-block: 12px;
    /* Logical property for margin-top and margin-bottom */
}

.mtb-md {
    /* margin top and bottom medium media */
    margin-block: 20px;
    /* Logical property for margin-top and margin-bottom */
}

.mtb-lg {
    /* margin top and bottom large media */
    margin-block: 30px;
    /* Logical property for margin-top and margin-bottom */
}

.mt-sm {
    /* margin top small media */
    margin-block-start: 12px;
    /* Logical property for margin-top */
}

.mt-md {
    /* margin top medium media */
    margin-block-start: 20px;
    /* Logical property for margin-top */
}

.mt-lg {
    /* margin top large media */
    margin-block-start: 30px;
    /* Logical property for margin-top */
}

.mb-sm {
    /* margin top medium media */
    margin-block-end: 12px;
    /* Logical property for margin-bottom */
}

.mb-md {
    /* margin top medium media */
    margin-block-end: 20px;
    /* Logical property for margin-bottom */
}

.mb-lg {
    /* margin top medium media */
    margin-block-end: 30px;
    /* Logical property for margin-bottom */
}

.text-muted {
    color: #6c757d;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-center {
    text-align: center !important;
}

.flex {
    display: flex !important;
}

.flex>div[class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.flex-0 {
    flex: 0;
}

.flex-1 {
    flex: 1;
}

.flex-vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.hr {
    border-top: 1px solid #e6e6e6;
    margin: 10px 0;
}

.mminus-right-20 {
    margin-right: -20px !important;
}

.mminus-left-20 {
    margin-left: -20px !important;
}

.mminus-rl-20 {
    margin-right: -20px !important;
    margin-left: -20px !important;
}


/* Icons */

.icon {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    width: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-login::before {
    content: "\F8A3" !important;
}

.icon-logout::before {
    content: "\F1C3" !important;
}

.login-nav>.icon-login {
    font-size: 19px;
    position: relative;
    left: -4px;
    top: 1px;
}

.icon-table-next::before {
    content: "\F285";
}

/* 
 * .fw class ensures that any element it is applied to will take up the full width of its parent container.
 * It also includes padding and border in the element's total width to prevent overflow issues.
 */
.fw {
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding and border are included in the element's total width */
}

/* ul ol */
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    margin-bottom: 0.5rem;
}

ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
    margin-bottom: 0;
}

/*  */

/* List group */

.list-group {
    padding-right: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin-bottom: 11px;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(0, 0, 0, .01);
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.list-group-item.disabled,
.list-group-item:disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}

.list-group-item-action {
    width: 100%;
    color: #495057;
    text-align: inherit;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}

.list-group-item-action:active {
    color: #212529;
    background-color: #e9ecef;
}

.list-group-horizontal {
    flex-direction: row;
}

.list-group-horizontal>.list-group-item:first-child {
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
}

.list-group-horizontal>.list-group-item:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-left-radius: 0;
}

@media (min-width: 576px) {
    .list-group-horizontal-sm {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .list-group-horizontal-md {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .list-group-horizontal-lg {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .list-group-horizontal-xl {
        flex-direction: row;
    }
}

.list-group-flush {
    border-radius: 0;
}

.list-group-flush>.list-group-item {
    border-width: 0 0 1px;
}

.list-group-flush>.list-group-item:last-child {
    border-bottom-width: 0;
}

.list-group-item-primary {
    color: #004085;
    background-color: #b8daff;
}

.list-group-item-secondary {
    color: #383d41;
    background-color: #d6d8db;
}

.list-group-item-success {
    color: #155724;
    background-color: #c3e6cb;
}

.list-group-item-info {
    color: #0c5460;
    background-color: #bee5eb;
}

.list-group-item-warning {
    color: #856404;
    background-color: #ffeeba;
}

.list-group-item-danger {
    color: #721c24;
    background-color: #f5c6cb;
}

.list-group-item-light {
    color: #818182;
    background-color: #fdfdfe;
}

.list-group-item-dark {
    color: #1b1e21;
    background-color: #c6c8ca;
}

/* Check list */
ul.check-list {
    margin: 20px 0 24px 0;
    list-style: none;
}

ul.check-list li {
    margin-bottom: 20px;
    position: relative;
}

ul.check-list li::before {
    position: absolute;
    font-family: bootstrap-icons;
    content: "\F26B";
    inset-inline-start: -24px;
    color: var(--accent);
}

/* Check list - rounded pill */
/* Badge */

.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.rounded-pill {
    border-radius: 50rem !important;
    background-color: var(--accent) !important;
    color: #fff;
    padding: 2px 10px;
    cursor: pointer;
}

/* End Check list */


/* Carousel */
.carousel {
    position: relative;
    z-index: 8;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.carousel-inner::after {
    display: block;
    clear: both;
    content: "";
}

.carousel-item {
    position: relative;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

.carousel-item-next {
    transform: translateX(100%);
}

.carousel-item-prev {
    transform: translateX(-100%);
}

.carousel-item.active {
    transform: translateX(0);
}

.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
    transform: translateX(0);
}

.carousel-item-left,
.carousel-item-prev.carousel-item-right {
    transform: translateX(-100%);
}

.carousel-item-right,
.carousel-item-next.carousel-item-left {
    transform: translateX(100%);
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: no-repeat 50%/100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    position: relative;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.carousel-indicators .active {
    opacity: 1;
}

.w-100 {
    width: 100% !important;
}

.d-block {
    display: block !important;
}

.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 20px;
    left: 15%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* end carousel */

span.required {
    font-family: Courier, monospace;
    margin: 0 5px;
    color: var(--accent);
    font-weight: 700;
}

#updateEmail label,
.register-form label {
    margin-top: .5rem;
    margin-bottom: 6px;
    cursor: pointer;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, .7);
    transition: all .3s;
    text-shadow: 0 1px white;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: rgba(0, 0, 0, 1);
}

.nav-item.sl-nav {
    margin-right: 5px;
}

.dropdown-toggle::after {
    color: rgba(0, 0, 0, .3);
}

.navbar-toggler {
    display: none;
}

select#langSelector {
    margin: .5rem 1rem;
    color: rgba(0, 0, 0, .7);
    cursor: pointer;
}

body[data-media-modal="open"].admin-dashboard {
    padding-top: 44px;
}

#actionElement {
    margin-top: 150px;
}

body.rtl .card.reset-password-container,
body.rtl input {
    text-align: right;
}

.dm-alert {
    margin-top: 5px;
}

.dm-alert.bordered {
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    background: #f7f7f7;
    padding-bottom: 2px;
}

.dm-alert.success {
    color: #56c221;
}

.dm-alert.danger {
    color: #dc3545;
}

body.rtl .new-password-success {
    text-align: right;
}

.alert {
    margin-top: 20px;
}

.jumbotron {
    padding: 2rem 2rem;
    margin: 0;
    background-color: var(--accent);
    color: #fff;
    border-radius: .3rem;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--accent);
}

a.disabled {
    pointer-events: none;
    opacity: .2 !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent) !important;
}

.form-control.h-38,
.custom-select.h-38 {
    min-height: 38px;
}

.form-control.focus,
.form-control:focus {
    border-color: var(--accent);
}

.nav-tabs .nav-link,
input:focus,
textarea:focus,
.select:focus,
.button-link,
.button-link:focus {
    box-shadow: none !important;
    outline: 0 !important;
}

button[disabled] {
    pointer-events: none;
    opacity: .43 !important;
}

.media-modal-close {
    outline: 0 !important;
}

.btn-link {
    color: var(--accent);
}

body:not(.rtl) .btn-link {
    padding-left: 0;
}

.rtl .btn-link {
    padding-right: 0;
}

.btn-link:hover {
    color: var(--accent-darker);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
}

.dropdown-menu .btn-block {
    margin: 0 16px;
    width: auto;
}

.dropdown-menu .btn-getstarted {
    margin: 0 16px;
}

.btn.btn-sm {
    margin-top: 13px;
    line-height: 15px;
}

legend {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.row {
    margin-bottom: 20px;
}

.dropdown-menu {
    left: unset;
    right: -1px;
    padding: 0;
    box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, .1);
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.rtl .dropdown-menu {
    left: -1px;
    right: unset;
}

/* Row / container class */

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* Global */
.hidden {
    display: none !important;
}

/* Container  */

@media (min-width: 992px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 960px;
    }
}

/* Base column classes */
div[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.gap-sm {
    gap: 10px;
}

.gap-md {
    gap: 20px;
}

.gap-lg {
    gap: 40px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}


/* breadcrumb */
/*
nav[aria-label="breadcrumb"] {
    padding: .05rem 1rem;
	border-bottom: 1px solid #e1e4e8;
	background-color: var(--background-color-light);
}*/

nav[aria-label="breadcrumb"] {
    padding: .05rem 1rem;
    background-color: #f2f2f2;
}

body.media-page nav[aria-label="breadcrumb"] {
    display: none;
}

.breadcrumb {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: .75rem 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: .5rem;
}

ol.breadcrumb>li.addnew {
    margin-left: auto;
}

.rtl ol.breadcrumb>li.addnew {
    margin-left: unset;
    margin-right: auto;
}

.nav-button {
    display: inline-block;
    background: #FFF;
    border: 1px solid var(--accent);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 12px;
}

.nav-button:hover {
    background: var(--accent);
    color: #FFF !important;
    border-color: transparent;
}

.rtl .breadcrumb-item+.breadcrumb-item {
    padding-right: .5rem;
    padding-left: unset;
}

.breadcrumb-nav {
    text-align: center;
}

/*
.breadcrumb-item + .breadcrumb-item::before {
	content: "\F285";
	color: var(--accent);
	position: relative;
	font-size: 14px;
	font-weight: bold !important;
    width: 20px;
}

.rtl .breadcrumb-item + .breadcrumb-item::before {
	padding-right: unset;
	padding-left: .5rem;
}*/

/* Responsive column classes */
@media (min-width: 576px) {
    .col-sm {
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        -ms-flex-positive: 1;
        flex-grow: 1;
        max-width: 100%;
    }

    .col-sm-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-sm-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-sm-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-sm-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-sm-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-sm-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .col-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-lg-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .col-xl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-xl-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-xl-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-xl-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-xl-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-xl-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-xl-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* Footer */

footer {
    padding: 20px 0;
    font-size: 14px;
    margin-top: 10px;
}

.footer-savechanges {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px;
    background: #fff;
    right: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1), 0 0 3px rgba(0, 0, 0, .07);
    z-index: 10;
}

body.media-page footer div.footer-nav-bar,
body[data-media-modal="open"] footer div.footer-nav-bar {
    display: none;
}

/*
footer.sticky-footer div.footer-nav-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 20px 0;
}*/

/* new */
.footer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.9rem;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-separator {
    display: inline-block;
}

@media (max-width: 600px) {
    /*.footer-container {
        flex-direction: column;
        gap: 10px;
    }*/

    .footer-separator {
        display: none;
    }
}

/* old */

footer div.footer-nav-bar {
    margin: 0;
}

footer div.footer-nav-bar a,
footer div.footer-nav-bar span {
    margin: 0 7px;
}

.footer-nav-bar a {
    color: rgba(0, 0, 0, .5);
}

.footer-nav-bar a:hover {
    color: rgba(0, 0, 0, .8);
    text-decoration: none;
}

/* admin dashboard */

body.admin-dashboard ul.public-navbar {
    /*height: 0 !important;*/
    border: 0 !important;
}

.nav-link.lang-name {
    display: inline-block;
}

body.admin-dashboard ul.public-navbar li.public-nav {
    display: none !important;
}

.navbar.bg-light {
    background: var(--background-color-light);
    /*border-bottom: 1px solid #e1e4e8;*/
}

/* contrained fields */
.nav-tabs .nav-link>i {
    margin-right: 10px;
}

.nav-tabs .nav-link>i {
    position: relative;
    top: 1px;
}

.navbar-expand-lg .navbar-nav {
    -ms-flex-direction: row;
    flex-direction: row;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: .5rem;
    padding-left: .5rem;
}

.navbar-expand-lg .navbar-nav .profile-menu-tab .nav-link {
    color: var(--accent) !important;
    border-radius: 21px;
    border: 1px solid #e5e5e5;
    line-height: 30px;
    padding: 2px 15px 2px 8px;
    background: #fff;
}

li.nav-item:not(.li-menu-login) {
    line-height: 29px;
}

li.nav-item a.dropdown-item {
    line-height: 25px;
}

body.rtl .navbar-expand-lg .navbar-nav .profile-menu-tab .nav-link {
    padding: 2px 8px 2px 15px;
}

nav.adminbar .nav-link.loggedin {
    max-width: 23px;
}

nav.adminbar .nav-link.loggedin>span:first-child {
    margin: 0 11px;
}

/*
.profile-menu-tab .loggedin > span {
	margin: 0 11px;
}*/

.skeleton-gravatar {
    background: #44494d;
    width: 24px;
    height: 24px;
    display: inline-block;
    top: 6px;
    right: unset;
    position: relative;
    border-radius: 50%;
    margin: 0 !important;
    opacity: 1;
}

img.gravatar {
    position: relative;
    width: 24px;
    min-height: 24px;
    border-radius: 16px;
    top: 0;
    opacity: 1;
}

.empty-gravatar {
    display: block;
    position: relative;
    background: #9d282c;
    color: #fff;
    z-index: 1000;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 16px;
    top: 6px;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
}

.skeleton-gravatar.gravatar-hidden,
img.gravatar.gravatar-hidden,
.empty-gravatar.gravatar-hidden {
    display: none;
}

.profile-menu-tab .dropdown-toggle.loggedin::after {
    display: none;
}

.navbar-expand-lg .navbar-nav .profile-menu-tab .nav-link:not(.loggedin) {
    padding: 2px 10px 2px 14px;
    margin: auto 0 auto 6px;
}

body.rtl .navbar-expand-lg .navbar-nav .profile-menu-tab .nav-link:not(.loggedin) {
    padding: auto 16px auto 8px;
}

.navbar-expand-lg .navbar-nav .profile-menu-tab .nav-link:not(.dropdown-toggle):not(.loggedin) {
    padding: 0 20px;
}

.profile-menu-tab .dropdown-toggle:not(.loggedin)::after {
    margin-left: 8px;
}

body.rtl .profile-menu-tab .dropdown-toggle:not(.loggedin)::after {
    margin-right: 8px;
}

/* Embed Android Page */
body.android-embed {
    padding: 0 0 40px 0;
}

body.android-embed header,
body.android-embed footer,
body.android-embed #cookie-banner {
    display: none;
}

body.android-embed .container {
    padding-right: 50px;
    padding-left: 50px;
}

body.android-embed .h1,
body.android-embed h1 {
    font-size: 1.7rem;
}

body.android-embed .h2,
body.android-embed h2 {
    font-size: 1.4rem;
}

body.android-embed section {
    margin-top: 40px;
}

/* NOTICE */

.notice {
    display: inline-block;
    background: #fff;
    /*border-width: 0;
	border-style: solid;
	border-inline-start-width: 4px;*/
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    margin-bottom: 10px;
    padding: 1px 28px 1px 12px;
    padding-inline-start: 32px;
    border-radius: var(--border-radius);
    display: inline-block;
    position: relative;
}

.notice.dismissed {
    display: none !important;
}

#loginForm .notice {
    font-size: 13px;
    line-height: 18px;
}

.notice:not(.inline).notice-success,
.notice:not(.inline).notice-info,
.notice:not(.inline).notice-warning,
.notice:not(.inline).notice-error {
    display: block;
}

.notice p {
    margin: .5em 0;
    padding: 2px;
}

.notice-success:before,
.notice-warning:before,
.notice-info:before,
.notice-error:before {
    position: absolute;
    font-family: bootstrap-icons;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 8px;
}

.notice-success:before {
    content: "\F272";
    color: #46b450;
}

.notice-info:before {
    content: "\F430";
    color: #008cff;
}

.notice-warning:before {
    content: "\F33B";
    color: #f0ad4e;
}

.notice-error:before {
    content: "\F627";
    color: #d63638;
}

.notice-dismiss {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 3px;
    border: none;
    margin: 0;
    padding: 4px;
    background: 0 0;
    color: #787c82;
    cursor: pointer;
}

.notice-dismiss:hover::before {
    color: #d63638 !important;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    margin: -1px;
    padding: 0;
}

/* Base: visible par défaut */
/* 
.hide-xs,
.hide-sm-md,
.show-desktop-only,
.show-until-sm,
.icon-only-on-sm .menu-text {
} */

/* 1) Cacher SEULEMENT sur très petit mobile (<576px) */
@media (max-width: 575.98px) {
    .hide-xs {
        display: none !important;
    }

    /* Icônes seules dans le menu sur petit mobile :
       cache le texte mais garde l'icône */
    .icon-only-on-sm .menu-text {
        display: none !important;
    }
}

/* 2) Cacher sur mobile + tablette (<992px) */
@media (max-width: 991.98px) {
    .hide-sm-md {
        display: none !important;
    }
}

/* 3) Afficher UNIQUEMENT sur desktop (≥992px) */
@media (min-width: 992px) {
    .show-desktop-only {
        display: initial !important;
        /* ou inline/inline-block/block selon ton besoin */
    }
}

/* Option utile : visible jusqu’à sm, caché au-delà (ex. badge compact) */
@media (min-width: 576px) {
    .show-until-sm {
        display: none !important;
    }
}