
:root {
    
    --header-height: 50px;
    --prefooter-height: 70px;
    --footer-height: 70px;   
    --header-logo-height: 40px;
    
    --font-family-1: sans-serif;
    --font-family-2: sans-serif;
    --font-family-3: sans-serif;
    --header-isTop-background: #fff;
    --header-isSticky-background: #fff;
    --footer-background: #000;
    --color-body-font: #ccc;
    --color-body-bg: #fff;
    
    
}




html {    
    box-sizing: border-box;
    scroll-behavior: smooth;
    webkit-scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}
* {
    margin: 0px;
    padding: 0px;
}

/* GENERAL */

html {
    scrollbar-width: auto; /* Peut Ãªtre 'auto', 'thin', ou 'none' */
    scrollbar-color: #000 #eee; /* Glisseur et piste */
}
/* Personnalisation de la largeur de la scrollbar */
::-webkit-scrollbar {
    width: 12px; /* Pour les barres de dÃ©filement verticales */
    height: 12px; /* Pour les barres de dÃ©filement horizontales */
}
/* Personnalisation du glisseur */
::-webkit-scrollbar-thumb {
    background: #000; /* Couleur de fond */
    border-radius: 6px; /* Coins arrondis */
    border: 0; /* Bordure blanche pour donner l'illusion d'un glisseur plus fin */
}
/* Changement de couleur du glisseur au survol */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Couleur plus sombre au survol */
}
/* Personnalisation de la piste */
::-webkit-scrollbar-track {
    background: #eee; /* Couleur de fond de la piste */
    border-radius: 6px; /* Coins arrondis */
    border: 0; /* Bordure grise */
}
/* Personnalisation des boutons de la scrollbar (haut, bas, gauche, droite) */
::-webkit-scrollbar-button {
    background: #ccc; /* Couleur de fond des boutons */
    border-radius: 3px; /* Coins arrondis */
}
/* Personnalisation du coin oÃ¹ deux barres de dÃ©filement se rencontrent */
::-webkit-scrollbar-corner {
    background: #eee; /* Couleur de fond */
}




body {
    margin: 0;
    width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: sans-serif;
    font-size: 1rem;
    background: var(--color-body-bg);
}



#loading {
    display: none;
    text-align: center;
    padding: 10px;
}


.ctn {
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;    
    /*padding-left: .5rem;
    padding-right: .5rem;*/
}

.container .ctn {
    background: #fafafa;
}

.container_w {
    padding-left: .5rem;
    padding-right: .5rem;
}

button, input[type="button"], select, input[type="password"] {
    all: unset; 
    display: inline-block; 
    cursor: pointer; 
    padding: 0; 
    border: none; 
    background: none; 
    font: inherit; 
    color: inherit; 
    text-align: center; 
    text-decoration: none; 
    box-sizing: border-box; 
}




/* ---------- HEADER ---------- */

.header {
    display: none;
    border-bottom: 1px solid #eee;
}
.isTop .header {
    position: fixed;
    display: block;
    width: 100%;
    background-color: var(--header-isTop-background);
    z-index: 9;
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
}
.isSticky .header {
    position: fixed;
    display: block;
    width: 100%;
    background-color: var(--header-isSticky-background);
    z-index: 9;
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
}
.header_wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.header .logo  {
    height: var(--header-logo-height);
    width: auto;
    fill: #fff;
}
.header_col2 {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.header_col1 a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /*padding: 1rem;*/
    padding-left: .5rem;
}

.header_col2 ul {
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: row;
}

.header_col2 ul li {
    list-style: none;
}

.header_col2 ul li a {
    display: inline-flex;
    padding: .8rem 1rem;
}

.header_col2 ul li:last-child a {
    padding-right: .5rem;
}

.header_col2 ul li a svg {
    fill: #000;
    height: 20px;
}



.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


.container {
    min-height: calc(100dvh - var(--footer-height) - var(--prefooter-height));
    padding-top: var(--header-height) ;
    background: #fafafa;
}






/* DASHBOARD */

.page_dashboard img {
    width: 100%;
    height: auto;
}

.picture-item {
    position: relative;
    display: block;
    margin-bottom: .5rem;
}





/* UPLOAD */

.page_upload h1 {
    font-size: 1.2rem;
}

.page_upload h2 {
    font-size: 1rem;
    text-align: center;
}

.page_upload .informations {
    color: #333;
    font-size: .85rem;
    text-align: center;
    max-width: 250px;
    margin: auto;
}

.page_upload #imgToPreview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: .5rem;
    justify-self: center;
}


.page_upload #imgToPreview .picture {
    width: 100%;
    aspect-ratio: 1/1;
}





.page_upload #imgToPreview .picture img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}


.page_upload .upload-step {
    display: none;
    position: relative;
    min-height: calc(100dvh - var(--header-height) - .5rem );
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.page_upload .btns {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: .5rem;
}

.btn1 {
    cursor: pointer;
    width: 100%;
    background: #ddd;
    border: 0;
    padding: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5rem;
    font-size: .95rem;
    color: #151515;
}

.btn1 span, .btn1 span svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn1 svg {
    height: 10px;
    width: auto;
    margin-left: .45rem;
}


.btns2 {
    text-align: center;
}

input[type="button"].btn2, button.btn2  {
    cursor: pointer;
    padding: .9rem 2.5rem;
    border-radius: 3rem;
    border: 0;
    color: #000;
    font-size: .9rem;
    background: #eee;
    text-decoration: none;
}


#btnUploadPhoto {
    display: none;
}


body .informations-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding-top: 0;
    z-index: 3;
}

body.isSticky .informations-loading, body.isTop .informations-loading {
    padding-top: var(--header-height);
}



#upload-step-2 {
    padding-bottom: 5rem;
}





.progress-container {
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    height: 5px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    text-align: center;
    line-height: 30px; /* Same as the height of the container */
    color: white;
}

.informations-loading-text {
    text-align: center;
    font-size: .9rem;
    padding-top: .25rem;
    background: rgba(250, 250, 250, .85);
    padding-bottom: .25rem;
}


#showUpload {
    display: none;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: center;
    width: 250px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 1s infinite;
}


/* -- Home -- */

.page_home .container {
    background-color: #486651;
    color: #fff;
}
.page_home .container {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

.page_home .home_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.home-logo {
    height: 150px;
    width: auto;
}


.home_date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 1.3rem;
    gap: .15rem;
}

.home_email {
    text-align: center;
    line-height: 1.5;
}

.home_email a {
    color: #fff;
}

.home_gotoapp {
    padding-top: 2rem;
}

a.btn4 {
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    text-decoration: none;
}


/* -- Login -- */

.page_login .container {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

.page_login .login_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page_login  #loginForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-logo {
    height: 150px;
    width: auto;
}

.login_title {
    margin-bottom: 3rem;
}

#loginButton {
    margin-top: 1rem;
}

.page_login input[type="password"] {
    font-family: var(--font-family-1);
    border: 1px solid #ddd;
    font-size: .85rem;
    padding: .8rem;
}

.page_login div#result {
    display: block;
    bottom: 4rem;
    position: fixed;
}

.red {
    color: #f00;
}

.green {
    color: rgb(23, 126, 23);
}



select {
    font-family: var(--font-family-1);
    border: 1px solid #ddd;
    font-size: .85rem;
    padding: .8rem;
    display: inline-block;
            width: 200px;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 200px; /* Adjust width as needed */
    margin-top: 2rem;
    margin-bottom: 2rem;
}



.custom-select::after {
    content: '↓';
    font-size: 1rem;
    color: #333;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#upload-step-3 .btns2 {
    margin-top: 2rem;
}


#btnUploadPhoto svg {
    height: 15px;
    fill: #fff;
}

#btnUploadPhoto {
    background-color: #33a823;
    color: #fff;
    transition: background-color 0.5s ease-in-out;
    animation: backgroundAnimation 2s infinite;
}


@keyframes backgroundAnimation {
    0% {
        background-color: #33a823; /* Orange très foncé */
    }
    50% {
        background-color: #52dd3f; /* Orange foncé */
    }
    100% {
        background-color: #33a823; /* Retour à l'orange très foncé */
    }
}








/* ---------- PROGRESS BAR --------- */

.progress_bar {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.progress_bar_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.progress_bar_content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.progress_bar_content > div:nth-child(1) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.progress {
    background: rgba(150,150,150,0.2);
    justify-content: flex-start;
    border-radius: 100px;
    align-items: center;
    position: relative;
    padding: 0 0px;
    display: flex;
    height: 25px;
    width: 100%;
  }
  
.progress_value {
    transition: all ease 3s;
    box-shadow: 0 10px 40px -10px #fff;
    border-radius: 100px;
    background: #33a823;
    background-image: repeating-linear-gradient(45deg,transparent,transparent 6px,rgba(0,0,0,.2) 0,rgba(0,0,0,.2) 14px);
    height: 25px;
    width: 0;
    
}

.progress_bar_info {
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}


.progress_bar svg {
    height: 30px;
    width: auto;
    fill: var(--color-theme-1);
}

.progress_bar_text, .progress_bar_value {
    font-size: .80em;
    color: var(--color-3);
}

.progress_bar_ico {
    margin-right: 1rem;
}






.spinner {
  width: 35px;
  height: 35px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #1877f2; /* bleu Facebook */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



.button_installer {
    display: none;
    position: relative;
}

.installerPopup {
    display: none;
    position: relative;
}

.installerPopup .installerPopup_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    padding-bottom: 1rem;
}

.installerPopup .installerPopup_header .installerPopup_header_title {
    font-weight: 600;
}

.installerPopup .installerPopup_header .installerPopupClose {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.installerPopup .installerPopup_header .installerPopupClose svg {
    height: 1.5rem;
    width: 1.5rem;
    fill: #000;
}

.installerPopup_content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.installerPopup_content h2 {
    padding-top: 1rem;
}

.installerPopup_content ol {
 margin-left: 1.5rem;
 margin-top: .5rem;
 line-height: 1.2;
}

.installerPopup_content ol li {
    padding-top: .15rem;
    padding-bottom: .15rem;
}

.btn3, input[type="button"].btn3 {
    color: #1877f2;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

body.page_dashboard #installerButton {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 3.2rem;
    width: 3.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
}

body.page_dashboard #installerButton svg {
    height: 2.1rem;
    width: 2.1rem;
    animation: blinkBlue 1.2s infinite;
    transition: fill 0.3s ease;
    fill: #555;
}

@keyframes blinkBlue {
    0%, 100% {
      fill: #555;         /* Couleur normale */
    }
    50% {
      fill: #1877F2;       /* Bleu Facebook */
    }
  }

body[standalone="false"] .button_installer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

body.page_dashboard[standalone="false"] .button_installer {
    position: fixed;
    bottom: 1rem;
    right: 0rem;
    
}


body[standalone="false"][installerPopup="true"] .installerPopup {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    background: rgba(255,255,255,1);
    padding: 1rem;
    z-index: 9;
}

