/* INPUT READONLY FIX */
input[readonly] {
    background-color: white !important;
    cursor: text !important;
}

/* POPUP OPENLAYERS */
.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -30px;
}

.ol-popup:after,
.ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-content {
    position: relative;
    min-width: 200px;
    min-height: 130px;
    height: 100%;
    max-height: 230px;
    padding: 2px;
    white-space: normal;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    overflow-y: auto;
    overflow-x: hidden;
}

.ol-popup-content p {
    font-size: 14px;
    padding: 2px 4px;
    color: #222;
    margin-bottom: 15px;
}

.ol-popup-closer {
    position: absolute;
    top: -4px;
    right: 2px;
    font-size: 100%;
    color: #0088cc;
    text-decoration: none;
}

a.ol-popup-closer:hover {
    color: #005580;
    text-decoration: underline;
}

.ol-popup-closer:after {
    content: "✖";
}

/* POPUP WIDTH ADAPTATION */
@media screen and (max-width: 700px) {
    #popup-content {
        width: 150px !important;
    }
}

@media (min-width: 700px) {
    #popup-content {
        width: 400px !important;
    }
}

/* MULTI-SELECT CONTAINER */
.ms-container {
    width: 100%;
}

.ms-container .ms-list {
    height: 100vh;
}

li.noclick {
    pointer-events: none;
}

/* LOGIN PAGE BACKGROUND - FULL SCREEN EFFECT */
.login-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/background_woah_2.jpg) no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: blur(0px);
}

/* FORM HOLDER BACKGROUND FIX */
.login-page .form-holder {
    background: none;
    color: #000;
}

/* PADDING ADAPTATION */
.login-page .container {
  padding: 40px 20px; 
}

.login-page .container,
.login-page .form-holder,
.login-page .row {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.login-page .row {
  align-items: flex-start !important;
}



/* POPUP LINK BEHAVIOR */
.popup-link {
    text-decoration: none;
}

.popup-link:not(.first-element):hover {
    text-decoration: underline;
}

.login-page .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body, html {
  margin: 0;
  padding: 0;
}



.logo-img {
  max-width: 300px;
  height: auto;
}

.bandeau-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .login-page .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 20px 30px;
  }

  .login-page .form-holder {
    width: 100%;
    max-width: 900px;
  }

  .login-page img[alt="PREZODE Logo"] {
    max-width: 280px;
    margin-bottom: 20px;
  }

  .login-page img[alt="Bandeau accueil"] {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
  }

  .alert-info {
    font-size: 1.05rem;
    margin-top: -55px !important;
  }

  .form-group label {
    font-size: 1.1rem;
  }
  
  .logo-img {
    margin-top: 0; /* ou -20px si tu veux forcer un haut aligné */
  }

  .bandeau-img {
    margin-top: 0;
  }
  
  .form-group .row.align-items-start {
    align-items: flex-start !important;
  }

  .form-group .logo-img {
    margin-top: 0 !important;
    align-self: flex-start;
  }

  .form-group .bandeau-img {
    margin-top: 70px !important;
    align-self: flex-start;
    max-height: 150px; /* Ajuste cette valeur selon ton besoin */
    object-fit: cover;
  }

  .form-group .col-lg-6 {
    display: flex;
    align-items: flex-start;
  }
  
  
  

}


/* --------------------- */
/* RESPONSIVE ADAPTATION */
/* --------------------- */


@media (max-width: 767.98px) {
    .alert-info {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto;
        padding: 20px;
        border-radius: 8px;
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        background-color: #d9f0f7;
    }

    .alert-info h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .alert-info p {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .login-page .form-holder,
    .login-page .content {
        padding: 10px;
    }

    .login-page .container {
	    padding: 20px 10px !important; /* Encore plus compact sur smartphone */
	  }

    .btn {
        width: 100%;
        margin-top: 10px;
    }

    .form-group label {
        font-size: 1rem !important;
    }

    .forgot-pass,
    .signup {
        display: inline-block;
        margin-top: 10px;
        font-size: 0.95rem;
    }

    .copyrights {
        font-size: 0.8rem;
        margin-top: 30px;
    }
}
