:root
{
    /* Les couleurs */
    --couleur-bleu-primaire: #0074E1;
    --couleur-bleu-primaire-10p: #0074E11A;
    --couleur-bleu-primaire-20p: #0074E133;
    --couleur-bleu-secondaire: #0066C6;
    --couleur-bleu-texte: #02ABE7;
    --couleur-bleu-variante-design: #168DFF;
    --couleur-black-0: #2E2E2E;
    --couleur-black-2: #383838;
    --couleur-black-3: #484848;
    --couleur-gris-niv-1: #767676;
    --couleur-gris-niv-2: #E3E3E3;
    --couleur-gris-niv-3: #F6F6F6;
    --couleur-gris-niv-4: #FAFAFA;
    --couleur-vert-alert-on: #DCFFBA;
    --couleur-vert-alert-roll: #F0FFE1;
    --couleur-workflow: #c0d7f5;
    --couleur-rouge: #CE4F29;

    --couleur-scrollbar-defaut: #9A9A9A;

    --couleur-titre: #4A5971;
    --couleur-rubrique-interne: #64A9EA;

    --z-index-menu-main-action: 3000000;
    --z-index-sous-menu-main-action: 2000000;
    --height-menu-main-action: 48px;
    --height-conteneur-outils: 48px;
    --height-sous-menu-main-action: 48px;
    --height-toolbar-map: 58px;
    --width-toolbar-tdc: 360px;
}

/* Je ne sais pas trop pourquoi, il y a un marker qui rajoute
   une puce, du coup je rajoute ce bloc pour le forcer à vide */
div::marker
{
    content: "";
}

/* style bouton de base */
.btn
{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.322px;
    text-transform: uppercase;

    padding: 5px 20px;

    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}
.btn:not(:has(img)) {
    min-height: 36px;
}

/*image bouton*/

.img_btn {
    /*transition: filter 0.3s ease;*/
    cursor: pointer;
}
.img_btn:hover {
    filter: brightness(1.3);
}

/* bouton image */
.btn-image
{
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
}

.btn-image:hover {
    filter: brightness(1.3);
}

.btn-image:disabled {
    opacity: 0.5;
    cursor: auto;
}

/* image dans un bouton */
.btn img{
    margin-right: 10px;
}

/*
.btn img
{
    width: 100%;
    height: 100%;
    object-fit: contain;

    margin: 0 6px;
}

.btn img:first-child
{
    margin-left: 0;
    margin-right: 6px;
}

.btn img:last-child
{
    margin-left: 6px;
    margin-right: 0;
}
*/

/* Bouton CTA Primaire */
.btn-primaire
{
    color: white !important;
    background-color: var(--violet_TER) !important;

    border-radius: 50px;
    border: 1px solid var(--violet_TER) !important;
}

.btn-primaire:hover:not(disabled):not([disabled]) > .icon
{
    /*background-color: white !important;*/
}

.btn-primaire:hover:not(disabled):not([disabled])
{
    color: white !important;
    background-color: var(--violet_clair_TER) !important;
    border: 1px solid var(--violet_clair_TER) !important;
}

.btn-primaire.btn-outline
{
    color: var(--couleur-bleu-primaire) !important;
    background-color: initial !important;
}

/* Bouton CTA Secondaire */
.btn-secondaire
{
    color: var(--couleur-gris-niv-1);
    background-color: white;

    border-radius: 50px;
    border: 1px solid var(--couleur-gris-niv-2);
}

.btn-secondaire:hover:not(disabled):not([disabled])
{
    background-color: var(--couleur-gris-niv-2) !important;
}

/* Bouton CTA Primaire et Secondaire */
.btn-primaire.btn-little,
.btn-secondaire.btn-little
{
    border-radius: 35px !important;

    font-size: 10px !important;
    letter-spacing: -0.23px !important;

    padding: 7px 15px !important;
}
.btn.btn-little:not(:has(img)) {
    min-height: 28px;
}


/* bouton pillule */
.btn-pill
{
    display: flex;
    justify-content: center;
    align-items: center;

    color: #FFFFFF;
    text-align: center;

    font-family: 'Inter';
    font-size: 12px;
    font-weight: 600;
    line-height: 14.52px;
    letter-spacing: -0.023em;

    border: none;
    border-radius: 130px;
    background-color: var(--couleur-bleu-primaire);

    padding: 7px 18px;

    cursor: pointer;

    transition: .5s ease-out;

    text-decoration: none;
}

.btn-pill:disabled
{
    opacity: 100% !important;
    background-color: var(--couleur-gris-niv-1) !important;
}

.btn-pill img:first-child
{
    margin-right: 4px;
}

.btn-pill img:last-child
{
    margin-left: 4px;
}

.btn-pill:hover:not(disabled):not([disabled])
{
    background-color: var(--couleur-bleu-secondaire);
}

/* Bouton CTA bord droit */
.btn.btn-square
{
    color: #636363 !important;
    background-color: #F0F0F0 !important;

    border-radius: 3px;
    border: 1px solid #F0F0F0 !important;

    /*font-family: 'Inter';*/
    font-size: 12px;
    font-weight: 400;
    line-height: 12.1px;
    letter-spacing: -0.023em;

    padding: 5px !important;

    text-transform: initial;
    text-wrap: nowrap;

    gap: 5px;
}

.btn.btn-square:hover:not(disabled):not([disabled])
{
    /*color: white !important;*/
    /*background-color: var(--violet_tres_clair_TER) !important;*/
    border: 1px solid var(--violet_clair_TER) !important;
}

.btn.btn-square.btn-outline
{
    color: #636363 !important;
    background-color: initial !important;
}

.btn.btn-square.btn-outline:hover:not(disabled):not([disabled])
{
    color: white !important;
    background-color: var(--couleur-bleu-variante-design) !important;
    border: 1px solid var(--couleur-bleu-variante-design) !important;
}

.btn.btn-square .icon
{
    width: 15px !important;
    height: 15px !important;

    background-color: black !important;
}

.btn.btn-square:hover:not(disabled):not([disabled]) .icon
{
    background-color: white !important;
}

.btn:disabled,
.btn[disabled]
{
    /*background-color: var(--couleur-gris-niv-2) !important;*/
    /*border-color: var(--couleur-gris-niv-2) !important;*/
    opacity: 0.5 !important;
    /*color: ;*/
    cursor: default;
}

/* Champs de saisie */

/* Texte */
input[type="text"],input[type="password"],.inputLecture
{
    padding: 10px;
    border-radius: .25em;
    outline: none;
    color: var(--gris_TER);
}

input[type="text"]:disabled,input[type="password"]:disabled,.inputLecture
{
    background-color: #F4F4F6;
    /*color: #C7C7CE;*/
}

/* surcharge border & color saisi formulaire */
.form-select,
input[type="text"],input[type="password"]
{
    border: 1px solid var(--couleur-gris-niv-2) !important;
    /*color: #8A8FA0 !important;*/
}

.form-select:hover:not(disabled):not([disabled]),
input[type="text"]:hover:not(disabled):not([disabled]),input[type="password"]:hover:not(disabled):not([disabled])
{
    border-color: var(--couleur-gris-niv-1) !important;
}

input[type=text]:focus,input[type=password]:focus,
.form-select:has(select:focus)
{
    border-color: var(--violet_clair_TER) !important;
}

/* surcharge de select */
.form-select
{
    /*font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.322px;*/
}

.form-select,
input[type="text"],input[type="password"]
{
    border: 1px solid #CCCCCC;
    /*color: black;*/
}

.form-select:hover:not(disabled):not([disabled]),
input[type="text"]:hover:not(disabled):not([disabled]),input[type="password"]:hover:not(disabled):not([disabled])
{
    border-color: var(--violet_clair_TER) !important;
}

input[type=text]:focus,
input[type=password]:focus,
.form-select:has(select:focus)
{
    box-shadow: 0 0 0 0.25rem rgba(128, 37, 98, 15%);
    border-color: var(--violet_TER) !important;
}

.groupeEnLigne{
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.groupeSaisieEnLigne{
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: first baseline;
    width:100%;
}

.groupeSaisieEnColonne {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    width:100%;
}

.form-select option
{
    background-color: white;
}

/* select */
.form-select
{
    position: relative;
    display: inline-block;

    border-radius: .25em;
    border: 1px solid #ccc;

    background-color: white;
    /*color: black;*/
}

.form-select:after
{
    content: "▼";
    position: absolute;

    right: 7px;
    top: 50%;
    transform: translateY(-50%);

    background-color: transparent;
    /*color: inherit;*/
    color: var(--gris_TER);
    pointer-events: none;
}

.form-select select
{
    border: none;
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /*font-size: 14px;*/
    background-color: transparent;
    outline: none;
    cursor: pointer;
    width: 100%;

    padding: 10px 30px 10px 10px;

    border-radius: .25em;

    /*color: inherit;*/
    color: var(--gris_TER);

    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.form-select select::-ms-expand
{
    display: none
}

.form-select:has(select:disabled)
{
    background-color: #F4F4F6;
}

.form-select:has(select:disabled):after
{
    color: #C7C7CE;
}

.form-select select:disabled
{
    border-color: #C7C7CE;
    /*color: #C7C7CE;*/
}

.form-select.select-little select
{
    padding: 5px 30px 5px 5px;
}

/* switch */
.switch
{
    background-color: #A1A1A1 !important;
    min-width:32px;
    cursor:pointer;
}

.switch:checked
{
    background-color: var(--violet_TER) !important;
}

.switch
{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    color: inherit;
    font-size: inherit;
    width: 2em;
    height: 1em;
    box-sizing: content-box;
    background-color: grey;
    border-radius: 1em;
    vertical-align: text-bottom;
}

.switch::before
{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    box-sizing: border-box;
    width: 0.75em;
    height: 0.75em;
    margin: 0 0.15em;
    border-radius: 50%;
    background-color: white;
    transition: 0.3s;
}


.switch:checked::before
{
    left: 1em;
}

.switch:disabled
{
    opacity: 0.7;
}

/***************************
* Partie commune des PopIn *
****************************/


.popin.sidebar.maximise-width
{
    width: 100% !important;
}

.popin .header,
.popin .footer
{
    padding: 10px;
}

.popin .header
{
    display: flex;

    /*border-bottom: 1px solid lightgrey;*/
}

.popin .footer
{
    border-top: 1px solid lightgrey;
}

.popin > .body
{
    position: relative;
    overflow: auto;
    padding: 0 10px;
    height: 100%;
}

/* Surcharge popin standard */
.popin.popin-projet-standard
{
    /*font-family: 'Inter';*/

    border-radius: 10px;
    box-shadow: 0px 4px 50px rgba(0, 0, 0, 0.35);

    min-width: initial;
    background-color : white;
}


/* On ajoute des margin top/bottom si on affiche pas le header ou le footer
   car sinon la scrollbar n'est pas jolie car elle sort des arrondies*/
.popin.popin-projet-standard .body:first-child:last-child
{
    margin: 10px 0;
}

.popin.popin-projet-standard .body:not(.pasEspaceFirstEtLast) > *:first-child
{
    margin-top: 10px;
}

.popin.popin-projet-standard .body:not(.pasEspaceFirstEtLast) > *:last-child
{
    margin-bottom: 10px;
}
.popin.popin-projet-standard .body
{
    padding:0 8px !important;
}
.popin .header
{
    border-bottom: none !important;
    background-color: var(--violet_TER);

}
.popinDeplacable .header
{
    cursor: move;
}
.popin .header .titre
{
    flex: 1;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-style: normal;
    /*font-weight: 700;
    line-height: 150%; !* 39px *!
    letter-spacing: -0.598px;
    margin-right:70px;*/
}

.popin .header .sous-titre
{
    color: #636363;

    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.322px;
}

.popin .header .liste-action
{
    position: absolute;
    top: 10px;
    right: 10px;
}

.popin .header .liste-action *:not(:last-child)
{
    margin-right: 5px;
}

.popin .footer
{
    /*border-top: none !important;*/

    padding-left: 80px !important;
    padding-right: 10px !important;

    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.popin .footer .btn
{
    /*flex: 0;*/
}

.popin .header.shadow
{
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
}

.popin .footer.shadow
{
    box-shadow: 0px -2px 2px 0px rgba(0, 0, 0, 0.10);
}

/* body de popin qui suit un header avec une ombre  */
.popin .header.shadow + .body
{
    padding-top: 10px;
}

/* body de popin qui précéde un footer avec une ombre  */
.popin .body:has(+ .footer.shadow)
{
    padding-bottom: 10px;
}

/* un body de popin qui a dans ses enfants un div qui doit s'adapter au parent
   car c'est le fit-to-parent qui doit overflow logiquement */
.popin .body:has(.fit-to-parent)
{
    overflow: hidden;
}

.popin .body .etatWfEtStockage
{
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    /*align-items: flex-start;*/
    align-items: center;
}

/* Pour ajuster la dimension de la map au resize de la popin */
.popin .map.resizeWithPopin
{
    position: absolute;
}

/* Icones */

/* help button */
.help
{
    position: relative;

    border: 2px solid black;
    border-radius: 50%;

    width: 1em;
    height: 1em;

    opacity: 0.3;

    font-size: 20px;

    display: inline-block;

    text-decoration: none;
}

.help:before
{
    position: absolute;

    content: '?';

    font-weight: bold;

    font-size: 0.8em;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: black;
}

/* close button */
.close
{
    position: relative;
    width: 1em;
    height: 1em;
    opacity: 0.3;
    /*font-size: 20px;*/
    display: inline-block;
}
.close-blanc
{
    position: relative;
    width: 1em;
    height: 1em;
    opacity: 0.8;
    /*font-size: 20px;*/
    display: inline-block;
}


.help:hover,
.close:hover,
.close-blanc:hover
{
    opacity: 1;
}

.close:before, .close:after
{
    position: absolute;
    left: calc(100% / 2 - 1px);
    content: ' ';
    height: 1em;
    width: 2px;
    background-color: #333;
}

.close-blanc:before, .close-blanc:after
{
    position: absolute;
    left: calc(100% / 2 - 1px);
    content: ' ';
    height: 1em;
    width: 2px;
    background-color: #ffffff;
}

.close:before, .close-blanc:before
{
    transform: rotate(45deg);
}

.close:after, .close-blanc:after
{
    transform: rotate(-45deg);
}

#popinFichierGTFS label
{
    min-width: 120px;
}
#popinFichierGTFS input
{
    flex-grow: 1;;
}
#popinFichierGTFS #label_file_nom_fichier
{
    min-height:25px !important;
}
#popinFichierGTFS #label_file_nom_fichier2
{
    min-height:25px !important;
}
#popinFichierGTFS #nomFichier,
#popinFichierGTFS #nomFichier2
{
    min-width:700px;
}


#InfosFiche #label_file_nom_fichier
{
    min-height:25px !important;
}
#InfosFiche #nomFichier
{
    min-width:100px;
}

.containerEditionFiche label
{
    min-width: 120px;
}
.containerEditionFiche #trajet_aller,
.containerEditionFiche #trajet_retour
{
    flex-grow: 1;;
}

.tableauHoraire
{
    max-width: 100%;
    width:max-content;
    overflow: auto;
    padding-bottom: 15px;
    border: 2px solid var(--violet_TER);
}

.numeroRenvoi {
    border: 1px solid black;
    border-radius: 11px;
    width: 20px;
    text-align: center;
    height: 20px;
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 20px;
}