:root {
    --header-outer-height: 110px;
    --header-inner-height: 50px;
    --header-height-difference: calc(
            var(--header-outer-height) - var(--header-inner-height)
    );
    --mdc-theme-primary-dark: #0d4657;
    --mdc-theme-primary: #1483b2;
    --mdc-theme-primary-light: #add9f8;
    --mdc-theme-secondary: #32c01d;
    --mdc-theme-important: #fa6464;
    /*--mdc-theme-surface : #ff5a12;
    --mdc-theme-background : #ffa250;
    --mdc-theme-on-primary : #ff5a12;*/
}

@font-face {
    font-family: JosefinSans;
    src: url(/src/JosefinSans-VariableFont_wght.ttf);
}
@font-face {
    font-family: JosefinSansItalic;
    src: url(/src/JosefinSans-Italic-VariableFont_wght.ttf);
    font-style: italic;
}

*{
    padding:0;
    margin:0;
    transition-duration: 0.5s;
}
.maplibregl-map * {
    transition-duration: unset;
}

.tooltip {
    transition-duration: unset;
}

h1, h2, h3 {
    text-align: center;
    margin: 20px;
}

body {
    font-family: JosefinSans, Candara, Calibri, Segoe, Segoe UI, Optima, Arial, sans-serif;
    background-color: #f9faff;
}

main {
    margin: 10px;
}

.input_validation_icon:invalid + span::after {
    content: "✖";
    padding-left: 5px;
}

.input_validation_icon:valid + span::after {
    content: "✓";
    padding-left: 5px;
}

/* TEXT FIELD */
.mdc-text-field {
    margin-top: 10px;
    width: 100%;
    max-width: 500px;
}
.mdc-text-field--fullwidth .mdc-text-field__input {
    padding-left: 12px;
}

.mdc-text-field--fullwidth .mdc-notched-outline .mdc-notched-outline__notch .mdc-floating-label {
    display: table;
}

.mdc-text-field-helper-line {
    display: block;
}

.mdc-select-div {
    display: flex;
    max-width: 500px;
    margin: auto;
    height: 74px;
}

.mdc-select-div select {
    margin: 10px 0;
    border-radius: 4px;
    width: 100%;
}

/* Style pour le conteneur du select */
.mdc-select-div-v2 {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

/* Style pour le select */
.mdc-select-div-v2 select {
    margin: 10px 0;
    width: 100%;
    padding: 12px 16px;
    border: none;
    box-shadow: none;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px;
}

/* Style pour le faux conteneur d'outline */
.mdc-select-div-v2 .outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Changement de couleur lors de la focalisation */
.mdc-select-div-v2 select:focus + .outline {
    border-color: #6200ea;
}

/* Style pour l'icône flèche vers le bas */
.mdc-select-div-v2 .arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Optionnel : Style pour les options (limité dans certains navigateurs) */
.mdc-select-div-v2 select option {
    padding: 8px 10px;
}

#header-logo {
    width: 200px;
    height: 70%;
    min-height: 50px;
    color: #111;
}
#header-logo:hover {
    -ms-transform: scale(1.1); /* IE 9 */
    -webkit-transform: scale(1.1); /* Safari 3-8 */
    transform: scale(1.1);
}

.header-outer {
    /* Make it stick */
    height: var(--header-outer-height);
    z-index: 1;
    position: sticky;
    top: calc(
            var(--header-height-difference) * -1
    ); /* Multiply by -1 to get a negative value */
    display: flex;
    align-items: center;

    /* Other */
    background-color: #e6f6ff;
    box-shadow: 0 2px 10px 0 rgba(0,0,0, 0.1);
}

.header-inner {
    /* Make it stick */
    height: max(var(--header-inner-height), calc(var(--header-outer-height)));
    position: sticky;
    top: 0;

    /* Other */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-inner:not(.header-inner *) {
    transition-duration: unset;
}

.responsive-wrapper {
    width: 90%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 800px) {
    .header-navigation a {
        display: inline-block;
    }

    .header-navigation button {
        display: none;
    }
}

#footer {
    background-color: var(--mdc-theme-primary); width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 50px;
}
#footer * {
    color: white;
    align-items: center;
}

.mdc-drawer .mdc-list-item--activated,
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
    color: var(--mdc-theme-primary, rgba(98,0,238,.87));
}
.mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic {
    color: var(--mdc-theme-primary, #6200ee);
}

form, .form {
    text-align: center;
}

/* CRUD */
#app-crud .list li {
    background-color: #eee;
    border-radius: 10px;
    padding: 5px;
    margin-top: 5px;
}
#app-crud .list li p {
    margin: 0;
}

.card {
    display: block;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 3px 3px 15px 0px rgba(0,0,0,0.2);
    transition-duration: 0.5s;
}

.card:hover {
    box-shadow: 3px 3px 15px 0px rgba(0,0,0,0.4);
}



.card_produit {
    display: inline-grid;
    width: 200px;
    min-height: 300px;
    background-color: rgba(255, 255, 255, 0.53);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
    box-shadow: 2px 5px 7px 0px rgba(0,0,0,0.2);
    -webkit-box-shadow: 2px 5px 7px 0px rgba(0,0,0,0.2);
    -moz-box-shadow: 2px 5px 7px 0px rgba(0,0,0,0.2);
    text-decoration: none;
    color: black;
}

.card_produit > img {
    width: 160px;
    height: 160px;
    margin: 10px auto;
    border-radius: 10px;
}

.card_produit .progress {
    height: 10px;
}

.card_produit .progress-bar > span {
    font-size: 8px;
    position: relative;
}
.card_produit:hover {
    transform: translateY(2px);
    box-shadow: 2px 3px 7px 0px rgba(0,0,0,0.2);
    text-decoration: none;
    color: black;
}

.p_price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.material-map {
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-radius: 4px;
    border: 1px solid #000000;
}

.clickable {
    cursor: pointer;
}

.ui-autocomplete {
    z-index: 1000;
}

.state-green {
    height: 8px;
    width: 8px;
    background-color: #00ff00;
    border-radius: 5px;
    display: inline-block;
}
.state-red {
    height: 8px;
    width: 8px;
    background-color: red;
    border-radius: 5px;
    display: inline-block;
}
.state-orange {
    height: 8px;
    width: 8px;
    background-color: orange;
    border-radius: 5px;
    display: inline-block;
}
.state-blue {
    height: 8px;
    width: 8px;
    background-color: blue;
    border-radius: 5px;
    display: inline-block;
}
.state-gray {
    height: 8px;
    width: 8px;
    background-color: gray;
    border-radius: 5px;
    display: inline-block;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.container .gallery a img, .glide__slide a img {
    float: left;
    height: auto;
    border: 2px solid #fff;
    border-radius: 10px;
    -webkit-transition: -webkit-transform .15s ease;
    -moz-transition: -moz-transform .15s ease;
    -o-transition: -o-transform .15s ease;
    -ms-transition: -ms-transform .15s ease;
    transition: transform .15s ease;
    position: relative;
}

.container .gallery a:hover img, .glide__slide a:hover img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    z-index: 5;
}

.clear {
    clear: both;
    float: none;
    width: 100%;
}

.qty .count {
    color: #000;
    display: inline-block;
    vertical-align: top;
    font-size: 25px;
    font-weight: 700;
    line-height: 30px;
    padding: 0 2px;
    min-width: 35px;
    text-align: center;
}
.qty .plus {
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    color: white;
    width: 30px;
    height: 30px;
    font: 30px/1 Arial,sans-serif;
    text-align: center;
    border-radius: 50%;
}
.qty .minus {
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    color: white;
    width: 30px;
    height: 30px;
    font: 30px/1 Arial,sans-serif;
    text-align: center;
    border-radius: 50%;
    background-clip: padding-box;
}
div {
    text-align: center;
}
.qty .minus:hover{
    background-color: #717fe0 !important;
}
.qty .plus:hover{
    background-color: #717fe0 !important;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    30% {
        opacity: 0;
    }
}

/**
Ivan Grozdic Dropdown
 */

.header-navigation {
    text-align: center;
    position: relative;
}
.header-navigation [type="checkbox"]:checked,
.header-navigation [type="checkbox"]:not(:checked){
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.header-navigation .dropdown:checked + label,
.header-navigation .dropdown:not(:checked) + label{
    position: relative;
    font-weight: 500;
    font-size: 16px;
    line-height: 2;
    height: 36px;
    transition: all 200ms linear;
    border-radius: 4px;
    padding: 0 50px;
    letter-spacing: 1px;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    -ms-flex-pack: center;
    text-align: center;
    border: none;
    background-color: var(--mdc-theme-primary);
    cursor: pointer;
    color: white/*#102770*/;
    margin: unset;
}
.header-navigation label:hover {
    box-shadow: 0 1px 4px 0 var(--mdc-theme-primary);
}
.header-navigation .dropdown:checked + label:before,
.header-navigation .dropdown:not(:checked) + label:before{
    position: fixed;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    z-index: -1;
    cursor: auto;
    pointer-events: none;
}
.header-navigation .dropdown:checked + label:before{
    pointer-events: auto;
}
.header-navigation .dropdown:not(:checked) + label .material-icons {
    font-size: 20px;
    margin-left: 10px;
    transition: transform 200ms linear;
}
.header-navigation .dropdown:checked + label .material-icons {
    transform: rotate(180deg);
    font-size: 20px;
    margin-left: 10px;
    transition: transform 200ms linear;
}
.header-navigation .section-dropdown {
    position: absolute;
    padding: 5px;
    background-color: #111;
    top: 55px;
    left: 0;
    width: 100%;
    border-radius: 4px;
    display: block;
    box-shadow: 0 14px 35px 0 rgba(9,9,12,0.4);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 200ms linear;
}
.header-navigation .dropdown:checked ~ .section-dropdown{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.header-navigation .section-dropdown:before {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    content: '';
    display: block;
    z-index: 1;
}
.header-navigation .section-dropdown:after {
    position: absolute;
    top: -7px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #111;
    content: '';
    display: block;
    z-index: 2;
    transition: all 200ms linear;
}

.header-navigation a {
    position: relative;
    color: #fff;
    transition: all 200ms linear;
    font-weight: 500;
    font-size: 15px;
    border-radius: 2px;
    padding: 5px 0;
    padding-left: 20px;
    padding-right: 15px;
    margin: 2px 0;
    text-align: left;
    text-decoration: none;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    justify-content: space-between;
    -ms-flex-pack: distribute;
}
.header-navigation a:hover {
    color: #102770;
    background-color: var(--mdc-theme-primary);
}
.header-navigation a .material-icons {
    font-size: 22px;
}
.header-navigation .dropdown-sub:checked + label,
.header-navigation .dropdown-sub:not(:checked) + label{
    position: relative;
    color: #fff;
    transition: all 200ms linear;
    font-weight: 500;
    font-size: 15px;
    border-radius: 2px;
    padding: 5px 0;
    padding-left: 20px;
    padding-right: 15px;
    text-align: left;
    text-decoration: none;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    justify-content: space-between;
    -ms-flex-pack: distribute;
    cursor: pointer;
}
.header-navigation .dropdown-sub:checked + label .material-icons,
.header-navigation .dropdown-sub:not(:checked) + label .material-icons{
    font-size: 22px;
}
.header-navigation .dropdown-sub:not(:checked) + label .material-icons {
    transition: transform 200ms linear;
}
.header-navigation .dropdown-sub:checked + label .material-icons {
    transform: rotate(135deg);
    transition: transform 200ms linear;
}
.header-navigation .dropdown-sub:checked + label:hover,
.header-navigation .dropdown-sub:not(:checked) + label:hover{
    color: #102770;
    background-color: var(--mdc-theme-primary);
}

.header-navigation .section-dropdown-sub {
    position: relative;
    display: block;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    max-height: 0;
    padding-left: 10px;
    padding-right: 3px;
    overflow: hidden;
    transition: all 200ms linear;
}
.header-navigation .dropdown-sub:checked ~ .section-dropdown-sub{
    pointer-events: auto;
    opacity: 1;
    max-height: 999px;
}
.header-navigation .section-dropdown-sub a {
    font-size: 14px;
}
.header-navigation .section-dropdown-sub a .material-icons {
    font-size: 20px;
}
.header-inner #txt_search.mdc-floating-label--float-above {
    transform: translateY(-26px) scale(0.75);
}
@media (max-width: 820px) {
    .header-inner #txt_search {
        font-size: 0.7rem;
    }
    .header-inner #mdc-text-field_search {
        width: 150px;
    }
}
@media (max-width: 640px) {
    .header-navigation .dropdown:checked + label,
    .header-navigation .dropdown:not(:checked) + label{
        padding: 0 10px;
    }
    .header-navigation a {
        padding-top: 0;
        padding-bottom: 2px;
        font-size: 13px;
    }
    #mdc_drawer_connected_buttons span {
        display: none;
    }
    #mdc_drawer_connected_buttons i {
        margin: 0;
    }
    #mdc_drawer_connected_buttons a {
        min-width: 36px;
    }
}
@media (max-width: 576px) {
    #header-logo {
        width: unset;
        height: unset;
    }
    #header-logo img {
        width: 55px;
        height: auto;
    }
}

.mdc-button {
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
.mdc-button__label {
    font-family: JosefinSans, Candara, Calibri, Segoe, Segoe UI, Optima, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    font-size: 16px;
    line-height: normal;
}
#mdc_drawer_connected_buttons {
    margin-top: 10px;
    margin-bottom: 5px;
    transform: translateY(2px);
    color: white;
}
a.mdc-button:hover {
    text-decoration: none;
}

.temperature_breadcrumb li {
    display: inline-block;
    padding: 5px 10px;
    background: var(--mdc-theme-primary);
    transform: skew(-20deg);
    cursor: pointer;
    opacity: 0.8;
    margin-bottom: 5px;
}

.temperature_breadcrumb li:hover {
    opacity: 1;
}

.temperature_breadcrumb li a {
    display: block;
    transform: skew(20deg);
    color: white;
}

#div_categories {
    background-color: var(--mdc-theme-primary-light);
    border-radius: 10px;
    padding: 20px;
}
#div_categories a {
    display: block;
    font-size: 0.9rem;
}

.glide__bullets {
    bottom: unset;
}
.glide__bullet {
    background-color: var(--mdc-theme-primary-light);
}
.glide__bullet--active {
    background-color: var(--mdc-theme-primary);
}

.img_main_cover {
    border-radius: 10px;
    width: 90%;
    height: 100px;
    object-fit: cover;
    max-width: 500px;
    margin: 20px 0;
    -webkit-box-shadow: rgb(0, 0, 0) 0px 10px 13px -7px, 5px 5px 15px 5px rgba(0,0,0,0);
    box-shadow: rgb(0, 0, 0) 0px 10px 13px -7px, 5px 5px 15px 5px rgba(0,0,0,0);
}

.image_list_cover {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    width: 90%;
    height: 100px;
    max-width: 500px;
    margin: 20px;
    -webkit-box-shadow: rgb(0, 0, 0) 0px 10px 13px -7px, 5px 5px 15px 5px rgba(0,0,0,0);
    box-shadow: rgb(0, 0, 0) 0px 10px 13px -7px, 5px 5px 15px 5px rgba(0,0,0,0);
}

.image_list_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    opacity: 0.2;
}

.image_list_cover:hover img {
    opacity: 0.5;
}

.image_list_cover .centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--mdc-theme-primary-dark);
    font-size: 24px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 1);
}

#img_avatar_account_edit:hover {
    transform: scale(1.1);
    cursor: pointer;
}
#img_avatar_account_edit_icon {
    width: 100px;
    height: 100px;
    position: absolute;
    transform: translateY(50px);
    opacity: 0;
}
#img_avatar_account_edit:hover > #img_avatar_account_edit_icon {
    opacity: 0.6;
}
.carte_svg {
    width: 85%;
    margin: 0 auto;
}
.carte_svg path {
    stroke: #000000;
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: .25;
    fill: #86aae0;
}
.carte_svg g:hover path {
    fill: #86cce0;
}
.carte_svg g path:hover {
    fill: #86eee0;
}
.departement_fiche_card {
    transition: 0.3s ease-in-out;
}
.departement_fiche_card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(1.02, 1.02);
}
