.home,
.password-reset {
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/home-3e237eecd52a26b044a076146bfb6f5f.jpg") center/cover no-repeat;
}

.home .title {
  color: #fff;
}

.home.logged-in {
  background:
    linear-gradient(-133deg, rgba(104, 201, 218, 0.86), rgba(2, 84, 142, 0.86)),
    url("../img/home-3e237eecd52a26b044a076146bfb6f5f.jpg") center/cover no-repeat;
}

.home .intro {
  font-weight: inherit;
  letter-spacing: inherit;
}

.logged-in:not(.home) {
  overflow: hidden;
  height: 100vh;
}

.intro {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.545454545454545em;
}

.success {
  background-color: #138555cc;
  border-radius: 2em;
  padding: 1em;
  max-width: 80%;
  margin: 1em auto;
}

.login-form,
.password-reset form {
  margin: 7rem auto 4rem;
  max-width: 40rem;
  font-family:
    "Raleway", "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.password-reset form {
  max-width: 70rem;
}

.password-reset form input,
.password-reset form button {
  display: inline-block;
}

.login-form:first-child {
  margin-top: 0;
}

.login-form:last-child {
  margin-bottom: 0;
}

.form-field {
  margin-bottom: 0.8rem;
}

.form-field:last-child {
  margin-bottom: 0;
}
/*
.form-label {
  position: absolute;
  overflow: hidden;
  height: 1px;
  margin: -1px;
  padding: 0;
  width: 1px;
  white-space: nowrap;
  border: none;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
}
*/
.form-input {
  display: block;
  padding: 1.5rem 3.5rem;
  width: 100%;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.428571428571429em;
  text-align: left;
  background-color: #fff;
  border-radius: 2.5rem;
}

.form-input#emailreset {
  width: 60%;
  margin-right: 1em;
}

.form-submit {
  padding: 1.5rem 5.6rem;
  width: 100%;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.428571428571429em;
  text-align: center;
  text-transform: uppercase;
  background-color: #4fb2d2;
  border-radius: 2.5rem;
  transition:
    color 0.2s ease-out,
    background-color 0.2s ease-out;
}

.form-submit:hover,
.form-submit:focus {
  color: #4fb2d2;
  background-color: #fff;
}

.home-section,
.dashboard-section {
  padding: 6rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.777777777777778em;
  text-align: center;
}

.home-section {
  align-items: center;
  display: flex;
}

.dashboard-container {
  width: 100%;
  max-width: 100%;
}

.orga-list {
  margin: 4rem;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.5625em;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.orga-item {
  width: 30rem;
  height: 11rem;
  border-radius: 2rem;
  margin: 3rem 3rem;
  cursor: pointer;
  background-color: #34373bc2;
  border: solid transparent;
}

.orga-item:hover {
  border: solid;
}

.orga-item-link {
  text-decoration: none;
  padding: 10px 24px;
}

.portfolio-list {
  margin: 4rem;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.5625em;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.portfolio-item {
  width: 39rem;
  height: 11rem;
  position: relative;
  border-radius: 2rem;
  margin: 3rem 1rem;
  cursor: pointer;
  background-color: #34373bc2;
  border: solid transparent;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s ease-in-out; /* effet de transition fluide */
}
.portfolio-item.clicked {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: smaller;
  cursor: default;
}
.portfolio-item.clicked::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  height: 85%;
  width: 1px;
  border-radius: 10px;
  background: white;
  transform: translateX(-50%);
}
.portfolio-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portfolio-right {
  display: none;
}

.portfolio-item.clicked .portfolio-right {
  display: block;
  width: 45%;
}
.portfolio-item #general {
  display: none;
}
.portfolio-item.clicked #general {
  display: block;
}

.portfolio-item.clicked .portfolio-left {
  display: block;
  width: 45%;
  margin-top: -56px;
  margin-left: 29px;
}
.enter_project {
  display: none;
}
.portfolio-item.clicked .enter_project {
  display: block;
  margin-top: 10px;
  margin-left: auto;
  margin-right: 20px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: x-large;
}
.portfolio-content {
  display: flex;
  justify-content: space-between;
  width: -webkit-fill-available;
  align-items: center;
}
.portfolio-item.clicked .portfolio-content {
  margin: 10px;
}
.portfolio-title {
  display: none;
}
.portfolio-item.clicked .portfolio-title {
  display: block;
}

.text-dashboard {
  display: none;
  font-size: 1.6rem;
  color: #d5d5d5;
}
.portfolio-item.clicked .text-dashboard {
  display: block;
}
.picto-list-dashboard {
  display: flex;
  justify-content: space-around;
  max-width: 410px;
}

.icon-dashboard {
  height: 6rem;
  width: 6rem;
  fill: white;
  border: 2px solid white;
  border-radius: 50%;
}

.picto-dashboard {
  display: none;
}
.portfolio-item.clicked .picto-dashboard {
  display: block;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: initial;
}

.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portfolio-item:hover {
  border: solid;
}
.portfolio-item.clicked:hover {
  border: solid transparent;
}
.portfolio-item-link {
  text-decoration: none;
  padding: 10px 21px;
  font-size: x-large;
  padding-right: 0;
}

.asset_counter {
  display: flex;
  padding: 0px 24px;
  align-items: center;
}

.portfolio-item.clicked .asset_counter {
  padding: 0px 0px;
}

.project-list {
  margin: 4rem auto;
  max-width: 77rem;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.5625em;
  text-align: left;
  counter-reset: list-item;
}

.project-list:first-child {
  margin-top: 0;
}

.project-list:last-child {
  margin-bottom: 0;
}

.project-item {
  counter-increment: list-item;
  border-bottom: 0.1rem solid #4fb2d2;
}

.project-item:first-child {
  border-top: 0.1rem solid #4fb2d2;
}

.project-item-link {
  display: block;
  padding: 1.5rem 0 1.5rem 2.375em;
  text-decoration: none;
}

.project-item-link::before {
  align-items: center;
  display: flex;
  float: left;
  justify-content: center;
  height: 1.5625em;
  margin: 0 0.8125em 0 -2.375em;
  width: 1.5625em;
  font-weight: 500;
  text-align: center;
  border: 0.1rem solid #fff;
  border-radius: 50%;
  content: counter(list-item);
  transition:
    color 0.2s ease-out,
    background-color 0.2s ease-out;
}

.project-item-link:hover,
.project-item-link:focus {
  color: inherit;
}

.project-item-link:hover::before,
.project-item-link:focus::before {
  color: #4fb2d2;
  background-color: #fff;
}

/* Gauge UCIX */
.portfolio-ucix-wrapper {
  position: relative;
  height: fit-content;
  margin-bottom: 0.2rem;
  max-width: 410px;
}
.portfolio-ucix-wrapper:last-child {
  margin-bottom: 0;
}
.portfolio-ucix {
  height: 7rem;
  margin: 0 auto;
  width: 10rem;
  transform: rotate3d(0, 0, 1, -90deg);
}
.portfolio-ucix-value {
  position: absolute;
  top: 50%;
  left: 50%;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1em;
  transform: translate3d(-50%, -50%, 0);
}

@media (min-width: 48em) {
  .home .title,
  .password-reset .title {
    font-size: 6rem;
  }
}

@media (min-width: 64em) {
  .login-form {
    display: flex;
    justify-content: center;
    max-width: none;
  }

  .form-field {
    margin: 0 1.6rem 0 0;
  }

  .form-field:last-child {
    margin-right: 0;
  }

  .form-submit {
    width: auto;
  }
}

@media (min-width: 85.375em) {
  .home-section,
  .dashboard-section {
    font-size: 1.8rem;
  }

  .home .title,
  .password-reset .title {
    font-size: 8rem;
  }

  .dashboard .title {
    font-size: 6rem;
  }

  .home .intro {
    font-size: 2.2rem;
  }

  .project-list {
    font-size: 3.2rem;
  }
}

.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  z-index: 1000; /* On top of other content */
}

.popup-content {
  background-color: rgba(0, 0, 0, 0.9); /* White background for the content */
  padding: 20px; /* Padding inside the popup */
  border-radius: 10px; /* Rounded corners */
  width: 60vw; /* Fixed width */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  text-align: center; /* Center text inside */
}

.close-btn {
  cursor: pointer; /* Change cursor to pointer on hover */
  position: relative;
  top: 0px;
  left: 28vw;
  font-size: 30px;
  color: rgb(213, 203, 203);
  transition: background-color 0.3s ease; /* Smooth transition for background color */
}

.close-btn:hover {
  color: rgb(114, 113, 113); /* Highlight on hover */
  border-radius: 50%; /* Optional: Round the button */
}

@media (min-width: 96em) {
}
.form-error-message,
ul.form-error-message {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    color: #c62828;
    font-size: .82rem;
}

.form-error-message li {
    margin: 0;
}