﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ 
for details on configuring this project to bundle and minify static web assets. */
body {
    /*padding-top: 50px;*/
    background-color: #EBEEF0;
    display: block;
    overflow: auto;
    overflow-x: hidden;
    position: relative;
    height: auto;
    min-height: 100% !important;
    padding-bottom: 20px;
}

.nomargin{
    margin: 0px;
}

.nopadding{
    padding: 0px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

a {
    cursor: pointer;
}

    a > span {
        margin: 5px;
    }

    a:hover, a:focus {
        text-decoration: none !important;
    }

.alert {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 22px;
    position: relative;
}

    .alert .btnCloseAlert {
        padding: 5px;
        cursor: pointer;
        position: absolute;
        display: flex;
        height: 30px;
        border: 1px solid;
        right: 10px;
        width: 30px;
        align-items: center;
        justify-content: center;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 4px;
    }


button {
    cursor: pointer !important;
}

    button > img {
        max-height: 20px;
        max-width: 20px;
        vertical-align: baseline;
        color: white;
    }

.border-double {
    border-style: double;
}

.button-close {
    top: 4px;
    right: 4px;
    position: absolute;
    max-width: 20px;
    max-height: 20px;
    cursor: pointer !important;
}

.button-link {
    width: 20px;
    height: 20px;
}

.btn-primary:hover > span:before {
    color: white;
}

.dashboard-frame {
    margin-top: -20px;
    overflow-y: visible;
    min-height: 1000px;
    width: 100%;
}

.divTable {
    display: table;
    width: 100%;
}

.divTableBody {
    display: table-row-group;
}

.divTableCell, .divTableHead {
    display: table-cell;
    padding: 8px;
    min-width: 100px;
}

.divTableHeader {
    display: table-header-group;
}

.divTableHeadRow, .divTableBodyRow {
    display: table-row;
}

    .divTableBodyRow[hidden] {
        display: none;
    }

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

.dataTitle {
    font-family: 'Oswald', sans-serif;
    color: #124167;
    line-height: 18px;
}

.description {
    background-color: lightgrey;
    border: thin solid black;
    display: block;
    height: 75px;
    width: 200px;
}

.panel-title,
.answer-content {
    display: inline;
    vertical-align: top;
}

.edit-div {
    font-family: "Open Sans", sans-serif;
    display: none;
    position: fixed;
    padding: 10px 15px;
    top: 30vh;
    border: 1px;
    border-radius: 15px;
    background-color: #F5F6FA;
    box-shadow: 4px 4px 3px grey;
    text-align: justify;
    color: #007DC3;
    z-index: 1;
}

.email-content {
    overflow-y: hidden;
}

.email-subject {
    height: 30px;
}

.email-report-detail {
    font-family: "Open Sans", sans-serif;
    display: none;
    overflow-y: auto;
    padding: 10px 15px;
    position: fixed;
    top: 10vh;
    bottom: 10vh;
    border: 1px;
    border-radius: 15px;
    background-color: #F5F6FA;
    box-shadow: 4px 4px 3px grey;
    text-align: justify;
    color: #007DC3;
    z-index: 1;
}

    .email-report-detail > div {
        padding-left: 10px;
    }

        .email-report-detail > div > label {
            font-weight: bold;
            color: black !important;
        }

        .email-report-detail > div > hr {
            text-align: center;
            border-width: 2px;
            border-color: #EBEEF0;
        }

        .email-report-detail > div > #mail_submit {
            text-transform: capitalize;
            font-weight: bold;
        }

.flag-gif {
    height: 40px !important;
    width: 60px !important;
}

#footer {
    position: fixed;
    padding: 15px 20px 15px;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #43425D;
    line-height: 25px;
}

    #footer > span {
        right: 10px;
        position: absolute;
        height: 30px;
        width: 14px;
        cursor: pointer !important;
    }

.list-group-item {
    margin-left: 0;
    margin-right: 0;
}

    .list-group-item:first-child {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .list-group-item > div > input {
        margin-right: 15px;
    }

p {
    text-align: justify !important;
}

.panel-body > ul > li {
    background-color: transparent;
}

.panel-quiz > .panel-heading {
    font-family: "Oswald";
    font-size: 17px;
    font-weight: bold;
    color: #124167;
}

.panel-quiz > .panel-heading,
.panel-quiz > .panel-footer {
    min-height: 75px;
    vertical-align: middle;
}

.panel-quiz > .panel-body {
    background: linear-gradient(to bottom, #188D10 5%, #7DB84A 95%);
    color: white;
    line-height: 22px;
    min-height: 300px;
}

.panel-answer {
    color: #124167;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    vertical-align: middle !important;
    margin-bottom: 0;
}

    .panel-answer > li > img {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

iframe {
    border: none;
    width: 100%;
}

#page-mask {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: rgba(0,0,0,0.6);
}

.ul-info {
    display: block;
    list-style-type: disc;
    margin: 1em;
    padding-left: 40px;
}

.logo {
    height: 80px;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }

    .img-rounded {
        border-radius: 0 0 0 0 !important;
    }

    .email-report-detail,
    .edit-div {
        border-radius: 0 0 0 0 !important;
        width: 100%;
    }
}

@media all and (min-width: 768px) {
    .navbar {
        border-radius: 0px !important;
    }

    .email-report-detail,
    .edit-div {
        left: 25%;
        width: 50%;
    }
}

@media all and (min-width: 992px) {
    .email-report-detail,
    .edit-div {
        left: 35%;
        width: 30%;
    }
}

.navbar {
    background-color: white;
    color: #002E56 !important;
    border: none;
}

.navbar-default .navbar-toggle {
    color: #fff !important;
    background-image: none !important;
    background-color: yellow !important;
}

.navbar-toggle {
    background-image: none !important;
    background-color: none !important;
    border-color: #002E56 !important;
}

    .navbar-toggle:hover, .navbar-toggle:focus {
        border-color: gray !important;
    }

.icon-bar {
    background-color: #002E56 !important;
}

.nav > li > a {
    color: #002E56;
    font-family: "Oswald", sans-serif;
    font-size: 17px;
}

    .nav > li > a:hover,
    .nav > li > a:focus {
        background-color: white !important;
        color: #007DC3;
    }

.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
    background-color: #28304c !important;
}

.nav-tabs > li.active > a {
    color: #28304c !important;
}

.nav-tabs > li > a {
    color: #C7E3EB !important;
}

    .nav-tabs > li > a:hover,
    .nav-tabs > li > a:focus {
        background-color: #F9F9F9 !important;
        color: #007DC3 !important;
    }

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: #28304c !important;
}

.nomargin {
    margin: 0 0 0 0;
}

.nopadding {
    padding: 0 0 0 0;
}

.marginTop10 {
    margin-top: 10px;
}

hr {
    color: #002E56;
}

.marginTop20 {
    margin-top: 20px;
}

.height10 {
    height: 10px;
}

.height20 {
    height: 20px;
}

.height60 {
    height: 60px;
}

.height80 {
    height: 80px;
}

.padding20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

#gradBarMain {
    height: 2px;
    background-color: #002E56;
    background-image: linear-gradient(to right, #007DC3, #002E56, #007DC3);
}

#gradBarTitle {
    height: 10px;
    background-color: #007DC3; /* For browsers that do not support gradients */
    background-image: linear-gradient(to right, #007DC3, #124167); /* Standard syntax (must be last) */
}

img.navbar-brand {
    padding: 3px 3px;
}

#loginBackground {
    background-color: #C0D5F0;
    background-image: url('../images/cover.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.input-group {
    display: block;
}

    .input-group[hidden] {
        display: none;
    }

input {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 2px solid !important;
    border-bottom-color: #BCBCCB !important;
    box-shadow: none !important;
}

    input:focus {
        outline-width: 0;
        border-bottom: 3px solid !important;
        border-bottom-color: #007DC3 !important;
    }

#loginForm {
    background-color: white;
}

.loginTitle {
    font-family: 'Oswald', sans-serif;
    font-size: 43px;
    color: #124167;
    line-height: 60px;
}

.loginText {
    color: #6C7985;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 25px;
    text-align: justify;
}

.loginInput {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #002E56;
    line-height: 40px;
}

.loginButton, .mainButton,
.loginButtonAlt, .mainButtonAlt {
    border-radius: 3px 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loginButton, .mainButton {
    color: white;
    background-color: #007DC3;
}

.loginButtonAlt, .mainButtonAlt {
    color: #007DC3;
    background-color: white;
    border: 1px solid #007DC3;
}

.loginLink {
    color: #124167 !important;
    font-family: 'Open Sans', sans-serif;
    line-height: 25px;
    font-size: 15px;
    font-weight: lighter;
}

#mainForm {
    background-color: white;
    box-shadow: 5px 5px 10px #888888;
}

.mainInput {
    display: flex;
    flex-direction: column-reverse;
}

.mainSelectGroup, .mainInput {
    color: #00172C;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
}

.mainText {
    color: #007DC3;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    text-align: justify;
}

.mainTitle,
.mainTitle > a {
    color: #00172C;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    text-align: left;
}

    .mainTitle > a:focus,
    .mainTitle > a:hover {
        color: #007DC3;
    }

.menu-icon {
    max-height: 25px;
    max-width: 25px;
    vertical-align: baseline;
}

.list-links {
    margin: 1em;
}

    .list-links a {
        display: block;
        margin: 10px;
        cursor: pointer;
    }

        .list-links a > img {
            display: inline;
            height: 25px;
            max-width: 25px;
            margin: auto;
        }

.link-icon {
    margin-left: auto;
    margin-right: auto;
    max-height: 50px;
    max-width: 50px;
}

.title-icon {
    margin-top: auto;
    margin-bottom: auto;
    max-height: 30px;
    max-width: 30px;
    vertical-align: -2px;
}

#myNavbar {
    position: relative;
    vertical-align: baseline;
}

    #myNavbar > ul > li {
        display: inline-block;
        height: auto;
    }

.nav-icon > img {
    height: 17px;
    top: 0;
    line-height: 1px;
}

#CourseNavbar {
    background-image: none !important;
    background-color: #F5F6FA;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 2px solid #ddd !important;
}

    #CourseNavbar > .container-fluid > .navbar-header {
        width: 100% !important;
        float: none;
    }

    #CourseNavbar > .navbar-toggle {
        display: inline !important;
    }

#MyHeader {
    display: flex;
    align-items: center;
    gap: 15px;
}

#MyBackHeader {
    padding: 5px;
    border: 1px solid #002E56;
    border-radius: 5px;
    cursor: pointer;
    color: #002E56;
    display: flex;
}

    #MyBackHeader:hover {
        background-color: #002E56;
        color: white !important;
    }

    #MyBackHeader > a {
        display: inline-flex;
        color: inherit; /* important pour hériter correctement du parent */
        align-items: center;
    }

    #MyBackHeader svg {
        fill: currentColor; /* L'élément SVG hérite directement la couleur du parent */
        width: 25px;
        height: 25px;
        margin-right: 5px;
    }

#MyMenuHeader {
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow-x: auto;
}

    #MyMenuHeader .nav {
        align-items: center;
        display: flex;
        flex-wrap: wrap; /* permet de passer à la ligne */
        list-style: none;
        padding-left: 0;
        margin: 0;
        gap: 10px;
        justify-content: center;
    }

        #MyMenuHeader .nav > li {
            display: inline-block;
            white-space: nowrap;
            flex: 0 1 auto;
        }

#menu {
    display: flex;
    flex-wrap: wrap; /* permet de passer à la ligne */
    list-style: none;
    padding-left: 0;
    margin: 0;
    gap: 10px; /* espace entre les éléments */
}

    #menu > li {
        flex: 0 1 auto; /* taille auto, ne force pas la ligne */
    }


#MyHomeHeader {
    padding: 5px;
    border: 1px solid #002E56;
    border-radius: 5px;
    cursor: pointer;
    color: #002E56;
    display: flex;
}
    #MyHomeHeader:hover {
        background-color: #002E56;
        color: white !important;
    }

    #MyHomeHeader > a {
        display: inline-flex;
        color: inherit; /* important pour hériter correctement du parent */
        align-items: center;
    }

        #MyHomeHeader > a > span {
            height: 20px;
            width: 20px;
            text-align: center;
            margin: 0;
        }


#Dropdown > div > ul > li > a {
    color: #A3A6B4 !important;
}

    #Dropdown > div > ul > li > a:hover,
    #Dropdown > div > ul > li > a:focus {
        background-color: #BCBCCB !important;
        color: #EBEEF0 !important;
    }

#Dropdown > div > ul > li.disabled > a:hover,
#Dropdown > div > ul > li.disabled > a:focus {
    background-color: #F5F6FA !important;
}

#Dropdown > div > ul > li.active > a:hover,
#Dropdown > div > ul > li.active > a:focus {
    background-color: #43425D !important;
    color: #EBEEF0 !important;
}

select {
    color: black !important;
}

    select:disabled {
        background-color: #d9d9d9;
    }

.span-close {
    right: 0;
    position: absolute;
    padding: 12px 16px;
}

    .span-close img {
        height: 20px;
        width: 20px;
    }

.tableSX {
    color: #124167;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

    .tableSX > tbody > tr > td,
    .divTableCell {
        border-top: 0 !important;
        border-bottom: 1px solid #F1F1F3;
        height: 58px;
    }

.tableSXRowDisabled {
    background-color: #F9F9F9;
    color: #6C7985 !important;
}

    .tableSXRowDisabled:hover {
        background-color: #F9F9F9;
    }

.tableSXHeader {
    color: #A3A6B4;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    background-color: #F5F6FA;
}

    .tableSXHeader > tr > th,
    .tableSXHeader > tr > td,
    .divTableHead {
        border-bottom: 0 !important;
        text-align: center;
        vertical-align: middle !important;
        height: 45px;
    }

li.mainText,
.tableSXRowTxt {
    color: #124167;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    vertical-align: middle !important;
    text-align: center;
}

    .tableSXRowTxt > a > img,
    .tableSXRowTxt > img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        height: 35px;
        width: 35px;
    }

    .tableSXRowTxt > input {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

.tableSXRowButton {
    text-align: center;
    vertical-align: middle !important;
}

    .tableSXRowButton > a,
    .tableSXRowButton > span:before {
        color: white;
        font-family: 'Oswald', sans-serif;
        font-size: 13px;
        vertical-align: middle;
        line-height: 20px;
        padding: 5px 10px 5px 10px;
        margin: auto;
        background-color: #007DC3;
        border: 1px solid #007DC3;
        border-radius: 2px 2px;
        box-shadow: 0 2px 6px #888888;
        white-space: nowrap;
    }

        .tableSXRowButton > a > span {
            vertical-align: -2px;
        }

.tableSXRowLink {
    text-align: right;
}

.tableSXRowDate {
    color: #007DC3;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    text-align: center;
    vertical-align: middle !important;
}

.tableSXRowSimulation {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-align: center;
    vertical-align: middle !important;
}

    .tableSXRowSimulation > span {
        background-color: #438B9F;
        border: 1px solid;
        border-color: #438B9F;
        border-radius: 20px;
        padding: 5px 5px 5px 5px;
        margin-left: auto;
        margin-right: auto;
    }


.tableSXRowDescription {
    color: #007DC3;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    text-align: justify;
}

.tableSXRowRightAnswer {
    background-color: #BEDBA4;
    color: #188D10;
}

.tableSXRowWrongAnswer {
    background-color: #FF8448;
    color: #CA4301;
}

.target-partial-view {
    display: none;
}

.wrapper {
    width: 100%;
    display: inline-block;
}

.center-align {
    text-align: center;
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}

.form-control {
    transition: all 0.5s;
}

input.form-control:focus {
    font-size: 18px;
}

.mainInput > label {
    height: auto;
    min-height: 25px;
    transition: all 0.5s;
    margin: 0 0 0 0;
}

.mainInput > textarea:focus + label,
.mainInput > input:focus + label {
    font-size: 13px;
    color: #007DC3;
    vertical-align: bottom;
}

.divAContainer {
    margin: 0 auto;
    text-align: center;
}

    .divAContainer.right-align {
        text-align: right;
    }

.marginHorizontal10 {
    margin-left: 10px;
    margin-right: 10px;
}

.cursorpointer {
    cursor: pointer;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid black;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bg-blue {
    background-color: #2b66a1 !important
}

/* ============================================================
   NEW DESIGN SYSTEM — branche New_Design
   ============================================================ */

/* Navbar */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid #E8EAED;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 0 24px;
}
/* Au-dessus de #mainBackground (z-index:1 sur les pages de cours) sinon le dropdown Contact est masqué. */
#MainNavbar {
    position: relative;
    z-index: 1030;
}
.navbar .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #43425D !important;
    padding: 20px 16px !important;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #007DC3 !important;
    border-bottom-color: #007DC3;
}
.navbar .navbar-nav.me-auto .nav-link i { display: none; }
#gradBarMain { background-image: none; background-color: transparent; }

/* Course sub-navbar */
.sx-course-navbar {
    /*background-color: #1262dd !important;*/
    background-color: #0069a8 !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 0 16px !important;
    /* flex-wrap laissé par défaut : le mode replié (<xl) doit pouvoir passer sur 2 lignes. */
}
    .sx-course-navbar .navbar-toggler {
        border-color: rgba(255,255,255,.3);
        box-shadow: none !important;
        margin: 5px;
        margin-left: auto; /* aligné à droite en mode replié */
    }
/* BS 5.0.2 ne pose l'icône hamburger que via .navbar-light/.navbar-dark, absentes ici. */
.sx-course-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.sx-course-navbar .navbar-nav .nav-link,
.sx-course-navbar .navbar-nav .dropdown-toggle,
.sx-course-navbar .navbar-nav button.nav-link {
    color: rgba(255,255,255,.72) !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 16px 12px !important;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    background: none;
    text-decoration: none;
}
.sx-course-navbar .navbar-nav .nav-link:hover,
.sx-course-navbar .navbar-nav .dropdown-toggle:hover,
.sx-course-navbar .navbar-nav button.nav-link:hover {
    color: #fff !important;
    border-bottom-color: #007DC3;
}
.sx-course-navbar .dropdown-menu {
    background-color: #fff;
    border: 1px solid #E8EAED;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.14);
    padding: 4px;
    min-width: 180px;
}
.sx-course-navbar .dropdown-item {
    color: #43425D;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    border-radius: 6px;
    padding: 8px 12px;
}
.sx-course-navbar .dropdown-item:hover {
    background: #F0F8FF;
    color: #007DC3;
}
/* Layout horizontal seulement quand le menu est déplié (>=992, navbar-expand-lg). */
@media (min-width: 992px) {
    .sx-course-navbar #courseNavbarContent {
        flex: 1 1 auto;
        min-width: 0;
    }
    /* Le menu central cède l'espace en premier (peut wrapper), le cluster de droite reste intact. */
    .sx-course-navbar #menu {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: wrap;
        gap: 0;
    }
    .sx-course-navbar #monitorAndDecisionDashboardnav,
    .sx-course-navbar #enlarge-nav {
        flex-shrink: 0;
    }
    .sx-course-navbar #monitorAndDecisionDashboardnav ~ #enlarge-nav {
        margin-left: 30px;
    }
}
/* Course name link (left side) */
.sx-course-name-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none !important;
    padding: 16px 0 !important;
    border-bottom: none !important;
    margin-right: 24px;
}
.sx-course-name-link:hover { color: #fff !important; }
/* Enlarge button */
#btnEnlargeFrame {
    color: rgba(255,255,255,.7) !important;
    border-color: rgba(255,255,255,.25) !important;
    background: none;
}
#btnEnlargeFrame:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,.5) !important;
    background: rgba(255,255,255,.08);
}
/* Course content wrapper */
.sx-course-body {
    padding: 24px 32px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    justify-content: center;
}
@media (max-width: 768px) {
    .sx-course-body { padding: 16px; }
}

/* Course page outer wrapper */
.sx-course-page {
    padding: 20px 24px 40px;
}
/* Course white-card frame */
.sx-course-frame {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.10);
    overflow: hidden;
}
/* Body inside frame — cancel the outer max-width/margin already on sx-course-body */
.sx-course-frame .sx-course-body {
    max-width: 100%;
    margin: 0;
}
/* Pages qui affichent une iframe plein cadre (ViewData["FlushBody"] = true, cf. _SXCourseLayout) : pas de
   bordure blanche autour de l'iframe - on retire le padding du corps et la marge négative de .dashboard-frame. */
.sx-course-body.sx-course-body-flush {
    padding: 0;
}
.sx-course-body-flush .dashboard-frame {
    margin: 0;
    width: 100%;
    border: 0;
    display: block;
}
@media (max-width: 768px) {
    .sx-course-page { padding: 8px 8px 32px; }
}

/* Page wrapper */
.sx-page {
    padding: 28px 32px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Page header */
.sx-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.sx-page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #00172C;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px 0;
}
.sx-page-title img { width: 22px; height: 22px; }
.sx-page-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6C7985;
    margin: 0;
}
.sx-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-sx-primary {
    background: #007DC3;
    color: #fff !important;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s;
    line-height: 1.4;
}
.btn-sx-primary:hover { background: #0069a8; }
.btn-sx-primary:disabled { background: #B0BEC5; cursor: not-allowed; }
.btn-sx-secondary {
    background: #fff;
    color: #007DC3 !important;
    border: 1.5px solid #007DC3;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s;
    line-height: 1.4;
}
.btn-sx-secondary:hover { background: #F0F8FF; }

/* Stat cards */
.sx-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .sx-stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .sx-stat-cards { grid-template-columns: 1fr; }
}
.sx-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}
.sx-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sx-stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-self: flex-start;
}
.sx-stat-card-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #A3A6B4;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.sx-stat-card-value {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: #00172C;
    line-height: 1.1;
}
.sx-stat-card-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #A3A6B4;
}

/* Panel */
.sx-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    overflow: hidden;
    padding: 24px;
    margin: 0 auto 24px auto;
}
/* Panel that contains full-bleed tables — override padding */
.sx-panel-table {
    padding: 0;
}
.sx-panel-empty {
    padding: 48px 32px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #6C7985;
}

/* Filter bar */
.sx-filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F0F2F5;
    flex-wrap: wrap;
}
.sx-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}
.sx-search-wrap .sx-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #A3A6B4;
    pointer-events: none;
    font-size: 13px;
}
.sx-search-wrap input.form-control {
    padding-left: 32px !important;
    height: 36px;
    font-size: 13px;
    border: 1px solid #E0E3E8 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: #43425D;
}
.sx-filter-bar .form-select {
    height: 36px;
    font-size: 13px;
    border: 1px solid #E0E3E8;
    border-radius: 6px;
    color: #43425D;
    padding: 4px 28px 4px 10px;
    width: auto;
    min-width: 140px;
}

/* Table */
.sx-table {
    width: 100%;
    border-collapse: collapse;
}
.sx-table thead th,
.sx-table thead td {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6C7985;
    padding: 12px 16px;
    border-bottom: 2px solid #E8EAED;
    text-align: center;
    white-space: nowrap;
    background: #F4F6F8;
}
/* Stats bar — course home */
.course-stats-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.course-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E4E8ED;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
    transition: border-color .15s, box-shadow .15s;
}
.course-stat-card--warning {
    background: #FFF8F0;
    border-color: #F5A623;
    cursor: pointer;
}
.course-stat-card--warning:hover {
    border-color: #E0921A;
    box-shadow: 0 2px 8px rgba(245,166,35,.20);
    color: inherit;
    text-decoration: none;
}
/* Carte non cliquable (affichée à titre d'information) : ni curseur "main" ni effet au survol. */
.course-stat-card--static,
.course-stat-card--static:hover {
    cursor: default;
}
.course-stat-card--warning.course-stat-card--static:hover {
    border-color: #F5A623;
    box-shadow: none;
}
.course-stat-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.course-stat-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.course-stat-count {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0F2E4C;
    line-height: 1.1;
}
.course-stat-card--warning .course-stat-count { color: #C47A0A; }
.course-stat-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #6C7985;
    line-height: 1.3;
}
.sx-table tbody tr {
    border-bottom: 1px solid #E8EAED;
    cursor: pointer;
    transition: background .1s;
}
.sx-table tbody tr:last-child { border-bottom: none; }
.sx-table tbody tr:hover { background: #F8FAFB; }
.sx-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #43425D;
}
.sx-course-name {
    font-weight: 600;
    color: #00172C;
    font-size: 14px;
    display: block;
}
.sx-course-id {
    font-size: 12px;
    color: #A3A6B4;
    display: block;
    margin-top: 2px;
}

/* Simulation badge */
.sx-sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}
.sx-sim-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    flex-shrink: 0;
}

/* Status badge */
.sx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.sx-status-active  { background: #E8F5E9; color: #2E7D32; }
.sx-status-draft   { background: #FFF8E1; color: #E65100; }
.sx-status-deleted { background: #F3E5F5; color: #7B1FA2; }
.sx-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Pagination */
.sx-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #F0F2F5;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6C7985;
    flex-wrap: wrap;
    gap: 8px;
}
.sx-pag-controls { display: flex; gap: 4px; align-items: center; }
.sx-pag-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid #E0E3E8;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #43425D;
    padding: 0 8px;
    transition: all .15s;
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
}
.sx-pag-btn:hover:not(:disabled) { background: #F5F7FA; }
.sx-pag-btn:disabled { opacity: .4; cursor: default; }
.sx-pag-btn.sx-pag-active { background: #007DC3; color: #fff; border-color: #007DC3; }
.sx-pag-ellipsis { padding: 0 4px; color: #A3A6B4; line-height: 32px; }

/* Action btn in table */
.sx-action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #A3A6B4;
    font-size: 16px;
    transition: color .15s, background .15s;
}
.sx-action-btn:hover { background: #F0F2F5; color: #E53935; }

/* ─── Login Card Design ─────────────────────────────────────────── */
#loginBackground {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px;
}

.sx-login-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,23,44,.18);
    width: 100%;
    max-width: 480px;
}

.sx-login-card-wide {
    max-width: 680px;
}

.sx-login-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #00172C;
    font-weight: 600;
    margin-bottom: 4px;
}

.sx-login-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #6C7985;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sx-login-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6C7985;
    text-transform: uppercase;
    letter-spacing: .4px;
    display: block;
    margin-bottom: 6px;
}

.sx-login-input {
    height: 44px;
    border: 1px solid #E0E3E8 !important;
    border-radius: 6px !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #43425D;
    box-shadow: none !important;
}

.sx-login-input:focus {
    border-color: #007DC3 !important;
}

.sx-login-divider {
    border: 0;
    border-top: 1px solid #E0E3E8;
    margin: 20px 0;
}

/* ─── Form label & input (non-login pages) ─────────────────────── */
.sx-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6C7985;
    text-transform: uppercase;
    letter-spacing: .4px;
    display: block;
    margin-bottom: 6px;
}

.sx-input {
    border: 1px solid #E0E3E8 !important;
    border-radius: 6px !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #43425D;
    box-shadow: none !important;
    background-color: #fff !important;
}
.sx-input:focus {
    border-color: #007DC3 !important;
    outline: none;
}

/* ─── GC navbar (standalone _GCMain layout) ────────────────────── */
.sx-navbar {
    background-color: #00172C !important;
    border-bottom: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
    padding: 0 24px;
}
.sx-navbar .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 16px 14px !important;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.sx-navbar .nav-link:hover,
.sx-navbar .nav-link.active {
    color: #fff !important;
    border-bottom-color: #007DC3;
    background: none;
}
.sx-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.3);
}
.sx-navbar .navbar-toggler-icon {
    filter: invert(1);
}
/* ===== Downloads page redesign ===== */
.dl-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F2F5;
    flex-wrap: wrap;
}
.dl-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F4F6F8;
    border-radius: 8px;
    padding: 7px 14px;
    flex: 1;
    max-width: 340px;
    margin-left: auto;
}
.dl-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: #00172C;
}
.dl-search-box input::placeholder { color: #A0ADB8; }
.dl-search-box .bi { color: #A0ADB8; font-size: 14px; }
.dl-table-head {
    display: grid;
    grid-template-columns: 44px 1fr 210px 170px 44px;
    padding: 10px 20px;
    border-bottom: 1px solid #F0F2F5;
    font-size: 11px;
    font-weight: 700;
    color: #9AAAB8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.dl-row {
    display: grid;
    grid-template-columns: 44px 1fr 210px 170px 44px;
    padding: 14px 20px;
    border-bottom: 1px solid #F4F6F8;
    align-items: center;
    cursor: pointer;
    transition: background 0.12s;
}
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: #F8FAFC; }
.dl-row.dl-expanded { background: #F0F5FA; }
.dl-file-icon {
    width: 32px;
    height: 32px;
    background: #EBF5FF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007DC3;
    font-size: 15px;
}
.dl-row-title {
    font-size: 14px;
    font-weight: 500;
    color: #00172C;
    padding-right: 16px;
    line-height: 1.3;
}
.dl-sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    max-width: 195px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-sim-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dl-sim-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-cat-text {
    font-size: 13px;
    color: #6C7985;
}
.dl-arrow {
    color: #C5CDD6;
    font-size: 13px;
    transition: transform 0.2s ease;
    justify-self: center;
}
.dl-row.dl-expanded .dl-arrow {
    transform: rotate(90deg);
    color: #007DC3;
}
.dl-expand-panel {
    display: none;
    padding: 16px 20px 20px 64px;
    background: #F8FAFC;
    border-bottom: 1px solid #EEF1F4;
    flex-direction: column;
    gap: 10px;
}
.dl-expand-panel.dl-open { display: flex; }
.dl-expand-desc {
    font-size: 13px;
    color: #4A5568;
    line-height: 1.6;
    max-width: 680px;
}
.dl-expand-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dl-expand-size { font-size: 12px; color: #9AAAB8; }
.dl-lang-select { width: auto; min-width: 80px; max-width: 160px; font-size: 12px; padding: 3px 24px 3px 8px; height: auto; }
.dl-lang-select:disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.dl-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #F0F2F5;
    flex-wrap: wrap;
    gap: 8px;
}
.dl-pagination-info { font-size: 13px; color: #9AAAB8; }
.dl-pagination-btns { display: flex; gap: 4px; align-items: center; }
.dl-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #DDE1E7;
    border-radius: 6px;
    background: #fff;
    color: #4A5568;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.12s;
}
.dl-page-btn:hover:not(:disabled):not(.active) { background: #F4F6F8; }
.dl-page-btn.active { background: #007DC3; color: #fff; border-color: #007DC3; font-weight: 600; }
.dl-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Notification de statut flottante (ex: "profil mis à jour") — fixée en bas, centrée, reste visible
   quel que soit le défilement de la page. Glisse depuis le bas à l'apparition, redescend à la fermeture
   (manuelle ou automatique). Déplacé ici depuis _SXCourseLayout.cshtml pour être disponible sur TOUTES
   les pages (SX_ShowToast, site.js) et pas seulement celles utilisant ce layout-là. */
.sx-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 1080;
    max-width: 90vw;
    animation: sx-toast-in .35s ease forwards;
}
.sx-toast.sx-toast-out {
    animation: sx-toast-out .35s ease forwards;
}
.sx-toast .btn-close {
    border-left: 1px solid rgba(0,0,0,.15);
    padding-left: 14px;
    margin-left: 14px !important;
}
.sx-toast .alert {
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    border-radius: 10px;
    margin: 0;
    white-space: nowrap;
    border: none;
}
.sx-toast .alert-warning,
.sx-toast .alert-danger,
.sx-toast .alert-info {
    color: #000;
}
.sx-toast .alert-success { background: #66BB6A; color: #fff; }
.sx-toast .alert-warning { background: #FFCA28; }
.sx-toast .alert-danger  { background: #EF5350; }
.sx-toast .alert-info    { background: #42A5F5; }
@keyframes sx-toast-in {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes sx-toast-out {
    from { transform: translate(-50%, 0); opacity: 1; }
    to   { transform: translate(-50%, 20px); opacity: 0; }
}
