/*
    Header style
*/
.cover-container {
  max-width: 42rem;
}

.nav-masthead .nav-link {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 0.25rem solid transparent;
  transition: 0.5s;
  margin: 2px;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  color: #fff;
  border-radius: 50%;
  border-bottom: 0.25rem solid white;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

/*
    card style
*/
.card-custom {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Bande image en haut */
.card-custom-img {
  height: 120px;
  background-size: cover;
  background-position: center;
}

/* Avatar circulaire qui « sort » sur la carte */
.card-custom-avatar {
  position: absolute;
  top: 60px; /* moitié de la hauteur de .card-custom-img */
  left: 20%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #000000;
  padding: 5px;
  background-color: #6D767E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-custom-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Décaler le contenu vers le bas pour ne pas passer sous l’avatar */
.card-custom .card-body {
  padding-top: 70px;
  text-align: left;
}
