/* https://uiverse.io/Creatlydev/silly-cat-86 */

.button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .3s;
  }
  
  .button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  
  .button:hover {
    background-color: #000;
  }
  
  .button:hover .button__icon-wrapper {
    color: #000;
  }
  
  .button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
  }
  
  .button:hover .button__icon-svg:first-child {
    transition: transform .3s ease-in-out;
    transform: translate(150%, -150%);
  }
  
  .button:hover .button__icon-svg--copy {
    transition: transform .3s ease-in-out .1s;
    transform: translate(0);
  }

/* https://uiverse.io/cssbuttons-io/massive-mayfly-74 */

  button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
   }
   
   button.learn-more {
    width: 12rem;
    height: auto;
   }
   
   button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #3f6aa6;
    border-radius: 1.625rem;
   }
   
   button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
   }
   
   button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
   }
   
   button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
   }
   
   button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #282936;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
   }
   
   button:hover .circle {
    width: 100%;
   }
   
   button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
   }
   
   button:hover .button-text {
    color: #fff;
   }

/* https://uiverse.io/SouravBandyopadhyay/rude-tiger-29 */

.notification {
    display: flex;
    flex-direction: column;
    isolation: isolate;
    position: relative;

    background: #29292c;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 16px;
    --gradient: linear-gradient(to bottom, #4a6fa5, #6b8db4, #899bb3); /* Gradient plus subtil */
    --color: #5a7da7; /* Couleur ajustée pour correspondre au gradient */
  }
  
  .notification:before {
    position: absolute;
    content: "";
    inset: 0rem;
    border-radius: 0.9375rem;
    background: #ffffff;
    z-index: 2
  }

  .notification:after {
    position: absolute;
    content: "";
    width: 0.25rem;
    inset: 0.65rem auto 0.65rem 0.5rem;
    border-radius: 0.125rem;
    background: var(--gradient);
    transition: transform 300ms ease;
    z-index: 4;
  }
  
  .notification:hover:after {
    transform: translateX(0.15rem)
  }
  
  .notititle {
    color: var(--color);
    padding: 0.65rem 0.25rem 0.4rem 1.25rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 300ms ease;
    z-index: 5;
  }
  
  .notification:hover .notititle {
    transform: translateX(0.15rem)
  }
  
  .notibody {
    color: #99999d;
    padding: 0 1.25rem;
    transition: transform 300ms ease;
    z-index: 5;
  }
  
  .notification:hover .notibody {
    transform: translateX(0.25rem)
  }
  
  .notiglow,
  .notiborderglow {
    position: absolute;
    width: 20rem;
    height: 20rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle closest-side at center, rgb(169, 169, 169), transparent);
    opacity: 0;
    transition: opacity 300ms ease;
  }
  
  .notiglow {
    z-index: 3;
  }
  
  .notiborderglow {
    z-index: 1;
  }
  
  .notification:hover .notiglow {
    opacity: 0.1
  }
  
  .notification:hover .notiborderglow {
    opacity: 0.1
  }
  
  .note {
    color: var(--color);
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9rem;
    width: 75%;
  }

.notimuted {
    color: #99999d98;
    padding: 0 1.25rem;
    transition: transform 300ms ease;
    z-index: 5;
}

.notification:hover .notimuted {
    transform: translateX(0.25rem)
  }
  
/* Home section */

.card {
  width: 25vw;
  min-width: 320px;

  position: relative;
  border-radius: 16px;
  overflow: hidden;
  animation: card-appears 2s;
  margin-left: 65%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) { 
  .card {
    min-width: 75vw; 
    margin-left: 0;
  }
}

@media (min-width: 992px) and (max-width: 1290px) { 
  .card {
    margin-left: calc(100% - 350px);
  }
}

.card-header {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  border: none;
  background-color: #fff;
}

.card-container {
  display: flex;
  align-items: center;
}

.card-img {
  background-image: url('../images/profil.jpeg');
  background-size: contain;
  background-position: center;
  border-radius: 50%;
  height: 120px;
  width: 120px;
  flex-shrink: 0; /* Empêche l'image de rétrécir */
}

.card-text-title {
  flex-grow: 1; /* Prend l'espace restant */
  padding: 1.7rem;
  line-height: 140%;
  font-weight: bold;
  font-size: 1.4rem;
  color: rgb(0, 0, 0);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.card-info {
  width: 100%;
  padding: 1.7rem;
  align-items:center;
  justify-content: space-between;
  overflow: hidden;
}

.card-text p {
  line-height: 140%;
  text-align: center;
}

.card-text-subtitle {
  color: rgb(0, 0, 0);
  font-weight: 500;
  font-size: 1.2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.card-footer {
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px;
  border: none;
  background-color: #fff;
}

.card-button {
  padding: 10px 20px;
  background-color: #0056b3; 
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;

}

@keyframes card-appears {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



