@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(../lib/materialize/iconfont/MaterialIcons-Regular.eot);
  /* https://example.com/MaterialIcons-Regular.eot); */
  /* For IE6-8 */
  src: local('Material Icons'), local('MaterialIcons-Regular'), url(../lib/materialize/iconfont/MaterialIcons-Regular.woff2) format('woff2'), url(/MaterialIcons-Regular.woff) format('woff'), url(../lib/materialize/iconfont/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;
  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;
  /* Support for IE. */
  -webkit-font-feature-settings: 'liga';
          font-feature-settings: 'liga';
}
html,
body {
  height: 100%;
}
a {
    color: #00A2D4 !important;
}

.light-blue.darken-1 {
    background-color: #00A2D4 !important;
}
.space {
  padding-left: 10px;
}
.floating-position {
  top: 10px;
  /*desired value*/
  bottom: auto;
}
.required:after {
  content: " *";
  color: #f00;
}
.text-error {
  font-size: 0.9em;
}
/* Gestion du milieu centré */
.body-content {
  display: flex;
  height: 100%;
}
.body-content .content-center-middle {
  margin: auto;
}
.page-consent.container {
  align-self: flex-start;
}
button {
  width: 100%;
}
.register-page {
  width: 600px;
}

/*.card {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}*/
.row {
  margin: 0;
  padding: 0;
}
.row-register {
  margin-top: 15px;
}
.error-page .row {
  margin-top: 10px;
  margin-bottom: 10px;
}
.error-page .card {
  max-width: 600px;
  /*top: 25%;*/
}
.login-page .row-register .col {
  margin-bottom: 10px;
}
.page-consent .card {
  max-width: 100%;
}
.page-consent button {
  width: auto;
}
.home-page .card {
  max-width: 100%;
}
.page-grants .card {
  max-width: 100%;
}
.page-grants .card.info-product {
  width: 400px;
  margin-left: 10px;
  margin-right: 10px;
}
.page-grants img {
  width: 100px;
  height: 100px;
}
.page-grants .clientname {
  font-size: 1.4em;
  font-weight: bold;
}
.page-grants .granttype {
  font-size: 1.2em;
  font-weight: bold;
}
.page-grants .created {
  font-size: 1.2em;
  font-weight: bold;
}
.page-grants .expires {
  font-size: 1.2em;
  font-weight: bold;
}
.debug {
  border: 1px solid red;
}
.select-lang-part {
  /*label {
        margin-bottom:5px;
    }*/
  /*.simple-collapsible {
        border: 0;

        & .arrow-indicator:after {
            vertical-align: middle;
            content: 'arrow_drop_down';
        }

        &.active {
            .arrow-indicator:after {
                content: "arrow_drop_up";
            }
        }
    }

    .content {
        display: none;

        &.active {
            display: block;
        }
    }*/
}
/*.nav-main {
    border: 0;
    color: #000;
    -webkit-box-shadow: none;
    box-shadow: none;

    a {
        color: #000;
    }

    .brand-logo {
        padding-left:15px;
        padding-top:5px;
    }
}*/
.settings-view {
  padding: 15px;
}
.settings-view .title {
  display: block;
  padding-bottom: 15px;
  font-size: 1.5em;
  font-weight: bold;
}

.cl-eye {
    float: right;
    margin-left: -25px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
    color: black;
}

.cl-eye:hover {
    cursor:pointer;
}

.cl-eye-slash {
    color: cadetblue !important;
}

input[type=password]::-ms-reveal,
input[type=password]::-ms-clear {
    display: none;
}

input.valid {
    box-shadow: 0 1px 0 0 #1A1D3A !important;
    border-bottom: 1px solid #1A1D3A !important;
}

element.style {
    pointer-events: none;
}

input:not([type]):focus.valid ~ label, input[type=text]:not(.browser-default):focus.valid ~ label, input[type=password]:not(.browser-default):focus.valid ~ label, input[type=email]:not(.browser-default):focus.valid ~ label, input[type=url]:not(.browser-default):focus.valid ~ label, input[type=time]:not(.browser-default):focus.valid ~ label, input[type=date]:not(.browser-default):focus.valid ~ label, input[type=datetime]:not(.browser-default):focus.valid ~ label, input[type=datetime-local]:not(.browser-default):focus.valid ~ label, input[type=tel]:not(.browser-default):focus.valid ~ label, input[type=number]:not(.browser-default):focus.valid ~ label, input[type=search]:not(.browser-default):focus.valid ~ label, textarea.materialize-textarea:focus.valid ~ label {
    color: #1A1D3A !important;
}
.div-third-party {
    display: flex;
    align-items: center;
    padding: 5px;
}
.span-third-party {
    flex: 1;
    border-bottom: 1px solid #e8e8e8
}
.span-third-party-or {
    padding-left: 10px;
    padding-right: 10px;
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}
.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.external-content {
    padding-top: 0px !important;  
}

.external-provider-content {
    display: none;
}

.link {
    cursor: pointer;
}

.btn-next{
    width:30%;
}
.microsoft-icon {
    height: 14px;
    width: 14px;
    background-image: url("images/logo-microsoft.png");
    background-size: contain;
    display: inline-block;
}
.microsoft-login {
    text-align: center;
}
.google-icon {
    height: 14px;
    width: 14px;
    background-image: url("images/logo-google.png");
    background-size: contain;
    display: inline-block;
}
.google-login {
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .register-page {
        width: auto;
    }
}

@media only screen and (max-width: 500px) {
    .card {
        box-shadow: none;
        -webkit-box-shadow: none;
    }
}

@media only screen and (max-width: 600px) {
    .register-page .card {
        box-shadow: none;
        -webkit-box-shadow: none;
    }
}
/* ============================================================
   Refonte 2026 — fond marine + embleme One en filigrane
   Theme aligne sur l'application (theme-color.scss du front) :
   marine #1a1d3a, primaire #384ea9, degrade logo #46c0ec > #4b519e
   ============================================================ */

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    background:
        radial-gradient(1100px 700px at 78% -10%, rgba(70, 192, 236, 0.16), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(75, 81, 158, 0.35), transparent 60%),
        linear-gradient(160deg, #1a1d3a 0%, #232848 55%, #20264d 100%);
    background-attachment: fixed;
}

/* Embleme One en filigrane (grand, coin bas droit) */
body::before {
    content: "";
    position: fixed;
    z-index: 0;
    right: -8vw;
    bottom: -14vh;
    width: 900px;
    max-width: 70vw;
    aspect-ratio: 297 / 227;
    background: url("images/logo-new/embleme-blanc.svg") no-repeat center / contain;
    opacity: 0.045;
    transform: rotate(-6deg);
    pointer-events: none;
}

/* Petit rappel de l'embleme (coin haut gauche) */
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    left: -60px;
    top: -40px;
    width: 260px;
    aspect-ratio: 297 / 227;
    background: url("images/logo-new/embleme-blanc.svg") no-repeat center / contain;
    opacity: 0.035;
    transform: rotate(8deg);
    pointer-events: none;
}

.body-content {
    position: relative;
    z-index: 1;
    height: auto;
    min-height: 100%;
    padding: 24px 0;
    box-sizing: border-box;
}

/* ===== Carte ===== */
.card {
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(10, 12, 30, 0.45) !important;
}

.login-page .card {
    width: 420px;
    max-width: calc(100vw - 32px);
}

.card .card-title img {
    width: 150px;
}

.card .card-title h4 {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin: 8px 0 4px;
}

/* ===== Champs ===== */
.card .input-field {
    margin-top: 8px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
}

/* Label toujours au-dessus du champ, y compris sur les vues a l'ancien ordre input puis label */
.card .input-field > label {
    order: -1;
}

.card .input-field > label {
    position: static !important;
    display: block;
    transform: none !important;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5270;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.card .input-field input:not([type=checkbox]) {
    height: 44px;
    border: 1px solid #e6e9f2 !important;
    border-radius: 10px;
    background: #f6f7fb;
    padding: 0 42px 0 14px;
    box-sizing: border-box;
    font-size: 14px;
    color: #1a1f35;
    box-shadow: none !important;
    margin-bottom: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.card .input-field input:not([type=checkbox]):focus {
    border-color: #384ea9 !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(56, 78, 169, 0.18) !important;
    outline: none;
}

.card .cl-eye {
    position: absolute;
    right: 14px;
    top: 31px;
    float: none;
    margin: 0;
    color: #8a94a8;
}

.card .cl-eye:hover {
    color: #1a1f35;
}

/* Checkbox « se souvenir de moi » aux couleurs du theme */
.card [type="checkbox"].filled-in:checked + span:not(.lever)::after {
    border: 2px solid #384ea9;
    background-color: #384ea9;
}

/* ===== Ligne options : se souvenir / mot de passe oublie ===== */
.login-page .row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 0 0.75rem;
    font-size: 13px;
}

/* Le clearfix ::after de Materialize (.row) devient un item flex et fausse le space-between */
.login-page .row-options::after {
    content: none;
}

.login-page .row-options .remember-label span {
    font-size: 13px;
    color: #4a5270;
    padding-left: 28px;
}

.login-page a,
.card a {
    color: #384ea9 !important;
    font-weight: 600;
}

.login-page a:hover,
.card a:hover {
    color: #273677 !important;
}

/* Les ancres-boutons (onglets, actions) gardent un texte blanc, pas la couleur des liens */
.card a.btn,
.card a.btn:hover {
    color: #fff !important;
}

/* ===== Bouton principal : degrade du logo ===== */
.card .btn {
    height: 46px;
    line-height: 46px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    background: linear-gradient(120deg, #46c0ec -30%, #384ea9 45%, #273677 110%) !important;
    box-shadow: 0 6px 18px rgba(39, 54, 119, 0.35);
    transition: box-shadow 0.12s ease, filter 0.12s ease;
}

.card .btn:hover {
    filter: brightness(1.07);
    box-shadow: 0 8px 22px rgba(39, 54, 119, 0.45);
}

/* ===== Separateur « Ou » ===== */
.providers-content {
    padding-top: 0 !important;
}

.span-third-party {
    border-bottom: 1px solid #e6e9f2;
}

.span-third-party-or {
    font-size: 12px;
    color: #8a94a8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Fournisseurs d'identite : Microsoft / Google / SSO ===== */
.providers-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.providers-row .provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border: 1px solid #e6e9f2;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #3a4260 !important;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.providers-row .provider-btn:hover {
    border-color: #c9d2ea;
    background: #f9faff;
    box-shadow: 0 2px 8px rgba(26, 29, 58, 0.08);
    color: #1a1f35 !important;
}

.providers-row .microsoft-icon,
.providers-row .google-icon {
    height: 16px;
    width: 16px;
}

.providers-row .provider-sso-icon {
    font-size: 17px;
    color: #384ea9;
}

.external-provider-content .externalProviderDiv {
    position: relative;
}

/* ===== Pages d'administration (/administration, /identity-users) ===== */
.admin-page .card {
    width: 760px;
    max-width: calc(100vw - 32px);
}

.support-page .card {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 12px);
}

.edit-page .card {
    width: 900px;
    max-width: calc(100vw - 32px);
}

.history-page .card {
    width: 1000px;
    max-width: calc(100vw - 48px);
}

.admin-page h1,
.support-page h1,
.edit-page h1,
.history-page h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 4px 0 20px;
    line-height: 1.3;
}

/* Tableaux dans les cartes */
.card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.card table thead th {
    position: sticky;
    top: 0;
    /* au-dessus des boutons flottants (btn-floating, z-index 1) lors du scroll */
    z-index: 5;
    background: #fff;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a94a8;
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9f2;
    border-radius: 0;
}

.card table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f2f8;
    color: #1a1f35;
    border-radius: 0;
}

.card table tbody tr:hover {
    background: #f9faff;
}

.card .table-scroll {
    overflow: auto;
    max-height: 55vh;
    border: 1px solid #eef0f6;
    border-radius: 10px;
}

.card .cell-actions {
    white-space: nowrap;
}

.card .cell-actions .btn-floating {
    margin-right: 4px;
}

.card a.link-danger {
    color: #d23f3f !important;
    font-weight: 600;
}

/* Formulaire d'ajout (page administration) */
.admin-form-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.admin-form-row .field {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-form-row label {
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5270;
    letter-spacing: 0.02em;
}

.admin-form-row input,
.admin-form-row select.browser-default {
    height: 44px;
    border: 1px solid #e6e9f2;
    border-radius: 10px;
    background: #f6f7fb;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 14px;
    color: #1a1f35;
    box-shadow: none;
    margin: 0;
}

.admin-form-row input:focus,
.admin-form-row select.browser-default:focus {
    border-color: #384ea9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(56, 78, 169, 0.18);
    outline: none;
}

.admin-form-row .btn {
    flex: 0 0 auto;
    width: auto;
    padding: 0 24px;
}

/* Onglets et recherche (page identity-users) */
.support-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.support-tabs .btn {
    width: auto;
    padding: 0 18px;
}

.support-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.support-search .input-field {
    flex: 1;
    margin: 0;
}

.support-search .input-field input {
    margin-bottom: 0;
}

.support-search .btn {
    flex: 0 0 auto;
    width: auto;
    padding: 0 24px;
}

.card .cell-nowrap {
    white-space: nowrap;
}

/* Fiche utilisateur (identity-users/edit) */
.edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.edit-grid .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
}

.edit-grid .field > label {
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5270;
    letter-spacing: 0.02em;
}

.edit-grid .field input[type=text] {
    height: 44px;
    border: 1px solid #e6e9f2 !important;
    border-radius: 10px;
    background: #f6f7fb;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 14px;
    color: #1a1f35;
    box-shadow: none !important;
    margin: 0;
}

.edit-grid .checkbox-line {
    display: flex;
    align-items: center;
    height: 44px;
}

@media only screen and (max-width: 700px) {
    .edit-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Page mot de passe oublie ===== */
.forgot-password-page .row-register {
    margin-top: 24px;
}

/* ===== Pied de carte : creation de compte ===== */
.register-content {
    border-top: 1px solid #e6e9f2;
    text-align: center;
    font-size: 13px;
    color: #8a94a8;
    padding-top: 16px !important;
    padding-bottom: 20px !important;
}

@media only screen and (max-width: 480px) {
    .providers-row {
        grid-template-columns: 1fr;
    }

    .providers-row .provider-btn {
        justify-content: flex-start;
        padding-left: 16px;
    }

    body::before {
        max-width: 120vw;
        opacity: 0.04;
    }
}
