﻿
/* Container principal */

.background {
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    overflow: visible;
    background-image: url('/svg/connexion-background.svg');
    background-size: cover;
    background-color: #E7F0EF;
    background-position: center;
    width: 100%;
}


.row {
    margin: auto;
    width: 100%;
    max-width: 1400px;
}

/* Format mobile*/
@media (max-width: 768px) {

    .card-title {
         max-width: 318px;
         font-size: 26px;
         line-height: 32px;
         margin-bottom: 6px;
        
    }

    .welcome-description {
         max-width: 318px;
         font-size: 14px;
         line-height: 24px;
         font-weight: 500;
         color: #46493C;
        
    }

    .carpimko-password-forgotten,
    .carpimko-internal-link {
         font-family: "Figtree", sans-serif;
         font-size: 12px;
         font-weight: 500;
         line-height: 20px;
         text-decoration: underline;
        
    }

    .carpimko-password-forgotten {
         height: auto;
        
    }

    .site-link a {
         height: auto;
         min-height: 20px;
        
    }

    .connexion-title {
         font-size: 19px;
         font-weight: 600;
         line-height: 28px;
         margin-bottom: 24px;
        
    }
    .dossier-label-row,
    .password-label {
         margin-bottom: 4px !important;
    }

    .form-group {
         margin-bottom: 6px;
    }

    .carpimko-password-forgotten {
         font-size: 16px;
         font-weight: 500;
         line-height: 20px;
         height: 32px;
         padding-top: 4px;
         padding-bottom: 4px;
        
    }

    hr {
         border: none;
         border-top: 1px solid #DCDCDA;
         background: transparent;
        
    }

    .fc-description {
         max-width: 318px;
        
    }

    #FranceConnectBtn {
         height: 56px;
         border-radius: 8px;
        
    }

    .forgot-password-container {
         margin-bottom: 12px;
        
    }

    .franceconnect-section {
         margin-top: 12px;
        
    }
 
    .background {
        align-items: flex-start;
        padding-top: 8px;
        justify-content: flex-start;
        background-attachment: scroll;
    }

    .row {
        width: 100%;
        margin: 0;
        padding: 0 0px;
    }

    .welcome-card, .connexion-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 12px; 
    }

  .connexion-card .card-body, .welcome-card .card-body {
          padding: 0px; 
    }


     .background > .row {
         max-width: 100%;
          margin: 0;
      }

    .col-12,
    .col-md-5,
    .col-md-7,
    .col-lg-4,
    .col-lg-5 {
        padding-left: 0px;
        padding-right: 0px;
    }

}


/* Colonnes */
.col-12, .col-md {
    padding: 10px;
}

/* Cards */
.card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.card-title {
    width: 100%; 
    max-width: 437px; 
    color: #151A04;
    font-family: "Figtree", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 16px;
}


.welcome-card {
    min-height: auto;
    border-radius: 20px;
    min-height: unset;
}


.welcome-card .card-body {
    padding: 30px;
}


/* Inputs */

.custom-input,
.form-control {
    width: 100%; /* Ajoutez cette ligne */
    height: 40px;
    border-radius: 8px !important;
    background-color: #F5F5F5 !important; /* Gris très clair */
    border: 1px solid #787A71 !important; /* Bordure grise (Thème Grey) */
    color: #5F6156;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    box-sizing: border-box; /* Ajoutez cette ligne */
}

/* Groupe input mot de passe */
.input-group {
    display: flex;
    align-items: stretch;
    overflow: visible;
    border-radius: 8px;
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.input-group button {
    width: auto;
    border: none;
    background: transparent;
}

/* Boutons */
.btn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-block {
    width: 100%;
}

/* FranceConnect */
#FranceConnectBtn {
    background-color: #000091;
    border-color: #000091;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#FranceConnectBtn img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Fix overflow horizontal */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.dossier-label-row {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    margin-bottom: 0 !important;
}

.dossier-label,
.password-label {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    color: #46493C;
    font-family: "Figtree", sans-serif;
    margin-bottom: 0;
}
/* Icône help */
.help-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #787A71;
    border: 1px solid #787A71;
    font-size: 10px;
    cursor: pointer;
}


.tooltip-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    position: relative;
    display: inline-flex;
}



    /* Petite flèche */

.custom-tooltip::before {
   content: "";
   position: absolute;
   top: 12px; 
   left: -6px; 

   width: 12px;
   height: 12px;
   background: #ffffff;
   border-radius: 2px;
   transform: rotate(45deg);
    }


/* Affichage au hover ou focus */
.help-icon:focus + .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.franceconnect-section {
     margin-top: 10px;
    
}

.fc-description {
    font-family: "Figtree", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #5F6156;
}


.form-group {
    margin-bottom: 0px; 
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1); 
    margin: 0;
}



.carpimko-password-forgotten {
    text-align: center;
    display: inline-flex;
    height: 32px;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #0B645B;
    text-decoration: underline;
    font-size: 14px;
}


.connexion-title {
     font-family: "Figtree", sans-serif;
     font-size: 33px;
     font-style: normal;
     font-weight: 700;
     line-height: 40px;
     color: #151A04;
     margin-bottom: 15px;
    
}


button.btn-accent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 8px 24px;
    border-radius: 8px;
    background-color: #0B645B !important;
    border-color: #0B645B !important;
    color: #FFFFFF !important;
    margin-bottom: 0;
    width: 100%;
    margin: 0;
    margin-top: 12px;
}


.container.mt-4 {
    margin-top: 24px !important;
}

.carpimko-internal-link:hover,
.carpimko-password-forgotten:hover {
    color: #0B645B;
    text-decoration: underline;
}


.site-link a {
     display: inline-flex;
     align-items: center;
     height: 32px;
     padding: 4px 0;
     gap: 4px;
}

.carpimko-internal-link,
.carpimko-internal-link:visited {
    color: #0B645B;
    text-decoration: underline;
}

.site-link img {
    display: block;
    width: 16px; 
}


.text-danger {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #dc3545;
}


.showPasswordEye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #151A04;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
}

.showPasswordEye:focus,
.showPasswordEye:active {
    outline: none;
    box-shadow: none;
 }


.password-wrapper {
    position: relative;
}

   /* tooltip positionnée par rapport au bouton */
.tooltip-wrapper .custom-tooltip {
    position: absolute;
    top: 0%;
    left: 120%;
    transform: translateY(0);
    border: 1px solid #ccc;
    width: 260px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    width: 380px;
}


    /* affichage */
    .tooltip-wrapper:hover .custom-tooltip,
    .tooltip-wrapper:focus-within .custom-tooltip,
    .help-icon:focus + .custom-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.logo {
    max-width: 184px;
    height: 97px;
    object-fit: contain;
    aspect-ratio: 184 / 97;
    display: block;
}


.custom-tooltip {
    font-family: "Figtree", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    color: #151A04;
}

.welcome-description {
    font-family: "Figtree", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #46493C;
    width : 100%;
    max-width: 324px;
    margin-bottom: 22px;
}


.cpko_headerlogo {
    margin-bottom: 22px;
}

.forgot-password-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-accent.btn-lg {
     line-height: 1;
    
}


.connexion-card .card-body {
    padding: 24px 24px;
}

.form-group.button-form-group {
    margin-bottom: 6px !important; /* Réduit l'écart à 6px */
}

/* Pour Chrome/Safari/Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #F5F5F5 inset !important; /* Fond gris */
    -webkit-text-fill-color: #5F6156 !important; /* Couleur du texte */
    transition: background-color 5000s ease-in-out 0s !important; /* Évite le clignotement */
}





